java - How to make Maven checking the source end-of-line? -
i enforce unix style end-of-line (\n) in java sources of our projects consistency reasons. many of work under windows, ides configured default utilize windows style end-of-line (\r\n). seek alter settings each time configure new workspace reasons, files commited windows end-of-line.
is there maven configuration or plugin help enforcing unix style end-of-line or, @ least, warning of files in windows style?
i though pmd or checkstyle first doesn't appear simple. i've checked maven enforcer plugin don't think out-of-the box. should able create own rule i'd create sure don't reinvent wheel :)
use checkstyle, used in our project enforce unix line endings.
you can utilize regular look ( windows line ending \r\n, know that).
java maven coding-style end-of-line dos2unix
No comments:
Post a Comment