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

Make DiktatRuleSetProvider#get() lazy #1553

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

0x6675636b796f75676974687562
Copy link
Member

What's done:

### What's done:

 - Fixes #1548.
 - Since Diktat rules have no mutable state, it's safe to reuse them for
   checking multiple files.
@codecov
Copy link

codecov bot commented Nov 7, 2022

Codecov Report

Merging #1553 (0f4c5c5) into master (b6e824d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##             master    #1553   +/-   ##
=========================================
  Coverage     82.11%   82.12%           
+ Complexity     2311     2309    -2     
=========================================
  Files           112      112           
  Lines          7835     7837    +2     
  Branches       2030     2030           
=========================================
+ Hits           6434     6436    +2     
  Misses          481      481           
  Partials        920      920           
Flag Coverage Δ
unittests 82.12% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...cqfn/diktat/ruleset/rules/DiktatRuleSetProvider.kt 97.54% <100.00%> (+0.04%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2022

JUnit Tests (Windows, EnricoMi/publish-unit-test-result-action@v2)

1 993 tests   1 978 ✔️  4m 6s ⏱️
   162 suites       15 💤
   162 files           0

Results for commit 0f4c5c5.

@0x6675636b796f75676974687562 0x6675636b796f75676974687562 deleted the bugfix/andrey.shcheglov/a branch November 7, 2022 16:54
0x6675636b796f75676974687562 added a commit that referenced this pull request Nov 9, 2022
### What's done:

 - Original issue: #1548.
 - Original PR: #1553.
 - This change reverts 3470888.
 - Enhances the KDoc of `DiktatRule`.
 - Fixes #1548.
0x6675636b796f75676974687562 added a commit that referenced this pull request Nov 9, 2022
### What's done:

 - Original issue: #1548.
 - Original PR: #1553.
 - This change reverts 3470888.
 - Enhances the KDoc of `DiktatRule`.
 - Fixes #1548.
0x6675636b796f75676974687562 added a commit that referenced this pull request Nov 9, 2022
### What's done:

 - Original issue: #1548.
 - Original PR: #1553.
 - This change reverts 3470888.
 - Enhances the KDoc of `DiktatRule`.
 - Fixes #1548.
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.

"Configuration file not found in directory where diktat is run" warning is printed multiple times
2 participants