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

UseDataClass flags the whole class body, not just the name #5338

Closed
TWiStErRob opened this issue Sep 23, 2022 · 0 comments · Fixed by #5352
Closed

UseDataClass flags the whole class body, not just the name #5338

TWiStErRob opened this issue Sep 23, 2022 · 0 comments · Fixed by #5352
Labels
Milestone

Comments

@TWiStErRob
Copy link
Member

Steps to Reproduce

class Violation(
	val rule: String,
	val category: String?,
	val message: String
) {
	// 
}

Observed Behavior

image

Expected Behavior

Highlight only on class name or even the class keyword of it.
image

Context

Pretty much the same as #5316, but a different rule.

Your Environment

  • Version of detekt used: 1.21.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants