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

[#1347] Stop using DEFAULT_INDENT_SIZE directly #1382

Conversation

0x6675636b796f75676974687562
Copy link
Member

What's done:

  • DEFAULT_INDENT_SIZE is no longer used directly, in favor of IndentationConfig.indentationSize.
  • IndentationConfig.indentationSize usages encapsulated where possible.

### What's done:

 * `DEFAULT_INDENT_SIZE` is no longer used directly, in favor of `IndentationConfig.indentationSize`.
 * `IndentationConfig.indentationSize` usages encapsulated where possible.
@codecov
Copy link

codecov bot commented Jun 21, 2022

Codecov Report

Merging #1382 (c755a09) into master (b2a52ab) will decrease coverage by 0.05%.
The diff coverage is 78.87%.

@@             Coverage Diff              @@
##             master    #1382      +/-   ##
============================================
- Coverage     83.53%   83.47%   -0.06%     
+ Complexity     2552     2550       -2     
============================================
  Files           106      107       +1     
  Lines          7517     7547      +30     
  Branches       2081     2082       +1     
============================================
+ Hits           6279     6300      +21     
- Misses          359      367       +8     
- Partials        879      880       +1     
Flag Coverage Δ
unittests 83.47% <78.87%> (-0.06%) ⬇️

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

Impacted Files Coverage Δ
.../cqfn/diktat/ruleset/utils/indentation/Checkers.kt 79.48% <ø> (ø)
...otlin/org/cqfn/diktat/ruleset/utils/StringUtils.kt 87.87% <50.00%> (-2.45%) ⬇️
...at/ruleset/rules/chapter3/files/IndentationRule.kt 83.09% <79.10%> (-1.85%) ⬇️
...t/ruleset/rules/chapter3/files/IndentationError.kt 100.00% <100.00%> (ø)
...tat/ruleset/utils/indentation/IndentationConfig.kt 100.00% <100.00%> (ø)

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 fcbb82b...c755a09. Read the comment docs.

@github-actions
Copy link
Contributor

JUnit Tests (macOS, EnricoMi/publish-unit-test-result-action@v1)

1 260 tests   1 240 ✔️  9m 1s ⏱️
   151 suites       20 💤
   151 files           0

Results for commit c755a09.

@github-actions
Copy link
Contributor

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

1 260 tests   1 240 ✔️  9m 12s ⏱️
   151 suites       20 💤
   151 files           0

Results for commit c755a09.

@0x6675636b796f75676974687562 0x6675636b796f75676974687562 deleted the feature/andrey.shcheglov/indentation-unit-tests branch June 21, 2022 11:46
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.

WRONG_INDENTATION: running mvn diktat:fix adds whitespace to string literals
2 participants