I have a user defined checkstyle xml file and jar file. How can I import the xml and jar file in eclipse.
Should I install eclipse checkstyle plugin and then import my user defined check style in it or is there any alternate way
In Eclipse, right-click on the project, and pull down to Properties . Select “Checkstyle” and click on the “Local Check Configurations” tab. Click on New . Select “External Configuration File”, enter a “Name:” and the “Location:” of the file, and click OK .
Go to Preferences -> Checkstyle. In the Global Check Configurations box you can specify your own files.
If by user defined checkstyle, you mean you created some new rules and want them to be a part of your checkstyle, then you can do it like following :
You can refer this tutorial
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With