-
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
Bugfix. Sanitize diktat config(#737) #759
Conversation
### What's done: * Watched config files
### What's done: * Renamed an inspection * Checked yml configuration
Codecov Report
@@ Coverage Diff @@
## master #759 +/- ##
============================================
- Coverage 79.75% 79.73% -0.02%
Complexity 2016 2016
============================================
Files 97 97
Lines 5074 5074
Branches 1621 1621
============================================
- Hits 4047 4046 -1
Misses 246 246
- Partials 781 782 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -77,7 +77,7 @@ enum class Warnings( | |||
HEADER_NOT_BEFORE_PACKAGE(true, "2.2.1", "header KDoc should be placed before package and imports"), | |||
COMMENTED_OUT_CODE(false, "2.4.2", "you should not comment out code, use VCS to save it in history and delete this block"), | |||
WRONG_NEWLINES_AROUND_KDOC(true, "2.4.1", "there should be a blank line above the kDoc and there should not be no blank lines after kDoc"), | |||
FIRST_COMMENT_NO_SPACES(true, "2.4.1", "there should not be any spaces before first comment"), | |||
FIRST_COMMENT_NO_BLANK_LINE(true, "2.4.1", "there should not be any blank lines before first comment"), |
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.
What does it check once again? Is this a first comment in the file? How is this different from blank lines rule?
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.
It checks that first comment starts with new line. BlankLinesRule handles blank lines in blocks before/after braces. Seems like blank lines before first comment have more complicated logic.
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.
ok then
FIRST_COMMENT_NO_SPACES rule renamed to FIRST_COMMENT_NO_BLANK_LINE in saveourtool/diktat#759. Update explicit version to 1.0.1. Remove copyright header rules because we do not want DiKTat tests to fail every new year.
FIRST_COMMENT_NO_SPACES rule renamed to FIRST_COMMENT_NO_BLANK_LINE in saveourtool/diktat#759. Update explicit version to 1.0.1. Remove copyright header rules because we do not want DiKTat tests to fail every New Year.
What's done:
This pull request closes #737
Actions checklist