-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Issue #17756: Fix GenericWhitespaceCheck to reject tabs after '>' #17860
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
base: master
Are you sure you want to change the base?
Issue #17756: Fix GenericWhitespaceCheck to reject tabs after '>' #17860
Conversation
5758a2d
to
1f4bc16
Compare
@DakshRJain737 you need to add test cases to prove your code actually resolves the issue. Line 45 in ec16b48
|
@mohitsatr I used tab space in input file. Its not being approved by workflows due to the tab |
@DakshRJain737 Tabs are not allowed. Use Spaces |
@mohitsatr tried what you told but i dont know why it feels messed up |
6905658
to
918c178
Compare
Github, generate report for GenericWhitespace/all-examples-in-one |
Report for GenericWhitespace/all-examples-in-one: |
Add the following cases/ or similar looking syntax to the input: and see if branch is fully covered after adding them |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
items:
@mohitsatr 100% code coverage |
.../puppycrawl/tools/checkstyle/checks/whitespace/genericwhitespace/InputGenericWhitespace.java
Outdated
Show resolved
Hide resolved
eb481a2
to
020124d
Compare
020124d
to
0582034
Compare
@mohitsatr sir 🙂 |
[ERROR] AdvancedNetworkAddressPicker.java:87:56: '>' is followed by an illegal character. [GenericWhitespace] I just saw the hazelcast repo and the code in AdvancedNetworkAddressPicker.java:87:56: has multiple space after '>'. |
Please raise a PR on their project, fixing the spaces in all these files and reference this PR in the description. Example: pgjdbc/pgjdbc#3682 |
@mohitsatr Oh done I will do it by today |
I think something went wrong with pitest CI workflow itself. It did not fail last time. don't worry It is not failing because of your code. |
Ok I will resolve hazelcast issue by today |
Fixes GenericWhitespaceCheck to reject tab characters after closing angle bracket '>'
and enforce a single ASCII space where required, while keeping existing diamond operator exceptions intact.
This resolves Issue #17756.