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

Rule/erea001 supported version range #28

Merged
merged 3 commits into from
Mar 9, 2023

Conversation

Jberque
Copy link
Contributor

@Jberque Jberque commented Mar 9, 2023

Adding a fix to the dockerFile
Update SupportedVersionRange rule checking minSdk and targetSdk in gradle

jberque added 2 commits March 9, 2023 15:48
…mpose file is invalid because:

Service sonar has neither an image nor a build context specified. At least one must be provided."
@olegoaer olegoaer added the android Something tied to the android OS label Mar 9, 2023
NodeList rule = doc.getElementsByTagName("rule");
assertThat(activeRules).as("Expected number of rules in profile").hasSize(rule.getLength());
} catch (ParserConfigurationException | SAXException | IOException e) {
e.printStackTrace();
Copy link
Contributor

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.

@Jberque
Copy link
Contributor Author

Jberque commented Mar 9, 2023

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
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@dedece35
Copy link
Member

dedece35 commented Mar 9, 2023

@Jberque @jhertout I think we can delete the old branch => button "delete branch"

@jhertout jhertout deleted the rule/EREA001_supported_version_range branch March 10, 2023 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Something tied to the android OS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants