<?xml version="1.0"?>

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

<suppressions>

  <!-- Fixing these cases will decrease code readability -->
  <suppress checks="MultipleStringLiteralsExtended"
             files="JavadocStyleCheck\.java|XMLLogger\.java"/>
  <suppress checks="MultipleStringLiteralsExtended"
             files=".*[\\/]src[\\/](test|it)[\\/]"/>
  <!-- ParseTreeBuilder is generated, to keep ease of generation violations are suppressed -->
  <suppress checks="LineLengthExtended"
             files="ParseTreeBuilder\.java"/>

  <!-- If we change declaration order, Illegal forward reference will appear.
  See https://github.com/sevntu-checkstyle/sevntu.checkstyle/issues/415 -->
  <suppress checks="CustomDeclarationOrder"
             files="JavadocTokenTypes.java"/>

  <!-- JavadocTagInfo.java, JavadocTags.java, InvalidJavadocTag.java, JavadocTag.java will be
  deprecated as we completely switch to ANTLR parser for javadoc. All of the mentioned classes
  are required only for old javadoc parsers and their usage will be excluded from
  JavadocUtil.java and JavadocUtilTest.java. -->
  <suppress checks="ForbidCertainImports"
             files="JavadocUtil\.java|JavadocUtilTest\.java"/>

  <!-- Tone down the checking for test code -->
  <suppress checks="ForbidCertainImports"
             files="DetailAstImplTest\.java"/>
  <suppress checks="SingleBreakOrContinue" files="[\\/]XdocsPagesTest\.java"/>

  <!-- Main and MainTest are technically not part of the checkstyle library,
  so static Loggers are okay there. -->
  <suppress checks="AvoidModifiersForTypesCheck"
             files="Main\.java|MainTest\.java"/>
</suppressions>
