summaryrefslogtreecommitdiffstats
path: root/common/checkstyle/src/main/resources/honeycomb-checkstyle-logging.xml
blob: 79bdbfd7a981c1e3bdba75c443189091edade460 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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>