honeycomb-checkstyle-logging.xml revision 2b6c5f5d
1<?xml version="1.0"?>
2<!--
3  ~ Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
4  ~
5  -->
6
7<!DOCTYPE module PUBLIC
8        "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
9        "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
10
11<module name="Checker">
12    <property name="charset" value="UTF-8"/>
13    <property name="severity" value="error"/>
14
15    <module name="RegexpMultiline">
16        <property name="format" value="System\.(out)|(err)\.print(ln)?\("/>
17        <property name="message" value="Line contains console output."/>
18    </module>
19
20    <module name="RegexpMultiline">
21        <property name="format" value="\.printStackTrace?\("/>
22        <property name="message" value="Line contains printStacktrace()."/>
23    </module>
24
25    <module name="TreeWalker">
26        <module name="org.opendaylight.yangtools.checkstyle.LoggerVariableNameCheck" />
27    </module>
28
29    <module name="TreeWalker">
30        <module name="org.opendaylight.yangtools.checkstyle.LoggerVariableModifiersCheck" />
31    </module>
32
33    <module name="TreeWalker">
34        <module name="org.opendaylight.yangtools.checkstyle.LoggerMustBeSlf4jCheck" />
35    </module>
36
37    <module name="TreeWalker">
38        <module name="org.opendaylight.yangtools.checkstyle.LoggerFactoryClassParameterCheck" />
39    </module>
40
41    <module name="TreeWalker">
42        <module name="org.opendaylight.yangtools.checkstyle.LogMessageConcatenationCheck" />
43    </module>
44
45    <module name="TreeWalker">
46        <module name="org.opendaylight.yangtools.checkstyle.LogMessagePlaceholderCountCheck" />
47    </module>
48
49    <module name="TreeWalker">
50        <module name="org.opendaylight.yangtools.checkstyle.LoggerDeclarationsCountCheck"/>
51    </module>
52
53    <module name="FileTabCharacter">
54        <property name="eachLine" value="true"/>
55    </module>
56
57    <module name="RegexpSingleline">
58        <property name="format" value="\s+$"/>
59        <property name="message" value="Line has trailing spaces."/>
60    </module>
61
62    <module name="RegexpMultiline">
63        <property name="format" value="(\r\n|\r)"/>
64        <property name="message" value="Line has Windows line delimiter."/>
65    </module>
66
67</module>