Issue #18064: added ArrayBracketNoWhitespace check#18240
Issue #18064: added ArrayBracketNoWhitespace check#18240M-SaaD-H wants to merge 1 commit intocheckstyle:masterfrom
Conversation
|
Please read and watch videos at Starting_Development. |
|
Hi @romani , |
|
Just debug test and trace all lines to understand why there is no violation. All is debug-able. |
|
@saad please make sure commit should be only one so, please squash all commits into single one. |
|
@M-SaaD-H please push the changes so we can see what's wrong with XpathRegression tests. It's little hard to understand from images. |
|
@mohitsatr I have pushed the code. |
...ckstyle/checks/whitespace/arraybracketnowhitespace/InputArrayBracketNoWhitespaceDefault.java
Show resolved
Hide resolved
...ckstyle/checks/whitespace/arraybracketnowhitespace/InputArrayBracketNoWhitespaceDefault.java
Outdated
Show resolved
Hide resolved
|
Hi @mohitsatr can you please look into the CIs, I can't really get why they are failing. |
|
Hello Saad my advice is that you have to be run the command mvn clean verify again and run this command again and again until BUILD SUCCESS will not encountered because same error also came in my checks so I simply did to ran command mvn clean verify and when BUILD SUCCESS showing then I push my code and all checks passed. |
|
Hi @SURYANSHUAGRAWAL2006 , |
|
For the run-inspections failure open the ci failes they have given this link you will se the inspections result open those links and fix those issues Similarly for other CI failures check the logs |
|
Hello Saad I saw your build failure this is occurring not because of your code or check style it is because of maven problem so, Kindly rerun all CI best way close the pr then reopen the pr then all CI will run again and then you check all CI is passing or not but I am sure this is not your code problem rather than it is problem of maven internal. |
|
Hi @romani |
ce465be to
b2c32cd
Compare
bf67dc9 to
8bb25c4
Compare
|
@M-SaaD-H Green CI is a good sign. Take to run regression. Please go through the section Executing generation using github action and try to generate the report. Example PR: #17329 |
47b8d0f to
4d1133d
Compare
|
GitHub, generate report |
|
Report generation failed on phase "make_report", |
|
Report generation failed on phase "make_report", |
|
@M-SaaD-H Config in the Pr's description is not valid. It has to be like: https://gist.githubusercontent.com/mohitsatr/0e04070f847926ea44bf7eda88706807/raw/f9470db307d730a651e9c93cad776d6b592839e8/textblockgooglestyleformatting.xml. Replace Textb...Check with your check |
e252fbf to
4d67faa
Compare
|
Hi @romani , |
...ces/com/puppycrawl/tools/checkstyle/checks/whitespace/arraybracketnowhitespace/Example1.java
Outdated
Show resolved
Hide resolved
...ces/com/puppycrawl/tools/checkstyle/checks/whitespace/arraybracketnowhitespace/Example1.java
Outdated
Show resolved
Hide resolved
...ces/com/puppycrawl/tools/checkstyle/checks/whitespace/arraybracketnowhitespace/Example2.java
Outdated
Show resolved
Hide resolved
...in/java/com/puppycrawl/tools/checkstyle/checks/whitespace/ArrayBracketNoWhitespaceCheck.java
Outdated
Show resolved
Hide resolved
|
please rebase on most latest code. |
|
GitHub, generate website |
|
@M-SaaD-H , can you explain this violation can you google formatter onthis snippet by CLI and share output. |
|
@romani , the violation that you pointed out is However, |
|
@romani , I ran google-java-format on the file via CLI. The formatter does not change this line, so it doesn’t consider it a formatting issue. |
a20f5bf to
f17ae09
Compare
src/test/java/com/puppycrawl/tools/checkstyle/internal/XdocsExamplesAstConsistencyTest.java
Outdated
Show resolved
Hide resolved
this is false positive, please fix. |
|
GitHub, generate website |
|
GitHub, generate website |
|
GitHub, generate website |
|
@M-SaaD-H |
|
Hi @vivek-0509 |
|
@M-SaaD-H This means the VARIABLE_DEF token does nothing and is effectively dead code since a VARIABLE_DEF token can never appear closest after a ]. We can safely remove it and verify that everything works correctly without it. |
|
@vivek-0509 |
fixes #18064
New module config: https://gist.githubusercontent.com/M-SaaD-H/c0e73c4661d662cf719263dd62c5729b/raw/fbd2af1abffb6b6e9c90081a71d74c0ddbfd0bdc/gistfile1.txt
Contribution repo: checkstyle/contribution#1007