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

Fix: Don't check length of import statements #1108

Merged
merged 2 commits into from
Nov 9, 2021

Conversation

petertrr
Copy link
Member

@petertrr petertrr commented Nov 9, 2021

What's done:

  • Fix bug in code
  • Update test

Which rule and warnings did you add?

This pull request closes #1077
We actually had logic, which doesn't check length of package directives and import statements. However, due to a small bug, it was not working from the very beginning...

### What's done:
* Fix bug in code
* Update test
### What's done:
* Override repositories for gradle plugins because of unstable bintray
@codecov
Copy link

codecov bot commented Nov 9, 2021

Codecov Report

Merging #1108 (82b351d) into master (f17101e) will increase coverage by 0.01%.
The diff coverage is 75.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1108      +/-   ##
============================================
+ Coverage     83.41%   83.43%   +0.01%     
- Complexity     2460     2462       +2     
============================================
  Files           102      102              
  Lines          6145     6146       +1     
  Branches       1841     1840       -1     
============================================
+ Hits           5126     5128       +2     
  Misses          274      274              
+ Partials        745      744       -1     
Flag Coverage Δ
unittests 83.43% <75.00%> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
...g/cqfn/diktat/ruleset/rules/chapter3/LineLength.kt 90.87% <75.00%> (+0.43%) ⬆️

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 f17101e...82b351d. Read the comment docs.

@petertrr petertrr enabled auto-merge (squash) November 9, 2021 13:49
@petertrr petertrr merged commit fd604b3 into master Nov 9, 2021
@petertrr petertrr deleted the bugfix/long-imports#1077 branch November 9, 2021 14:30
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.

Long import statements cause diktat to fail
2 participants