Upcoming Webinar!
What's hiding in your code? Uncovering the state of code security - Register now!
Sonar Community
Exclude rules from unit tests?
SonarQube Server / Community Build
agabrys
(Adam Gabryś)
February 14, 2019, 4:26pm
4
It is impossible. I think this thread should be interesting for you:
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Allow enabling sonar rules for test sources
Suggest new features
tests
,
rules
19
11126
August 27, 2025
When i analyzed my project by Sonarquebe , Sonar report showing code smell in test classes in java
SonarQube Server / Community Build
java
,
sonarqube
1
1294
September 13, 2022
Configuring Custom Sonar Rules Separately for src/main and src/test
Rules and Languages
3
75
March 6, 2025
Rule java:S1874 "@Deprecated" code should not be used - in test code
Discussions
java
15
671
July 12, 2024
Some but not all rules are applied to test files in Java
IntelliJ Platform
1
314
August 10, 2023