IntelliJ中未显示CustomMessage标签内容

时间:2018-09-19 12:08:06

标签: scala intellij-idea scalastyle

我正在尝试在IntelliJ中使用RegexChecker以及自定义错误消息。我在scalastyle_config.xml中定义了与此类似的检查:

 <check level="warning" class="org.scalastyle.file.RegexChecker" enabled="true">
  <parameters>
   <parameter name="regex">hello</parameter>
  </parameters>
  <customMessage>Code should not contain "hello"</customMessage>
 </check>

将“ hello”添加到文件时,我在IntelliJ中收到以下消息:

Regular expression matched "hello"

但是我真正想要的是显示customMessage的内容。我缺少某些设置吗?

0 个答案:

没有答案