We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Identified at #5778 (comment) ,
$ cat TestClass.java public class TestClass { void method(String sectionName) { if ("Content".equals(sectionName) || "Overview".equals(sectionName) // suppression list || (!"AbbreviationAsWordInName".equals(sectionName) && !"AbstractClassName".equals(sectionName) )) { continue; } } } $ cat TestConfig.xml <?xml version="1.0"?> <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> <module name="Checker"> <property name="charset" value="UTF-8"/> <module name="TreeWalker"> <module name="UnnecessaryParentheses" /> </module> </module> $ java -jar checkstyle-8.10-all.jar -c TestConfig.xml TestClass.java Starting audit... Audit done.
Every other CI complains about parenthesis at line 5 except our check. There should be a violation there.
The text was updated successfully, but these errors were encountered:
Issue checkstyle#5779: Check conditional operators for unnecessary pa…
b32ab6f
…rentheses Signed-off-by: Yasser Aziza <yasser.aziza@gmail.com>
fe00153
…rentheses
I am on it
Sorry, something went wrong.
Issue #5779: fixing no violation on parenthesis in if statement betwe…
0b4fe61
…en || and &&
merged
Successfully merging a pull request may close this issue.
Identified at #5778 (comment) ,
Every other CI complains about parenthesis at line 5 except our check. There should be a violation there.
The text was updated successfully, but these errors were encountered: