checkstyle icon indicating copy to clipboard operation
checkstyle copied to clipboard

Re-enable inspections that were temporarily suppressed for Qodana

Open Atharv3221 opened this issue 9 months ago • 13 comments

We recently migrated to Qodana for code inspections. During the migration, some inspections were temporarily suppressed to allow the transition to complete without blocking development.

These suppressions are still in place, and the underlying code violations need to be resolved and suppressions should be removed.

https://github.com/checkstyle/checkstyle/blob/master/config/intellij-idea-inspections.xml , search "18926"

Inspections to Re-enable

  • [x] ClassCanBeRecord
  • [ ] ClassEscapesItsScope
  • [ ] EmptyClass
  • [x] EqualsWithItself
  • [ ] ExtractMethodRecommender
  • [ ] FieldMayBeStatic
  • [ ] Java9ReflectionClassVisibility
  • [x] MappingBeforeCount
  • [x] RedundantSuppression
  • [ ] SystemGetProperty
  • [x] UnnecessarilyQualifiedStaticUsage
  • [x] PropertiesAsHashtable
  • [x] WhileCanBeDoWhile

Target 1 inspection per pr.

Atharv3221 avatar Feb 13 '26 10:02 Atharv3221

Hi! I would like to work on re-enabling the FieldMayBeStatic inspection. Please assign this to me.

Vikash-Kumar-23 avatar Feb 14 '26 07:02 Vikash-Kumar-23

@Vikash-Kumar-23 issue is not approved yet please work on approved issues. In checkstyle there is no assignment of issues just comment I am on it and start working on it if no one else is already working on it

vivek-0509 avatar Feb 14 '26 07:02 vivek-0509

Issue will be approved after https://github.com/checkstyle/checkstyle/pull/18917 is merged

romani avatar Feb 16 '26 22:02 romani

@romani please approve this issue

Atharv3221 avatar Feb 19 '26 04:02 Atharv3221

Approved

romani avatar Feb 21 '26 03:02 romani

I am on it. I'll be working on re-enabling the ClassCanBeRecord inspection.

ayushactiveat avatar Feb 21 '26 06:02 ayushactiveat

i am on EqualsWithItself

vivek-0509 avatar Feb 21 '26 10:02 vivek-0509

i am on RedundantSuppression

vivek-0509 avatar Feb 21 '26 10:02 vivek-0509

I am on UnnecessarilyQualifiedStaticUsage

vivek-0509 avatar Feb 21 '26 11:02 vivek-0509

i am on PropertiesAsHashtable

ayushactiveat avatar Feb 22 '26 05:02 ayushactiveat

I am working on re-enabling the ClassEscapesItsScope inspection. Draft PR: https://github.com/checkstyle/checkstyle/pull/19103

pirzada-ahmadfaraz avatar Mar 04 '26 00:03 pirzada-ahmadfaraz

Working on Java9ReflectionClassVisibility - PR #19105

pirzada-ahmadfaraz avatar Mar 04 '26 05:03 pirzada-ahmadfaraz

All changes are merged, thanks a lot to all participants!!!

romani avatar Mar 10 '26 21:03 romani