Template for a good new topic, formatted with Markdown:
- ALM used (GitHub, Bitbucket Cloud, Azure DevOps) - Azure DevOps
- CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI - Azure DevOps
- Scanner command used when applicable (private details masked)
- Languages of the repository - csharp
- Only if the SonarCloud project is public, the URL
- And if you need help with pull request decoration, then the URL to the PR too
- Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
- Steps to reproduce
Problem: How to ignore getter and setter methods from code coverage Uncovered Lines
Steps - Code coverage is showing Uncovered Lines for Getter, Setter methods, variables, try and catch blocks, if blocks, constructor, variables assignment types of codes. Sonar cloud shows red in code coverage as its Uncovered Lines. - Potential workaround - Dont know. Help need if any workaround options/code/logic to ignore these cases from the code coverage.
Any assistance you can provide would be greatly appreciated.