sonar-golang
sonar-golang copied to clipboard
Find a nice way to prevent sonar to analyze third party xml reports
Description
The plugin uses xml files produced by third party tools to feed sonar.
By default, those xml files will be analyzed by sonar xml plugin.
It would be nice to find a way to prevent that easily (i.e. without further action from the end-user).
Potential solutions
- add the xml files programmatically in the exclusion list of sonar (is it even possible?)
- name the files in such a way that they are discarded automatically (i.e. start with ".")
- add a
sonar.exclusionsline with the default report names in the documentation (easy but not robust)
It is not clear to me what is the best option so far.
It would be nice to get some feedback from the users.
sonar.exclusions=vendor/**,.git/**, **/*test.go, **/*.xml