Open yongler opened 2 years ago
Not sure if the closed issue #101 might be helpful! - the replies suggest how to modify the settings in Intellij to help with automatically adding the line break at the EOF.
Though I'm not sure if changes will need to be made to your checkstyle.xml file to account for the discrepancy on checkstyle passing locally - i think the relevant code chunk for the configuration is at <module name="NewlineAtEndOfFile">
Have also linked the screenshot below on the section with options to check/uncheck 'removing trailing spaces' and 'ensuring the saved file ends with a line break'! :)
As above, example would be passing checkstyle in my local repo, but failing in the github CI due to
no new line at the end of the UserGuide.md