小编Ani*_*Pal的帖子

IntelliJ Idea中的checkstyle配置问题

我的目标是实现Google的Java Style Checkstyle,如https://google-styleguide.googlecode.com/svn-history/r130/trunk/javaguide.html中所述.

在IntelliJ中,我启用了Checkstyle插件并尝试指向checkstyle xml(从https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml下载).

我有以下异常:

Property 'fileExtensions' in module Checker does not exist
Run Code Online (Sandbox Code Playgroud)

虽然此属性在xml中定义为

<property name="fileExtensions" value="java, properties, xml"/>
Run Code Online (Sandbox Code Playgroud)

例外细节:

org.infernus.idea.checkstyle.exception.CheckStylePluginException:
The CheckStyle rules file could not be loaded.
Property 'fileExtensions' in module Checker does not exist, please check the documentation
at org.infernus.idea.checkstyle.checker.CheckerFactory.blacklistAndShowMessage(CheckerFactory.java:248)
at org.infernus.idea.checkstyle.checker.CheckerFactory.createChecker(CheckerFactory.java:202)
Run Code Online (Sandbox Code Playgroud)

java intellij-idea checkstyle

8
推荐指数
1
解决办法
5706
查看次数

标签 统计

checkstyle ×1

intellij-idea ×1

java ×1