Checkstyle: Custom Rules - Eclipse Plugin

前端 未结 2 1260
有刺的猬
有刺的猬 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:49

    You can do it like following :

    1. Create plugin project and add your custom checks there.
    2. Make appropriate changes to plugin.xml, checkstyle_packages.xml.
    3. Export the project as Deployable Plug-ins and fragments (Export > Plug-in Developement)
    4. Copy the jar file to Eclipse Plugin folde, so no need to install your custom check .

    You can refer this tutorial

提交回复
热议问题