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

Problems with year checking logic in copyright #688

Closed
petertrr opened this issue Jan 6, 2021 · 0 comments · Fixed by #693
Closed

Problems with year checking logic in copyright #688

petertrr opened this issue Jan 6, 2021 · 0 comments · Fixed by #693
Assignees
Labels
bug Something isn't working

Comments

@petertrr
Copy link
Member

petertrr commented Jan 6, 2021

As referenced in #687:

there are some incorrect fixing cases:

  • Additional blank line is inserted after rearranging comments
  • Sometimes, when year is still not changed, there is an NPE somewhere in year checking logic.

Overall, it seems there are some cases that need to be fixed and covered with tests in year checking logic.

The changes from PR #687 can be reverted and tests executed to see exceptions and inconsistencies.

@petertrr petertrr added the bug Something isn't working label Jan 6, 2021
@aktsay6 aktsay6 self-assigned this Jan 11, 2021
aktsay6 added a commit that referenced this issue Jan 11, 2021
### What's done:
  * Fixed NPE
aktsay6 added a commit that referenced this issue Jan 12, 2021
### What's done:
  * Added new warning
  * Updated Tests
  * Fixed bugs
aktsay6 added a commit that referenced this issue Jan 12, 2021
### What's done:
  * Fixed bug
aktsay6 added a commit that referenced this issue Jan 13, 2021
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Jan 13, 2021
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Jan 13, 2021
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Jan 14, 2021
### What's done:
  * Fixed bug
aktsay6 added a commit that referenced this issue Jan 14, 2021
### What's done:
  * Fixed bug
aktsay6 added a commit that referenced this issue Jan 14, 2021
### What's done:
  * Fixed bug
aktsay6 added a commit that referenced this issue Jan 14, 2021
# Conflicts:
#	diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/comments/HeaderCommentRule.kt
aktsay6 added a commit that referenced this issue Jan 14, 2021
* bugfix/new-year-npe(#688)

### What's done:
  * Added new warning
  * Updated Tests
  * Fixed bugs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants