summaryrefslogtreecommitdiffstats
path: root/common/checkstyle/src/main/resources/honeycomb-checkstyle-logging.xml
diff options
context:
space:
mode:
Diffstat (limited to 'common/checkstyle/src/main/resources/honeycomb-checkstyle-logging.xml')
-rw-r--r--common/checkstyle/src/main/resources/honeycomb-checkstyle-logging.xml67
1 files changed, 67 insertions, 0 deletions
diff --git a/common/checkstyle/src/main/resources/honeycomb-checkstyle-logging.xml b/common/checkstyle/src/main/resources/honeycomb-checkstyle-logging.xml
new file mode 100644
index 000000000..79bdbfd7a
--- /dev/null
+++ b/common/checkstyle/src/main/resources/honeycomb-checkstyle-logging.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<!--
+ ~ Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
+ ~
+ -->
+
+<!DOCTYPE module PUBLIC
+ "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
+ "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
+
+<module name="Checker">
+
+ <property name="severity" value="error"/>
+
+ <module name="RegexpMultiline">
+ <property name="format" value="System\.(out)|(err)\.print(ln)?\("/>
+ <property name="message" value="Line contains console output."/>
+ </module>
+
+ <module name="RegexpMultiline">
+ <property name="format" value="\.printStackTrace?\("/>
+ <property name="message" value="Line contains printStacktrace()."/>
+ </module>
+
+ <module name="TreeWalker">
+ <module name="org.opendaylight.yangtools.checkstyle.LoggerVariableNameCheck" />
+ </module>
+
+ <module name="TreeWalker">
+ <module name="org.opendaylight.yangtools.checkstyle.LoggerVariableModifiersCheck" />
+ </module>
+
+ <module name="TreeWalker">
+ <module name="org.opendaylight.yangtools.checkstyle.LoggerMustBeSlf4jCheck" />
+ </module>
+
+ <module name="TreeWalker">
+ <module name="org.opendaylight.yangtools.checkstyle.LoggerFactoryClassParameterCheck" />
+ </module>
+
+ <module name="TreeWalker">
+ <module name="org.opendaylight.yangtools.checkstyle.LogMessageConcatenationCheck" />
+ </module>
+
+ <module name="TreeWalker">
+ <module name="org.opendaylight.yangtools.checkstyle.LogMessagePlaceholderCountCheck" />
+ </module>
+
+ <module name="TreeWalker">
+ <module name="org.opendaylight.yangtools.checkstyle.LoggerDeclarationsCountCheck"/>
+ </module>
+
+ <module name="FileTabCharacter">
+ <property name="eachLine" value="true"/>
+ </module>
+
+ <module name="RegexpSingleline">
+ <property name="format" value="\s+$"/>
+ <property name="message" value="Line has trailing spaces."/>
+ </module>
+
+ <module name="RegexpMultiline">
+ <property name="format" value="(\r\n|\r)"/>
+ <property name="message" value="Line has Windows line delimiter."/>
+ </module>
+
+</module> \ No newline at end of file