0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

EclipseのCheckStyleで【cannot initialize module JavadocMethod - Property 'scope' does not exist】

Last updated at Posted at 2023-10-02

環境

名称 バージョン
Eclipse 4.28.0
Checkstyleプラグイン 10.7.0
Spring Boot 3.1.4

問題

Eclipseで、数年前に作成されたCheckstyleを適用したら、エラーになった。

Checkstyle execution failed due to an internal error.

Eclipseのログ※には以下が出力されていた。
※{ワークスペースのディレクトリ}/.metadata/.log

.log
cannot initialize module TreeWalker - cannot initialize module JavadocMethod - Property 'scope' does not exist, please check the documentation

解決方法

cannot initialize module JavadocMethod - Property 'scope' does not existと言われているのだから、scopeを定義している箇所を削除。

sampleCheckstyle.xml
<module name="JavadocMethod">
  <!-- <property name="scope" value="public"/> -->
  <property name="allowMissingParamTags" value="true"/>
  <property name="allowMissingReturnTag" value="true"/>
  <property name="allowedAnnotations" value="Override, Test"/>
  <property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF"/></module>

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?