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 the compilation error (Kotlin 1.7+) #1365

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

0x6675636b796f75676974687562
Copy link
Member

What's done:

  • Non-exhaustive if and when blocks are no longer allowed when used as expressions
    (see KT-44705).

### What's done:

 * Non-exhaustive `if` and `when` blocks are no longer allowed when used as expressions
   (see <https://youtrack.jetbrains.com/issue/KT-44705>).
@codecov
Copy link

codecov bot commented Jun 15, 2022

Codecov Report

Merging #1365 (d0b7226) into master (0959a2b) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master    #1365      +/-   ##
============================================
- Coverage     83.68%   83.67%   -0.02%     
  Complexity     2588     2588              
============================================
  Files           106      106              
  Lines          7386     7387       +1     
  Branches       2048     2048              
============================================
  Hits           6181     6181              
- Misses          353      354       +1     
  Partials        852      852              
Flag Coverage Δ
unittests 83.67% <0.00%> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
...qfn/diktat/ruleset/rules/chapter1/PackageNaming.kt 89.07% <0.00%> (-0.76%) ⬇️

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 0959a2b...d0b7226. Read the comment docs.

@@ -82,6 +82,9 @@ class PackageNaming(configRules: List<RulesConfig>) : DiktatRule(
} ?: if (visitorCounter.incrementAndGet() == 1) {
log.error("Not able to find an external configuration for domain" +
" name in the common configuration (is it missing in yml config?)")
} else {
@Suppress("RedundantUnitExpression")
Unit
Copy link
Member

Choose a reason for hiding this comment

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

maybe change it to a simple comment:

// do nothing

@0x6675636b796f75676974687562 0x6675636b796f75676974687562 deleted the bugfix/kotlin-1.7 branch June 16, 2022 07:18
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.

2 participants