Skip to content

Commit

Permalink
Data class rule: removing several cases from the scope of the inspection
Browse files Browse the repository at this point in the history
### What's done:
- Removed annotation, value, sealed, inline, inner classes from the scope
- Added tests
  • Loading branch information
orchestr7 committed Jul 23, 2022
1 parent 44e469d commit 70f46ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DataClassesRule(configRules: List<RulesConfig>) : DiktatRule(
}

private fun handleClass(node: ASTNode) {
if ((node.psi as KtClass).isDefinitelyNotADataClass()) {
if ((node.psi as KtClass).isDefinitelyNotDataClass()) {
return
}

Expand Down

0 comments on commit 70f46ca

Please sign in to comment.