-
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
Check if copyright year is valid #270
Conversation
### What's done: * Added new rule, that checks year of copyright * Added warn test * Added fix test
Codecov Report
@@ Coverage Diff @@
## master #270 +/- ##
============================================
+ Coverage 81.31% 82.12% +0.81%
- Complexity 966 976 +10
============================================
Files 51 50 -1
Lines 2531 2534 +3
Branches 793 798 +5
============================================
+ Hits 2058 2081 +23
+ Misses 187 169 -18
+ Partials 286 284 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/comments/HeaderCommentRule.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/comments/HeaderCommentRule.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/comments/HeaderCommentRule.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter2/HeaderCommentRuleFixTest.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter2/HeaderCommentRuleTest.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/comments/HeaderCommentRule.kt
Outdated
Show resolved
Hide resolved
### What's done: * Fixed bug
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter2/HeaderCommentRuleTest.kt
Show resolved
Hide resolved
diktat-rules/src/test/resources/test/paragraph2/header/CopyrightDifferentYearExpected.kt
Show resolved
Hide resolved
### What's done: * Added lint tests * Remade Generation to validate year
### What's done: * Added lint tests * Remade Generation to validate year
# Conflicts: # diktat-rules/src/main/resources/diktat-analysis.yml
### What's done: * Fixed bugs
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/generation/Generation.kt
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/generation/Generation.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/comments/HeaderCommentRule.kt
Outdated
Show resolved
Hide resolved
### What's done: * Fixed bugs
pom.xml
Outdated
@@ -325,6 +325,9 @@ | |||
<groupId>org.jacoco</groupId> | |||
<artifactId>jacoco-maven-plugin</artifactId> | |||
<version>0.8.5</version> | |||
<configuration> | |||
<excludes>GenerationKt</excludes> |
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.
Turns out I was wrong and it doesn't work like this. Could you investigate further? Maybe, **/GenerationKt.class
? Or just **/Generation.kt
?
### What's done: * Fixed bugs
Which rule and warnings did you add?
Rule checks if the year of copyright is valid. For example: (c) 2019 need to be changed to 2020
Actions checklist
Closes #3