We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da554ed commit 3ab19adCopy full SHA for 3ab19ad
javascript/ql/src/Expressions/UnclearOperatorPrecedence.ql
@@ -25,6 +25,8 @@ where
25
// don't flag if the other operand is itself a comparison,
26
// since the nesting tends to be visually more obvious in such cases
27
not other instanceof Comparison and
28
+ // don't flag if the comparison is wrapped in parentheses
29
+ not rel.isParenthesized() and
30
// don't flag occurrences in minified code
31
not rel.getTopLevel().isMinified()
32
select rel,
0 commit comments