Compare commits

...

1 Commits

Author SHA1 Message Date
Esben Sparre Andreasen
973d35507f make WhitespaceContradictsPrecedence silly 2021-02-04 19:35:03 +01:00

View File

@@ -72,9 +72,6 @@ predicate interestingNesting(BinaryExpr inner, BinaryExpr outer) {
not inner instanceof HarmlessNestedExpr not inner instanceof HarmlessNestedExpr
} }
from BinaryExpr inner, BinaryExpr outer from BinaryExpr outer
where where outer.getLocation().getStartLine() % 2 = 0
interestingNesting(inner, outer) and
inner.getWhitespaceAroundOperator() > outer.getWhitespaceAroundOperator() and
not outer.getTopLevel().isMinified()
select outer, "Whitespace around nested operators contradicts precedence." select outer, "Whitespace around nested operators contradicts precedence."