maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Maréchal (JIRA) <j...@apache.org>
Subject [jira] [Commented] (MCHECKSTYLE-304) Using inline configuration, checkstyle-checker.xml is generated using DTD v1.2
Date Tue, 01 Sep 2015 19:15:46 GMT

    [ https://issues.apache.org/jira/browse/MCHECKSTYLE-304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14725907#comment-14725907
] 

Pierre Maréchal commented on MCHECKSTYLE-304:
---------------------------------------------

What do you mean?
I can't find the complete history in the source repository.
But it looks like the v1.3 DTD is present since at least version 5.2 as can be seen here :
http://grepcode.com/file/repo1.maven.org/maven2/com.puppycrawl.tools/checkstyle/5.2/com/puppycrawl/tools/checkstyle/configuration_1_3.dtd/

Exemple configuration files (sun_checks and google_checks.xml) use it as well.



> Using inline configuration, checkstyle-checker.xml is generated using DTD v1.2
> ------------------------------------------------------------------------------
>
>                 Key: MCHECKSTYLE-304
>                 URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-304
>             Project: Maven Checkstyle Plugin
>          Issue Type: Bug
>          Components: checkstyle:check, checkstyle:checkstyle
>    Affects Versions: 2.16
>         Environment: Windows, Maven 3.3.3
>            Reporter: Pierre Maréchal
>
> Using a slightly modified version of google_checks.xml as inline configuration, checkstyle:check
fails with the following XML validation error :
> unable to parse configuration stream - Element type "message" must be declared.
> Looking at the generated checkstyle-checker.xml, it still uses
> {code:xml}
> <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
>         "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
> {code}
> where it should be
> {code:xml}
> <!DOCTYPE module PUBLIC
>           "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
>           "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message