Pergunta

Is there a Sonar plugin available, which is able to identify Java files without a license/copyright header?

Foi útil?

Solução

you just have to activate one of the following rules on your Java quality profile, and the files w/o a header will have a violation after the next analysis:

  • "Header" (Checkstyle: com.puppycrawl.tools.checkstyle.checks.header.HeaderCheck)
  • "Regexp Header" (Checkstyle: com.puppycrawl.tools.checkstyle.checks.header.RegexpHeaderCheck)

See them on Nemo for instance.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top