Thats by design, rules are either for main code or for test code
reitzmichnicht
(Michael Düsterhus)
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Allow enabling sonar rules for test sources | 19 | 11356 | August 27, 2025 | |
| When i analyzed my project by Sonarquebe , Sonar report showing code smell in test classes in java | 1 | 1374 | September 13, 2022 | |
| Thousands of unwanted issues in test code after upgrading to SonarQube 10 | 3 | 130 | July 9, 2025 | |
| False positive in eclipse for S5960 - Remove this assertion from production code | 8 | 6417 | March 15, 2021 | |
| Some but not all rules are applied to test files in Java | 1 | 343 | August 10, 2023 |