Checkstyle: Custom Rules - Eclipse Plugin

前端 未结 2 1262
有刺的猬
有刺的猬 2021-01-14 18:13

I have written few custom checkstyle rules using checkstyle API. They run fine using Maven (after I add the new project as a dependency to the checkstyle plugin).

No

2条回答
  •  无人及你
    2021-01-14 18:25

    You already have the correct links that will eventually get you there. As for your questions:

    1. All your custom checks can go into one JAR file. That JAR file must be an Eclipse plugin JAR. I simply install it by copying it to the Eclipse dropins folder, but there may be more elegant ways to do that.

    2. So you end up with two plugins: The original, unmodified Eclipse-CS, and your own plugin which contains the custom checks. When both are independently installed in Eclipse, the Eclipse-CS configuration dialog will offer your custom checks for use in Checkstyle configurations.

提交回复
热议问题