Skip to content
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

Improvements for Copyrights rule - support pattern for the current year in the configuration #1154

Merged
merged 3 commits into from
Dec 21, 2021

Conversation

kgevorkyan
Copy link
Member

What's done:

  • Improvements for Copyrights rule - support pattern for the current year in the configuration

### What's done:
* .
### What's done:
* Codestyle
@codecov
Copy link

codecov bot commented Dec 20, 2021

Codecov Report

Merging #1154 (03fa3c8) into master (87ae5c0) will increase coverage by 0.00%.
The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1154   +/-   ##
=========================================
  Coverage     84.72%   84.72%           
  Complexity     2482     2482           
=========================================
  Files           102      102           
  Lines          6973     6974    +1     
  Branches       1872     1872           
=========================================
+ Hits           5908     5909    +1     
  Misses          302      302           
  Partials        763      763           
Flag Coverage Δ
unittests 84.72% <75.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...leset/rules/chapter2/comments/HeaderCommentRule.kt 88.07% <75.00%> (+0.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 87ae5c0...03fa3c8. Read the comment docs.

@kgevorkyan kgevorkyan marked this pull request as ready for review December 20, 2021 11:59
// need to make sure that copyright year is consistent with current year
val copyrightText = configuration.getCopyrightText()

if (makeCopyrightCorrectYear(copyrightText).isNotEmpty()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add this to the readme of the rule

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

### What's done:
* readme
@orchestr7
Copy link
Member

orchestr7 commented Dec 20, 2021

@kgevorkyan please test (with a binary file manually) on several big files (where you will add the copyright) after the merge.
And then create a release (cut the tag).

@kgevorkyan kgevorkyan merged commit da3f5ae into master Dec 21, 2021
@kgevorkyan kgevorkyan deleted the feature/enhacement_in_copyright_rule branch December 21, 2021 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copyright text for copyright rule should be able to contain patters for current year
2 participants