title: How to import Checkstyle rules from XML file in IntelliJ IDEA?
body: <p>I know there is QAPlug - Checkstyle and I'm trying to use it.</p>
  
  <p>In menu Project <em>Settings</em> -> <em>QAPlug</em> -> <em>Checkstyle</em> I set <em>Xml configuration file</em> and <em>Jar file</em> as well. Then when <em>Check loaded rules</em> button is pressed such a message pops up:</p>
  
  <p><img src="https://i.stack.imgur.com/xCfR4.png" alt="enter image description here"></p>
  
  <p>That's very kind of this plugin it has found rules in XML file. Why isn't it loading them though?</p>
  
  <p>Checkstyle configuration file I'm using:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"&gt;
  
  &lt;module name="Checker"&gt;
      &lt;property name="severity" value="error"/&gt;
      &lt;module name="TreeWalker"&gt;
          &lt;property name="cacheFile" value="build/checkstyle.cache"/&gt;
          &lt;module name="FileContentsHolder"/&gt;
          &lt;module name="RegexpSinglelineJava"&gt;
              &lt;property name="format" value="\s+$"/&gt;
              &lt;property name="message" value="Line has trailing spaces."/&gt;
              &lt;property name="ignoreComments" value="true"/&gt;
          &lt;/module&gt;
          &lt;module name="RegexpSinglelineJava"&gt;
              &lt;property name="format" value="^\t* +\t*\S"/&gt;
              &lt;property name="message"
                  value="Line has leading space characters; indentation should be performed with tabs only."/&gt;
              &lt;property name="ignoreComments" value="true"/&gt;
          &lt;/module&gt;
          &lt;module name="ConstantName"/&gt;
          &lt;module name="LocalFinalVariableName"/&gt;
          &lt;module name="LocalVariableName"/&gt;
          &lt;module name="MemberName"/&gt;
          &lt;module name="MethodName"/&gt;
          &lt;module name="PackageName"/&gt;
          &lt;module name="ParameterName"/&gt;
          &lt;module name="StaticVariableName"/&gt;
          &lt;module name="TypeName"/&gt;
          &lt;module name="AvoidStarImport"/&gt;
          &lt;module name="IllegalImport"&gt;
              &lt;property name="illegalPkgs" value="sun, junit.framework, org.hamcrest.CoreMatchers"/&gt;
          &lt;/module&gt;
          &lt;module name="RedundantImport"/&gt;
          &lt;module name="UnusedImports"/&gt;
          &lt;module name="ImportOrder"&gt;
              &lt;property name="groups" value="/^((?!java).)*$/,/javax\./,/java\./"/&gt;
              &lt;property name="ordered" value="true"/&gt;
              &lt;property name="separated" value="false"/&gt;
              &lt;property name="option" value="bottom"/&gt;
          &lt;/module&gt;
          &lt;module name="ParameterAssignment"/&gt;
          &lt;module name="LineLength"&gt;
              &lt;property name="max" value="180"/&gt;
              &lt;property name="tabWidth" value="1"/&gt;
              &lt;property name="ignorePattern" value="(^import)|(\s*@ScenarioReference)|(\s*@ScenarioDescription)|(\s*title)|(\s*story)|(\s*@Given)|(\s*@When)|(\s*@Then)|(\s*@Alias)"/&gt;
          &lt;/module&gt;
          &lt;module name="MethodLength"/&gt;
          &lt;module name="ParameterNumber"&gt;
              &lt;property name="max" value="8"/&gt;
          &lt;/module&gt;
          &lt;module name="EmptyForIteratorPad"/&gt;
          &lt;module name="MethodParamPad"/&gt;
          &lt;module name="NoWhitespaceAfter"&gt;
              &lt;property name="tokens"
                  value="BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/&gt;
          &lt;/module&gt;
          &lt;module name="NoWhitespaceBefore"/&gt;
          &lt;module name="OperatorWrap"/&gt;
          &lt;module name="ParenPad"/&gt;
          &lt;module name="TypecastParenPad"/&gt;
          &lt;module name="WhitespaceAfter"/&gt;
  
          &lt;!--Please be aware of this bug: http://sourceforge.net/p/checkstyle/bugs/593/--&gt;
          &lt;!--[checkstyle-bugs-593] WhitespaceAround wrongly targets annotation element arrays--&gt;
          &lt;module name="WhitespaceAround"&gt;
              &lt;property name="allowEmptyConstructors" value="true" /&gt;
          &lt;/module&gt;
  
          &lt;module name="ModifierOrder"/&gt;
          &lt;module name="RedundantModifier"/&gt;
          &lt;module name="AvoidNestedBlocks"/&gt;
          &lt;module name="EmptyBlock"/&gt;
          &lt;module name="LeftCurly"/&gt;
          &lt;module name="NeedBraces"/&gt;
          &lt;module name="RightCurly"/&gt;
          &lt;module name="EmptyStatement"/&gt;
          &lt;module name="EqualsHashCode"/&gt;
          &lt;module name="IllegalInstantiation"/&gt;
          &lt;module name="InnerAssignment"/&gt;
          &lt;module name="MagicNumber"&gt;
              &lt;property name="severity" value="warning"/&gt;
              &lt;property name="ignoreNumbers" value="-1, 0, 1, 2, 3, 4, -4"/&gt;
          &lt;/module&gt;
          &lt;module name="MissingSwitchDefault"/&gt;
          &lt;module name="RedundantThrows"/&gt;
          &lt;module name="SimplifyBooleanExpression"/&gt;
          &lt;module name="SimplifyBooleanReturn"/&gt;
          &lt;module name="FinalClass"/&gt;
          &lt;module name="InterfaceIsType"/&gt;
          &lt;module name="VisibilityModifier"&gt;
              &lt;property name="packageAllowed" value="true"/&gt;
              &lt;property name="protectedAllowed" value="true"/&gt;
              &lt;property name="publicMemberPattern" value="^expectedException$|^temporaryFolder$|^exitRule$|^synchronizedTestRule$|^clearDatabaseRule.*$|^configurationRule$"/&gt;
          &lt;/module&gt;
          &lt;module name="ArrayTypeStyle"/&gt;
          &lt;module name="UpperEll"/&gt;
      &lt;/module&gt;
      &lt;module name="Translation"/&gt;
      &lt;module name="FileLength"/&gt;
      &lt;module name="SuppressionCommentFilter"/&gt;
      &lt;module name="SuppressionCommentFilter"&gt;
          &lt;property name="offCommentFormat" value="CHECKSTYLE\:(\w+)\:OFF"/&gt;
          &lt;property name="onCommentFormat" value="CHECKSTYLE\:(\w+)\:ON"/&gt;
          &lt;property name="checkFormat" value="$1"/&gt;
      &lt;/module&gt;
  &lt;/module&gt;
  </code></pre>