From 02c49ba6456686d13f0a88d0e35d747d4f61f41a Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Mon, 2 Mar 2026 00:51:58 -0500 Subject: [PATCH] Disable the use of nested ternary operators. --- checkstyle.json | 8 ++++++++ 1 file changed, 8 insertions(+) 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" },