Search This Blog

Sunday, February 2, 2020

Java Beanshell - Checkstyle NewlineAtEndOfFile File does not end with a newline. - checkstyle-suppressions.xml ignore lineseparator



Solution 1:

1. Add this line inside tag

      


Ex:

    "-//Puppy Crawl//DTD Suppressions 1.1//EN"
    "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">


     
......
      





Solution 2:

Eclipse ..Window >> Preferences >> Checkstyle >> Select the configuration file >>

Click on "Properties" button >> Uncheck the Protect Checkstyle Configuration file.

Click on "Configure" button >> search for "New Line At End Of File" >> Uncheck the checkbox which you see next to New Line At End Of File.



No comments:

Hit Counter


View My Stats