Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find a nice way to prevent sonar to analyze third party xml reports #11

Open
danielleberre opened this issue Jun 10, 2017 · 1 comment

Comments

@danielleberre
Copy link
Contributor

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

  1. add the xml files programmatically in the exclusion list of sonar (is it even possible?)
  2. name the files in such a way that they are discarded automatically (i.e. start with ".")
  3. add a sonar.exclusions line 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.

@f-sys
Copy link

f-sys commented Jun 14, 2017

sonar.exclusions=vendor/**,.git/**, **/*test.go, **/*.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants