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

Support unit test sources #104

Merged

Conversation

ghost
Copy link

@ghost ghost commented Feb 13, 2018

Issue

Issues reported for test sources are ignored since they have UTS qualifier. They are reported to the global comment but have no links and are just plain text. Only link to the rule is generated.
Detailed: this happens because no file is found for issue and null is passed further to generate the report.

General

Test sources also can have issues like for rule squid:S3415: Assertion arguments should be passed in the correct order. Those who use rules like these will experience issues with plugin.

Solution

Use UTS qualifier along with FIL qualifier.
Unit tests are added to check whether issues with both qualifiers make it through. If SonarFacade will drop support of UTS then tests will report NullPointerExceptions since there will be no file assigned to the issue.

@gabrie-allaigre gabrie-allaigre merged commit 5977583 into gabrie-allaigre:master Feb 13, 2018
@ghost ghost deleted the support-unit-test-sources branch February 13, 2018 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant