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-bcel.git


The following commit(s) were added to refs/heads/master by this push:
     new c152e932 Checkstyle: Don't allow trailing whitespace
c152e932 is described below

commit c152e93264bcb5682a787539dcda30ee74f70cf7
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Mar 19 17:21:29 2024 -0400

    Checkstyle: Don't allow trailing whitespace
---
 src/conf/checkstyle.xml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/conf/checkstyle.xml b/src/conf/checkstyle.xml
index 392e941b..cd9593bc 100644
--- a/src/conf/checkstyle.xml
+++ b/src/conf/checkstyle.xml
@@ -197,6 +197,10 @@ limitations under the License.
     <!-- config_loc is used by Eclipse plugin -->
     <property name="file" 
value="${config_loc}/src/conf/checkstyle-suppressions.xml"/>
   </module>
-
+  <module name="RegexpSingleline">
+    <!-- \s matches whitespace character, $ matches end of line. -->
+    <property name="format" value="\s+$" />
+    <property name="message" value="Line has trailing spaces." />
+  </module>
 </module>
 

Reply via email to