Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkstyle 2.1.2 number of checks in output is wrong #275

Closed
Tw1ddle opened this issue May 28, 2016 · 0 comments
Closed

Checkstyle 2.1.2 number of checks in output is wrong #275

Tw1ddle opened this issue May 28, 2016 · 0 comments
Assignees

Comments

@Tw1ddle
Copy link

Tw1ddle commented May 28, 2016

Checks of the same type seem to be counted more than once. Noticed this when I used the MemberName check more than once when specifying separate formats for different tokens. So you get this output for the following config:

Running Checkstyle v2.1.2 using 2/62 checks on 1 source file...

{
    "defaultSeverity": "ERROR",
    "checks":
    [
        {
            "type": "MemberName",
            "props":
            {
                "ignoreExtern": true,
                "format": "^[a-z][a-zA-Z0-9]*$",
                "tokens":
                [
                    "CLASS",
                    "PUBLIC",
                    "PRIVATE",
                    "TYPEDEF"
                ],
                "severity": "ERROR"
            }
        },
        {
            "type": "MemberName",
            "props":
            {
                "ignoreExtern": true,
                "format": "^[A-Z0-9_]*$",
                "tokens":
                [
                    "ENUM"
                ],
                "severity": "ERROR"
            }
        }
    ]
}

So when you write a complete config you get output like Running Checkstyle v2.1.2 using 63/62 checks on 1 source file... - which is confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants