add checkstyle regex to ignore long lines if they are strings (w/ whitespace)

This commit is contained in:
Cameron Taylor
2025-09-03 17:35:24 +07:00
committed by MoonDroid
parent a5842fbe3f
commit f09074b79d
+2 -2
View File
@@ -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"
},