This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git


The following commit(s) were added to refs/heads/master by this push:
     new 935964f  Add Checkstyle check for trailing whitespace
935964f is described below

commit 935964f28645b960ef83e3f3a9822fc75003a642
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Mon Jan 29 08:52:46 2024 -0500

    Add Checkstyle check for trailing whitespace
---
 src/conf/checkstyle.xml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/conf/checkstyle.xml b/src/conf/checkstyle.xml
index 41cd921..8ef1cfd 100644
--- a/src/conf/checkstyle.xml
+++ b/src/conf/checkstyle.xml
@@ -148,4 +148,11 @@
     <property name="severity" value="warning" />
   </module>
 
+  <module name="RegexpSingleline">
+    <property name="format" value="\s+$" />
+    <property name="minimum" value="0" />
+    <property name="maximum" value="0" />
+    <property name="message" value="Line has trailing spaces." />
+  </module>
+
 </module>

Reply via email to