sonarqube - Sonar - Ignore Lombok code via custom annotation -


i'm trying ignore lombok code (generated code) sonar analysis based on files have custom annotation, @excludelombok. i've tried this guide did not work.

in fact, i've tried excluding entire directory analysis , still wouldn't work.

i've tirelessly searched through stackoverflow looking solution, , i've seen has been discussed bit on here, i've seen people have been suggesting write single test coverage up, pointless since should not test auto generated code.

the solution i'm looking exclude files based on custom annotation. far, attempt exclude not excluded.

any appreciated.

there no easy way exclude issues raised sonarqube rules sonarqube java analyzer, except using approaches described in "narrowing focus" documentation quote.

now, introduced concept of issue filters in sonarqube java analyzer. mechanism @ moment used internally exclude issues raised rules @ analysis time, based on specific criteria.

we plan extends mechanism in order allow users implements own custom issue filters, same way custom rules can implemented. approach cover case , allow filter rules on code annotated custom annotation. new feature handled in following jira ticket: sonarjava-1761


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -