-- Extending the eclipse-cs plugin --
The Checkstyle core and the eclipse-cs plugin can be extended to add one or more of the following artifacts:
- Custom checkstyle checks
- Built-in Checkstyle configurations, great for deployment of company wide rulesets.
- Custom plugin filters
As a starting point all extensions to eclipse-cs must be provided in the form of an Eclipse plugin. This way
you can make use of the various extension hooks Checkstyle and the eclipse-cs plugin provide.
Luckily
this is not as complicated as it sounds.
The easiest way is to check out the sample eclipse-cs extension plugin from the CVS, this sample plugin provides an example for each documented extension hook.
The repository location is:
:pserver:anonymous@eclipse-cs.cvs.sourceforge.net:/cvsroot/eclipse-cs
The project to
check out is: net.sf.eclipsecs.sample
After you got the project in your workspace you can just disconnect it from the CVS and rename the project
and the plugins symbolic bundle name in META-INF/MANIFEST.MF
to your liking.
After your modifications you can simple export your plugin project as deployable plugin using Eclipse's
Export Wizard.
Install your plugin into your Eclipse installation.