-
Notifications
You must be signed in to change notification settings - Fork 13
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
Allow repos to use Sonar to manage clean code, fix warnings #98
Allow repos to use Sonar to manage clean code, fix warnings #98
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #98 +/- ##
=====================================
+ Coverage 88% 91% +2%
=====================================
Files 18 18
Lines 2196 2211 +15
=====================================
+ Hits 1939 2017 +78
+ Misses 257 194 -63
... and 1 file with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
064ea92
to
c9cd952
Compare
Pull Request Test Coverage Report for Build 8420807166Details
💛 - Coveralls |
1d02833
to
91437ad
Compare
- Fix warnings from SonarLint, Codacy (e.g bandit), Sourcery - Update configuration to be compatible with SonarCloud Signed-off-by: Bernhard Kaindl <[email protected]>
4992e34
to
dcf9cf4
Compare
elif filetype == "tar": | ||
tarfile.TarFile.open(filename).extractall(tmp_path) | ||
tar = tarfile.TarFile.open(filename) |
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.
Worth using context managers here and line 205?
Optionally allow repos to use Sonar to manage clean code and fix Sonar warnings
Quality Gate Passed Quality Gate passed
Issues
(Remark for the PR: Accepted issues are like "WONTFIX" (acknowledged, but decided to not fix)
Measures
Example PR comment by Sonarcloud:
xenserver-next#26 (comment)
xen-bugtool's code is very clean at the moment, and this PR should help to test sonarcloud.
Code coverage (also checked by sonarcloud for this PR) confirms that the changed lines in xen-bugtool and the unit tests are already covered by existing unit tests that cover 90% of the code.
I checked if the change to
disk_list()
is indeed tested: Yes it is:Here is the documentation for the used GitHub action:
https://github.com/SonarSource/sonarcloud-github-action?tab=readme-ov-file