SonarQube使用checkstyle规则进行CRLF检测



maven-checkstyle-plugin迁移到SonarQube后,我面临一些奇怪的换行和制表符如何传输。

在我的Maven构建中,我有以下基本规则:

<module name="Checker">
  <property name="fileExtensions" value="java, xml"/>
  <!-- forbid dos/windows lf -->
  <module name="RegexpMultiline">
    <property name="format" value="rn" />
    <property name="message" value="Do not use Windows line endings."/>
  </module>
  <!-- forbid tab character -->
  <module name="FileTabCharacter">
    <property name="eachLine" value="true" />
  </module>
</module>

在检查SonarQube报告时,我没有看到这些违规行为,它们应该在哪里。我哪里做错了?

PS: SonarQube得到了配置好的QG/QP.

您的分析现在基于SonarQube质量概要文件中活动的规则。您应该在SonarQube中重新创建规则。

最新更新