我正在尝试在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
的内容。我缺少某些设置吗?