Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checker NewlineAtEndOfFile configuration causes build to fail on Windows #4

Open
kjrdn opened this issue Apr 27, 2023 · 0 comments
Open

Comments

@kjrdn
Copy link

kjrdn commented Apr 27, 2023

The current configuration in slamd-checkstyle.xml causes the build to fail in Windows due to Unix style line endings:

checkstyle:
[echo] Checking source code style characteristics....
[checkstyle] Running Checkstyle 8.18 on 384 files
[checkstyle] [ERROR] C:\......\AccessDeniedException.java:1: File does not end with a newline. [NewlineAtEndOfFile]
...
BUILD FAILED
C:\......\build.xml:439: Got 384 errors and 0 warnings.

Changed the configuration to the following and it builds without errors:

<module name="NewlineAtEndOfFile">
        <property name="lineSeparator" value="lf" />
</module>

https://stackoverflow.com/questions/997021/how-to-get-rid-of-checkstyle-message-file-does-not-end-with-a-newline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant