From 27912b1ed13c9e453149d9c14aea06ac432559bb Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Fri, 1 Nov 2024 10:42:31 +0100 Subject: [PATCH] Prevent accidental printing to System.err in the codebase This also revises the Checkstyle rule so that invocations such as System.out.printf() are also forbidden. --- src/checkstyle/checkstyle-suppressions.xml | 8 +++++--- src/checkstyle/checkstyle.xml | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/checkstyle/checkstyle-suppressions.xml b/src/checkstyle/checkstyle-suppressions.xml index 33ca74b2c80..e112032fe6b 100644 --- a/src/checkstyle/checkstyle-suppressions.xml +++ b/src/checkstyle/checkstyle-suppressions.xml @@ -14,7 +14,7 @@ - + @@ -43,7 +43,8 @@ - + + @@ -66,7 +67,7 @@ - + @@ -123,6 +124,7 @@ + diff --git a/src/checkstyle/checkstyle.xml b/src/checkstyle/checkstyle.xml index 5a24fdbd446..aac5c3fa4b8 100644 --- a/src/checkstyle/checkstyle.xml +++ b/src/checkstyle/checkstyle.xml @@ -238,11 +238,11 @@ - - + + + value="Printing to System.out and System.err is forbidden in the main codebase"/>