From f09074b79de094c65db1eeafa779d96fa3e61bc6 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Tue, 26 Aug 2025 22:25:35 -0400 Subject: [PATCH] add checkstyle regex to ignore long lines if they are strings (w/ whitespace) --- checkstyle.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checkstyle.json b/checkstyle.json index 00843881f..1fde0bf6c 100644 --- a/checkstyle.json +++ b/checkstyle.json @@ -252,7 +252,7 @@ { "props": { "max": 160, - "ignorePattern": "^$" + "ignorePattern": "^(\\s*['\"][^'\"]*['\"].*)$" }, "type": "LineLength" }, @@ -355,7 +355,7 @@ { "props": { "allowSingleLineStatement": true, - "tokens": ["FOR", "ELSE_IF", "WHILE", "DO_WHILE"] + "tokens": ["ELSE_IF", "WHILE", "DO_WHILE"] }, "type": "NeedBraces" },