[ checkstyle-Bugs-3511051 ] NewlineAtEndOfFile does not work for resource files

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ checkstyle-Bugs-3511051 ] NewlineAtEndOfFile does not work for resource files

SourceForge.net
Bugs item #3511051, was opened at 2012-03-25 07:48
Message generated for change (Comment added) made by oburn
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397078&aid=3511051&group_id=29721

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.
Category: None
Group: release 5.0
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Spuerhund (spuerhund)
Assigned to: Nobody/Anonymous (nobody)
Summary: NewlineAtEndOfFile does not work for resource files

Initial Comment:
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:

...
<module name="NewlineAtEndOfFile">
        <property name="fileExtensions" value="txt,java,xml,xsd" />
        <property name="lineSeparator" value="lf" />
</module>
...

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?

----------------------------------------------------------------------

>Comment By: Oliver Burn (oburn)
Date: 2012-04-21 18:27

Message:
This is not a bug with the core Checkstyle engine. This project is not
related to the Eclipse project (which wraps the core engine).

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397078&aid=3511051&group_id=29721

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Checkstyle-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/checkstyle-devel
Loading...