Skip to content

Conversation

@Anmol202005
Copy link
Collaborator

@Anmol202005 Anmol202005 commented Jul 2, 2025

Part of #2:
Updated README.md added:

  • AbbreviationAsWordInName
  • AbstractClassName
  • UnusedLocalVariable

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

Thoughts

README.md Outdated
_No checks analyzed yet_
| Status | Check | Recipe | Coverage Notes |
|--------|--------------------------------------------------------------------------------------------------------------------------------------|--------|-----------------------------------------|
| 🟢 | [`AbbreviationAsWordInName`](https://checkstyle.sourceforge.io/checks/naming/abbreviationaswordinname.html#AbbreviationAsWordInName) | `TBD` | |
Copy link
Member

Choose a reason for hiding this comment

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

I don't know how it can be auto fix?
We don't know what user meant

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

https://docs.openrewrite.org/recipes/staticanalysis/renamelocalvariablestocamelcase

We should be very accurate.
They look like do renaming from upper case snake style to camel only. Where _ is separator of words. Only in this rare edge case it is reliable.

README.md Outdated
| Status | Check | Recipe | Coverage Notes |
|--------|--------------------------------------------------------------------------------------------------------------------------------------|--------|-----------------------------------------|
| 🟢 | [`AbbreviationAsWordInName`](https://checkstyle.sourceforge.io/checks/naming/abbreviationaswordinname.html#AbbreviationAsWordInName) | `TBD` | |
| 🟢 | [`AbstractClassName`](https://checkstyle.sourceforge.io/checks/naming/abstractclassname.html#AbstractClassName) | `TBD` | |
Copy link
Member

Choose a reason for hiding this comment

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

I don't know how it can be auto fix?
We don't know what user meant .
It has two options to fix .

Copy link
Member

Choose a reason for hiding this comment

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

The check uses name pattern to check and other two properties to control when to check. I think we can try to cover it by having a recipe that accepts same pattern and does renaming according to the pattern. It won't be fully covered, but we can try to cover the check partially at least.

Copy link
Member

Choose a reason for hiding this comment

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

@Anmol202005 let's change it to "Partial Coverag" for now, we can always set "not covered" if nothing we can do

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done.

@Anmol202005 Anmol202005 force-pushed the r1 branch 2 times, most recently from d8d5888 to c202db4 Compare July 3, 2025 18:37
@Anmol202005
Copy link
Collaborator Author

@romani updated both as not fixable :)

@rdiachenko
Copy link
Member

@Anmol202005 let's put all such commits under this issue #2

@Anmol202005
Copy link
Collaborator Author

@Anmol202005 let's put all such commits under this issue #2

@rdiachenko done.

@Anmol202005
Copy link
Collaborator Author

@rdiachenko Done.

Copy link
Member

@rdiachenko rdiachenko left a comment

Choose a reason for hiding this comment

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

lgtm

@rdiachenko rdiachenko merged commit cb642ab into checkstyle:main Jul 5, 2025
3 checks passed
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.

3 participants