File tree 2 files changed +9
-21
lines changed
buildSrc/src/main/resources
2 files changed +9
-21
lines changed Original file line number Diff line number Diff line change 124
124
</module >
125
125
126
126
<!-- Forbid using '!' for logical negations in favour of checking against 'false' explicitly. -->
127
- <!-- This is disabled for now because there are many violations, hence the rule is reporting at the "warning" severity. -->
128
- <!--
127
+ <!-- This is only reported in the IDE for now because there are many violations -->
129
128
<module name =" DescendantToken" >
130
- <property name="id" value="BooleanNegation" />
131
- <property name="tokens" value="EXPR"/>
132
- <property name="limitedTokens" value="LNOT"/>
133
- <property name="maximumNumber" value="0"/>
134
- <property name="maximumDepth" value="1"/>
135
- <message key="descendant.token.max" value="Do not negate boolean expressions with '!', but check explicitly with '== false' as it is more explicit"/>
129
+ <property name =" id" value =" BooleanNegation" />
130
+ <property name =" tokens" value =" EXPR" />
131
+ <property name =" limitedTokens" value =" LNOT" />
132
+ <property name =" maximumNumber" value =" 0" />
133
+ <property name =" maximumDepth" value =" 2" />
134
+ <message
135
+ key =" descendant.token.max"
136
+ value =" Do not negate boolean expressions with '!', but check explicitly with '== false' as it is more explicit" />
136
137
</module >
137
- -->
138
138
139
139
</module >
140
140
</module >
Original file line number Diff line number Diff line change 8
8
<!-- Checkstyle config by the `:configureIdeCheckstyle` task. -->
9
9
10
10
<module name =" IdeFragment" >
11
- <!-- Forbid using '!' for logical negations in favour of checking against 'false' explicitly. -->
12
- <!-- This is only reported in the IDE for now because there are many violations -->
13
- <module name =" DescendantToken" >
14
- <property name =" id" value =" BooleanNegation" />
15
- <property name =" tokens" value =" EXPR" />
16
- <property name =" limitedTokens" value =" LNOT" />
17
- <property name =" maximumNumber" value =" 0" />
18
- <property name =" maximumDepth" value =" 2" />
19
- <message
20
- key =" descendant.token.max"
21
- value =" Do not negate boolean expressions with '!', but check explicitly with '== false' as it is more explicit" />
22
- </module >
23
11
24
12
<!-- See CONTRIBUTING.md for our guidelines on Javadoc -->
25
13
You can’t perform that action at this time.
0 commit comments