Template for a good new topic, formatted with Markdown:
- ALM used : GitHub
- CI system used : Github action
- Scanner command used when applicable : SonarSource/sonarcloud-github-action@v2.0.0
- Languages of the repository : javascript/typescript
- Only if the SonarCloud project is public : private
- Error observed
-
with a PR than with 1 line of code change (some other files are in sonar.coverage.exclusions) and some dependencies updated, such that the generate coverage/lcov.info is broken, thus the code coverage is 0%. The PR is merged and the problem undetected. Later we realized that subsequent PR do not have coverage (80% threshold), in the meantime a few small PRs have passed (green water melon with 0%) under the carpet.
-
We have microservices, with distributed repositories, so having small PR is something normal. How can we use sonarcloud with such a feature (ignoring PR under 20 LoC) being active and having certain PRs going thru the gate?
-
How can we claim to do “Clean as You Code”, with such a feature in place?
- Steps to reproduce : create a PR with less than 20 lines of code changed
- Potential workaround : no