Skip to content

Commit

Permalink
Disable AvoidInlineConditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
julianladisch committed May 21, 2019
1 parent 54478ff commit cb2d0cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion codestyles.xml
Expand Up @@ -28,7 +28,9 @@
<module name="AnonInnerLength">
<property name="max" value="30"/> <!-- max lines for inner class / lambda - note java spec = 20 -->
</module>
<module name="AvoidInlineConditionals"/> <!-- Some developers find inline conditionals hard to read -->
<!-- AvoidInlineConditionals is disabled to match the FOLIO sonar rules where ternary operators can be used (but not nested):
https://sonarcloud.io/organizations/folio-org/rules?languages=java&q=ternary
-->
<module name="AvoidStaticImport"> <!-- avoid static imports as they are confusing, allow the list included below -->
<property name="excludes" value="java.lang.System.out,java.lang.Math.*"/>
</module>
Expand Down

0 comments on commit cb2d0cc

Please sign in to comment.