Disable a particular Checkstyle rule for a particular line of code?

I have a Checkstyle validation rule configured in my project, that prohibits to define class methods with more than 3 input parameters. The rule works fine for my classes, but sometimes I have to extend third-party classes, which do not obey this particular rule. Is there a possibility to instruct Checkstyle that a certain method … Read more

How to get rid of Checkstyle message ‘File does not end with a newline.’

Put a newline at the end of the fileorconfigure CheckStyle not to care. <module name=”Checker”> <!– stuff deleted –> <module name=”NewlineAtEndOfFile”> <property name=”severity” value=”ignore” /> </module> You also have to tell the Maven Checkstyle plugin to use your checkstyle config file. <plugin> <artifactId>maven-checkstyle-plugin</artifactId> <configuration> <configLocation>${basedir}/yourCheckstyle.xml</configLocation> </configuration> </plugin>