title: Sonar not showing violation using custom rules?
body: <p>I am trying to integrate Sonar for code review and analysis . I am working in typo3, so I  added the following rules in <code>rules.xml</code>   </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
      &lt;rules&gt;
  
      &lt;rule key="TYPO3.Commenting.FunctionDocComment.TagIndenst"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;Tag comment incorrectly indented&lt;/name&gt;
          &lt;configKey&gt;TAG_INDENT&lt;/configKey&gt;
          &lt;description&gt;@category tag comment incorrectly indented&lt;/description&gt;
      &lt;/rule&gt;
  
      &lt;rule
          key="TYPO3.Commenting.NoAuthorAnnotationInFunctionDocComment.AuthorAnnotation"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;NoAuthorAnnotationInFunctionDocComment&lt;/name&gt;
          &lt;configKey&gt;TAG_INDENT&lt;/configKey&gt;
          &lt;description&gt;@category tag comment incorrectly indented&lt;/description&gt;
      &lt;/rule&gt;
  
  
  
      &lt;rule key="TYPO3.Commenting.ValidCommentIndent.ValidCommentIndent"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;ValidCommentIndent&lt;/name&gt;
          &lt;configKey&gt;T_COMMENT&lt;/configKey&gt;
          &lt;description&gt;@category tag comment incorrectly indented&lt;/description&gt;
      &lt;/rule&gt;
  
      &lt;rule key="TYPO3.Commenting.ValidCommentLineLength.ValidCommentLineLength"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;ValidCommentLineLength&lt;/name&gt;
          &lt;configKey&gt;T_COMMENT, T_DOC_COMMENT&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
  
      &lt;rule key="TYPO3.Commenting.ValidCommentLineLength.ValidCommentLineLength"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;ValidCommentLineLength&lt;/name&gt;
          &lt;configKey&gt;T_COMMENT, T_DOC_COMMENT&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
  
      &lt;rule key="TYPO3.ControlStructures.AlignedBreakStatement.AlignedBreakStatement"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;AlignedBreakStatement&lt;/name&gt;
          &lt;configKey&gt;T_BREAK,&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
  
      &lt;rule key="TYPO3.ControlStructures.DisallowEachInLoopCondition.DisallowEachInLoopCondition"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;DisallowEachInLoopCondition&lt;/name&gt;
          &lt;configKey&gt;T_WHILE,&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
  
      &lt;rule key="TYPO3.ControlStructures.DisallowElseIfConstruct.DisallowElseIfConstruct"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;DisallowElseIfConstruct&lt;/name&gt;
          &lt;configKey&gt;T_WHILE,&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
  
      &lt;rule key="TYPO3.ControlStructures.ValidBreakStatementsInSwitches.ValidBreakStatementsInSwitches"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;ValidBreakStatementsInSwitches&lt;/name&gt;
          &lt;configKey&gt;T_BREAK,&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
  
      &lt;rule key="TYPO3.ControlStructures.ValidDefaultStatementsInSwitches.ValidDefaultStatementsInSwitches"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;ValidDefaultStatementsInSwitches&lt;/name&gt;
          &lt;configKey&gt;T_SWITCH,&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
      &lt;rule key="TYPO3.Debug.DebugCode.DebugCode"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;DebugCode&lt;/name&gt;
          &lt;configKey&gt;T_STRING, T_COMMENT,&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
  
      &lt;rule key="TYPO3.Files.EncodingUtf8.EncodingUtf8"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;EncodingUtf8&lt;/name&gt;
          &lt;configKey&gt;T_OPEN_TAG&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
  
      &lt;rule key="TYPO3.Files.IncludingFile.IncludingFile"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;IncludingFile&lt;/name&gt;
          &lt;configKey&gt;T_INCLUDE_ONCE, T_REQUIRE, T_INCLUDE&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
  
      &lt;rule key="TYPO3.Files.LowercasedFilename.LowercasedFilename"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;LowercasedFilename&lt;/name&gt;
          &lt;configKey&gt;T_OPEN_TAG&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
  
      &lt;rule key="TYPO3.Files.OneClassPerFile.OneClassPerFile"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;OneClassPerFile&lt;/name&gt;
          &lt;configKey&gt;T_CLASS&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
  
      &lt;rule key="TYPO3.Files.OneInterfacePerFile.OneInterfacePerFile"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;OneInterfacePerFile&lt;/name&gt;
          &lt;configKey&gt;T_INTERFACE&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
  
      &lt;rule key="TYPO3.NamingConventions.ValidFunctionName.ValidFunctionName"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;ValidFunctionName&lt;/name&gt;
          &lt;configKey&gt;T_FUNCTION&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
      &lt;rule key="TYPO3.NamingConventions.ValidVariableName.ValidVariableName"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;ValidVariableName&lt;/name&gt;
          &lt;configKey&gt;&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
  
      &lt;rule key="TYPO3.PHP.CharacterAfterPHPClosingTag.CharacterAfterPHPClosingTag"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;CharacterAfterPHPClosingTag&lt;/name&gt;
          &lt;configKey&gt;T_CLOSE_TAG&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
  
      &lt;rule key="TYPO3.PHP.CharacterBeforePHPOpeningTag.CharacterBeforePHPOpeningTag"
          priority="MAJOR"&gt;
          &lt;category name="Maintainability" /&gt;
          &lt;name&gt;CharacterBeforePHPOpeningTag&lt;/name&gt;
          &lt;configKey&gt;T_OPEN_TAG&lt;/configKey&gt;
          &lt;description&gt;@category&lt;/description&gt;
      &lt;/rule&gt;
  &lt;/rules&gt;
  </code></pre>
  
  <p>When the code analysis i am not able to get any kind of violations , Please help ???</p>