두 손끝의 창조자

checkstyle test 파일은 무시하기 본문

프로그래밍

checkstyle test 파일은 무시하기

codinglog 2021. 8. 10. 14:42

checkstyle.xml

추가

    <module name="SuppressionFilter">
        <property name="file" value="${config_loc}/suppressions.xml"/>
    </module>

suppressions.xml

<?xml version="1.0"?>
<!DOCTYPE suppressions PUBLIC "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
        "https://checkstyle.org/dtds/suppressions_1_2.dtd">
<suppressions>
    <suppress files="test[\\/]java[\\/].+\.(?:java)$"
              checks="JavadocPackage|FileLength|MissingJavadocMethod|LineLength"/>
</suppressions>

checks에 무시할 check 를 나열하거나 정규식으로 표현

반응형
Comments