You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by le...@apache.org on 2024/04/06 01:33:17 UTC

(datasketches-java) branch checkstyle_module_for_raw_newlines created (now 20328b4e)

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

leerho pushed a change to branch checkstyle_module_for_raw_newlines
in repository https://gitbox.apache.org/repos/asf/datasketches-java.git


      at 20328b4e Added a Checkstyle module that checks for "\\n" characters in string literals.

This branch includes the following new commits:

     new 20328b4e Added a Checkstyle module that checks for "\\n" characters in string literals.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org


(datasketches-java) 01/01: Added a Checkstyle module that checks for "\\n" characters in string literals.

Posted by le...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

leerho pushed a commit to branch checkstyle_module_for_raw_newlines
in repository https://gitbox.apache.org/repos/asf/datasketches-java.git

commit 20328b4ea9078e9242ed91012ecdc03e441592d7
Author: Lee Rhodes <le...@gmail.com>
AuthorDate: Fri Apr 5 18:32:59 2024 -0700

    Added a Checkstyle module that checks for "\\n" characters in string
    literals.
---
 tools/SketchesCheckstyle.xml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/SketchesCheckstyle.xml b/tools/SketchesCheckstyle.xml
index d5e8a170..8a45ea57 100644
--- a/tools/SketchesCheckstyle.xml
+++ b/tools/SketchesCheckstyle.xml
@@ -172,6 +172,11 @@ under the License.
       <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
     </module>
     
+    <module name="IllegalTokenText">
+      <property name="tokens" value="STRING_LITERAL"/>
+      <property name="format" value="\\n"/>
+    </module>
+    
     <!-- Class Design -->
     <module name="OneTopLevelClass"/>
     


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org