Import custom eclipse checkstyle

I have a custom xst file checkstyle file and a jar file. How to import xml and jar file in eclipse.

Should I install the eclipse checkstyle plugin and then import my custom validation style in it or is there an alternative way

+4
source share
3 answers

If by user-defined checkstyle you mean that you have created several new rules and want them to be part of your style, you can do this as follows:

  • Create a plugin project and add custom checks .
  • Make the appropriate changes to plugin.xml , checkstyle_packages.xml.
  • Export the project as Deployable plugins and fragments (export> Plugin development)
  • Copy the flag file into the Eclipse Plugin folde, so you do not need to set your own validation.

You can reference this tutorial

+2
source

Go to "Settings" → "Verification Style". In the Global Check Configurations window, you can specify your own files.

+3
source

In eclipse, the built-in checkstyle will not be available, so you need to install the plugin first.

I found this helpful.

https://code.google.com/p/instinct/wiki/ConfiguringCheckstyleForEclipse

0
source

Source: https://habr.com/ru/post/1488449/


All Articles