Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@marschwar
Copy link
Contributor

This relates to #3993 and enables checks from the naming rule set

  • Enable more naming rules for detekt code base
  • Fix NoNameShowing violations

Comment on lines +41 to 43
val message = "Class name $name is forbidden as it contains: ${forbiddenEntries.joinToString(", ")}"
report(CodeSmell(issue, Entity.atName(classOrObject), message))
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a "drive-by" fix as the original code did not successfully remove the trailing comma. The result of the trimEnd should have been re-assigned to message.

@codecov
Copy link

codecov bot commented Aug 1, 2021

Codecov Report

Merging #3996 (cb2f086) into main (3710da1) will increase coverage by 0.00%.
The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #3996   +/-   ##
=========================================
  Coverage     83.55%   83.56%           
+ Complexity     3179     3175    -4     
=========================================
  Files           459      459           
  Lines          9085     9084    -1     
  Branches       1765     1764    -1     
=========================================
  Hits           7591     7591           
  Misses          564      564           
+ Partials        930      929    -1     
Impacted Files Coverage Δ
...gitlab/arturbosch/detekt/core/config/YamlConfig.kt 85.18% <50.00%> (ø)
...turbosch/detekt/rules/naming/ForbiddenClassName.kt 93.33% <83.33%> (+5.83%) ⬆️

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 3710da1...cb2f086. Read the comment docs.

@marschwar marschwar added the housekeeping Marker for housekeeping tasks and refactorings label Aug 2, 2021
@cortinico cortinico added this to the 1.18.0 milestone Aug 3, 2021
@BraisGabin BraisGabin merged commit eb141e9 into detekt:main Aug 6, 2021
@marschwar marschwar deleted the boyscout/enable-naming-rules branch August 6, 2021 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

housekeeping Marker for housekeeping tasks and refactorings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants