<?xml version="1.0"?>

<!DOCTYPE suppressions PUBLIC
    "-//Checkstyle//DTD SuppressionFilter Configuration 1.1//EN"
    "https://checkstyle.org/dtds/suppressions_1_1.dtd">

<suppressions>

    <!-- Input files for NewlineAtEndOfFileCheckTest, intentional no new line at the end. -->
    <suppress checks="NewlineAtEndOfFile"
              files="[\\/]test[\\/].*[\\/]InputNewlineAtEndOfFile.*\.(java|txt)"/>

    <!-- Intentional no new line at the end. -->
     <suppress checks="NewlineAtEndOfFile"
               files="[\\/]test[\\/].*[\\/]grammar[\\/]comments[\\/]InputFullOfSinglelineComments\.java"/>
     <suppress checks="NewlineAtEndOfFile"
               files="[\\/]test[\\/].*[\\/]asttreestringprinter[\\/]InputAstTreeStringPrinterFullOfSinglelineComments\.java"/>

    <!-- Grammar specific input file, should have exact structure to reproduce the case. -->
     <suppress checks="NewlineAtEndOfFile"
               files="[\\/]test[\\/].*[\\/]grammar[\\/]InputEmbeddedNullChar\.java"/>

    <!-- Javadoc files should not have new line by design (on purpose). -->
     <suppress checks="NewlineAtEndOfFile" files="[\\/]test[\\/].*\.javadoc"/>

    <!--Empty file cannot have any new line at the end. -->
    <suppress checks="NewlineAtEndOfFile"
              files="[\\/]test[\\/].*[\\/]checks[\\/]newlineatendoffile[\\/]InputNewlineAtEndOfFileEmptyFile\.txt"/>
    <suppress checks="NewlineAtEndOfFile"
              files="[\\/]test[\\/].*[\\/]grammar[\\/]InputRegressionEmptyAst\.txt"/>

    <!-- File with CR line separators used for testing -->
    <suppress checks="NewlineAtEndOfFile"
              files="[\\/]test[\\/].*[\\/]asttreestringprinter[\\/]InputAstTreeStringPrinterFullOfBlockCommentsCR\.java"/>
    <suppress checks="NewlineAtEndOfFile"
              files="[\\/]test[\\/].*[\\/]grammar[\\/]InputAstRegressionNewlineCrAtEndOfFile\.java"/>

    <!-- File with LF line separators used for testing -->
    <suppress checks="NewlineAtEndOfFile"
              files="[\\/]test[\\/].*[\\/]checks[\\/]blocks[\\/]emptycatchblock[\\/]InputEmptyCatchBlockDefaultLF\.java"/>

    <!-- For the testing purposes -->
    <suppress checks="NewlineAtEndOfFile"
              files="[\\/]test[\\/].*[\\/]checks[\\/]uniqueproperties[\\/]InputUniquePropertiesWithDuplicates\.properties"/>

    <!-- till https://issues.apache.org/jira/browse/MRELEASE-1008 -->
    <suppress checks="RegexpSingleline" files="pom.xml"/>
    <!-- this file is created by Appveyor CI after checkout -->
    <suppress checks="RegexpSingleline" files="appveyor.cmd"/>
    <!-- test resources are weird by design, no validations in them -->
    <suppress checks="RegexpSingleline"
              files="src[\\/]it[\\/]resources[\\/].*[\\/]InputLineLength.*\.java"/>
    <suppress checks="RegexpSingleline"
              files="src[\\/]test[\\/]resources[\\/].*[\\/]InputLineLength.*\.java"/>
    <suppress checks="RegexpSingleline"
              files="src[\\/]test[\\/]resources[\\/].*[\\/]grammar[\\/]comments[\\/].*"/>
    <suppress checks="RegexpSingleline"
              files="src[\\/]test[\\/]resources[\\/].*[\\/]asttreestringprinter[\\/]InputAstTreeStringPrinterFullOfBlockComments\.java"/>
    <suppress checks="RegexpSingleline"
              files="src[\\/]test[\\/]resources[\\/].*[\\/]abstractjavadoc[\\/]InputAbstractJavadocPosition.*\.java"/>

    <!-- we can not change expected as it will require change of main class logic -->
    <suppress checks="RegexpSingleline"
              files="src[\\/]test[\\/]resources[\\/].*[\\/].*ExpectedXMLLogger.*\.xml"/>
    <suppress checks="RegexpSingleline"
              files="src[\\/]test[\\/]resources[\\/].*[\\/]ant[\\/]checkstyleanttask[\\/]ExpectedCheckstyleAntTaskXmlOutput\.xml"/>
    <suppress checks="RegexpSingleline"
              files="src[\\/]test[\\/]resources[\\/].*[\\/]checks[\\/]translation[\\/]Expected.*\.xml"/>

    <!-- content is generated -->
    <suppress checks="RegexpSingleline"
              files="src[\\/]xdocs[\\/]releasenotes_old.xml"/>
    <suppress checks="RegexpSingleline"
              files="src[\\/]xdocs[\\/]releasenotes.xml"/>
    <!-- it contains list of html text, no way to wrap -->
    <suppress checks="RegexpSingleline"
              files=".ci[\\/]pitest.sh"/>
    <!-- property names a too long, nothing we can do -->
    <suppress checks="RegexpSingleline"
              files="config[\\/]org.eclipse.jdt.core.prefs"/>
    <!-- there is no way to make line wrap in property value -->
    <suppress checks="RegexpSingleline"
              files="config[\\/]intellij-idea-inspection-scope.xml"/>

    <!-- there is no way to make line wrap in property value -->
    <suppress checks="RegexpSingleline"
              files="src[\\/]test[\\/]resources[\\/].*[\\/]customimportorder"/>

    <!-- there is no way to make line wrap in property value -->
    <suppress checks="RegexpSingleline"
              files="src[\\/]test[\\/]resources-noncompilable[\\/].*[\\/]customimportorder"/>

</suppressions>
