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

Custom rules not working in SonarQube 7.3+ #37

Open
hindsholm opened this issue Dec 11, 2018 · 0 comments
Open

Custom rules not working in SonarQube 7.3+ #37

hindsholm opened this issue Dec 11, 2018 · 0 comments

Comments

@hindsholm
Copy link

I have noticed that my custom rules have stopped working, and indeed the integration tests confirm this:
mvn clean -Pits -Dsonar.runtimeVersion=X fails for X=7.3 or 7.4 but it works with X=LTS (6.7).
The surefire report contains:

-------------------------------------------------------------------------------
Test set: org.sonar.json.Tests
-------------------------------------------------------------------------------
Tests run: 7, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 176.435 s <<< FAILURE! - in org.sonar.json.Tests
issues_against_rule_forbidden_string(org.sonar.json.CustomRulesTest)  Time elapsed: 0.11 s  <<< FAILURE!
java.lang.AssertionError: expected size:<1> but was:<0> for <[]>
	at org.sonar.json.CustomRulesTest.issues_against_rule_forbidden_string(CustomRulesTest.java:78)

issues_against_rule_forbidden_keys(org.sonar.json.CustomRulesTest)  Time elapsed: 0.015 s  <<< FAILURE!
java.lang.AssertionError: expected size:<1> but was:<0> for <[]>
	at org.sonar.json.CustomRulesTest.issues_against_rule_forbidden_keys(CustomRulesTest.java:65)

See also racodond/sonar-json-custom-rules-plugin#1.

javatenor pushed a commit to javatenor/sonar-json-plugin that referenced this issue Dec 18, 2019
javatenor pushed a commit to javatenor/sonar-json-plugin that referenced this issue Dec 18, 2019
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

No branches or pull requests

1 participant