0

checkstyle.xml標準ではなくカスタム構成sun_checks.xmlこのプロジェクトに接続しようとしています。

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-checkstyle-plugin</artifactId>
    <version>${checkstyle.version}</version>
    <configuration>
        <configLocation>src/main/resources/checkstyle.xml</configLocation>
    </configuration>
    <reportSets>
        <reportSet>
            <reports>
                <report>checkstyle</report>
            </reports>
        </reportSet>
    </reportSets>
</plugin>

しかしmvn -B clean verify checkstyle:checkstyle、出力を得るsun_checks.xml

[INFO] There are 206 errors reported by Checkstyle 8.29 with sun_checks.xml ruleset.

なぜ<configLocation>無視され、それを修正するには?

4

2 に答える 2