-
Notifications
You must be signed in to change notification settings - Fork 39
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
Adding new logic for suppressing inspection #1328
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1328 +/- ##
============================================
- Coverage 82.08% 82.01% -0.08%
Complexity 2538 2538
============================================
Files 105 105
Lines 7223 7239 +16
Branches 2065 2071 +6
============================================
+ Hits 5929 5937 +8
- Misses 346 354 +8
Partials 948 948
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
### What's done: - ignoreAnnotated logic - adding suppressing for ALL rules for the code block
553898b
to
48cfdbd
Compare
### What's done: - ignoreAnnotated logic to disable annotated code blocks - adding mechanism for suppression of ALL rules for the selected code block with Suppress("diktat")
### What's done: - ignoreAnnotated logic to disable annotated code blocks - adding mechanism for suppression of ALL rules for the selected code block with Suppress("diktat")
### What's done: - diktat fixes
…ature/ignoreAnnotated # Conflicts: # diktat-common/src/main/kotlin/org/cqfn/diktat/common/config/rules/RulesConfigReader.kt
### What's done: - detekt fixes
### What's done: - detekt fixes
5814edb
to
f6f4cb1
Compare
@@ -12,6 +12,8 @@ | |||
# Checks that the Class/Enum/Interface name does not match Pascal case | |||
- name: CLASS_NAME_INCORRECT | |||
enabled: true | |||
# all code blocks with MyAnnotation will be ignored and not checked | |||
ignoreAnnotated: [ MyAnnotation ] |
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.
This file will be bundled into the jar, is it worth adding this here and not into examples?
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.
I see that users copy-paste this one 🤦
But yes, let's remove
Co-authored-by: Peter Trifanov <[email protected]>
What's done:
ignoreAnnotated
logic that helps to suppress inspections that could have triggered on the block of code annotated with some specific annotations (useful for Jetpack)