Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Group: release 5.0
Submitted By: Spuerhund (spuerhund)
Assigned to: Nobody/Anonymous (nobody)
Summary: NewlineAtEndOfFile does not work for resource files
My project uses the default maven directory layout with all resource files being located in "src/main/resources" folder. Now i would like checkstyle to detect missing newlines at the end of such resource files (txt, xml, xsd, ...) as well. Therefore my rules file looks like this:
Unfortunately when i execute checkstyle via the Eclipse plugin (right click on the project > Checkstyle > Check Code with Checkstyle) i only get warnings for *.java files without a newline at the end. For text and XML files no warning is triggered, although they don't have newlines at the end as well. Am i doing something wrong or doesn't checkstyle support this feature by design?