Skip to content

Issue #53: updated test report and upperEll to use 1 based index #54

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

Merged
merged 1 commit into from
Jul 19, 2025

Conversation

Anmol202005
Copy link
Collaborator

Fixes: #53
updated recipe to use 1 based index.

@Anmol202005
Copy link
Collaborator Author

Anmol202005 commented Jul 19, 2025

Issue for false-negative: #55

@@ -5,11 +5,11 @@ public class InputComplexLongLiterals {
private long multipleUnderscores = 1_234_567_890l;

private long maxLong = 9223372036854775807l;
private long minLong = -9223372036854775808l;
private long minLong = -9223372036854775808l; //false negative
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't understand this false negative comment, please clarify what you 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.

these literals are not fixed by the recipe, due to improper column calculation.

Copy link
Collaborator

Choose a reason for hiding this comment

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

please confirm this will be fixed by #56

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, it will do.

@@ -1,109 +1,109 @@
<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="10.12.3">
<file name="org/checkstyle/autofix/recipe/upperell/stringandcomments/InputStringAndComments.java">
<error line="11" column="30" severity="error"
<error line="11" column="31" severity="error"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Note: We need to finish with integration test pipeline asap to get rid of these manual report files and fully rely on actual checkstyle execution and report

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yep, this is the way forward.

@rdiachenko rdiachenko self-assigned this Jul 19, 2025
Copy link
Collaborator

@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 6b118b8 into checkstyle:main Jul 19, 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.

Update UpperEll to use 1 based column index
2 participants