diff --git a/checkstyle.json b/checkstyle.json index b262088d6..104b969ab 100644 --- a/checkstyle.json +++ b/checkstyle.json @@ -50,6 +50,14 @@ "props": { "severity": "INFO" }, "type": "AvoidStarImport" }, + { + "comment": "If enabled, prevents ternary operators from being nested.", + "props": { + "severity": "INFO", + "maxDepth": 1 + }, + "type": "AvoidTernaryOperator" + }, { "comment": "If enabled, prevents conditional compilation from crossing blocks. This prevents the case where conditional compilation could potentially create invalid syntax.", "props": { "severity": "INFO" },