I would like to end the end of the Unix line (\ n) in the Java sources of our projects for sequence reasons. Since many of us work under Windows, most IDEs are configured by default to use the Windows-style end of line (\ r \ n). We try to change these settings every time we set up a new workspace, but for some reason some files are executed when Windows shuts down.
Is there any Maven configuration or plugin that could help us embed the end of the line in Unix style, or at least warn us about files that are in Windows style?
Iโm talking about PMD or Checkstyle, but it doesnโt seem so easy. I also tested the Maven Enforcer Plugin, but I do not think it does this out of the box. I would have to create my own rule, but I would like to make sure that I do not reinvent the wheel :)
source share