-
Notifications
You must be signed in to change notification settings - Fork 19
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
Rule/erea001 supported version range #28
Conversation
…mpose file is invalid because: Service sonar has neither an image nor a build context specified. At least one must be provided."
NodeList rule = doc.getElementsByTagName("rule"); | ||
assertThat(activeRules).as("Expected number of rules in profile").hasSize(rule.getLength()); | ||
} catch (ParserConfigurationException | SAXException | IOException e) { | ||
e.printStackTrace(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if we have this this exception ? The assert l65 is skipped and we have no test failure I think. We must force a failure here.
I also add dynamic groovy rules size checking in test file GroovySonarWayProfileTest, reading the rules.xml file and checking the number of node |
if the file is not found in the project, the test will fail showing the FileNotFoundException
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Adding a fix to the dockerFile
Update SupportedVersionRange rule checking minSdk and targetSdk in gradle