Skip to content

Comments

Add Checkstyle NewlineAtEndOfFile#656

Merged
AustinShalit merged 1 commit intoWPIRoboticsProjects:masterfrom
AustinShalit:fix/NewlineAtEndOfFile
Aug 8, 2016
Merged

Add Checkstyle NewlineAtEndOfFile#656
AustinShalit merged 1 commit intoWPIRoboticsProjects:masterfrom
AustinShalit:fix/NewlineAtEndOfFile

Conversation

@AustinShalit
Copy link
Member

No description provided.

@AustinShalit AustinShalit added this to the v2.0.0 milestone Aug 8, 2016
@SamCarlberg
Copy link
Member

I had planned on getting this in the original checkstyle PR but it didn't work well with cross-platform stuff (code written on OS X would fail checkstyle on Windows because newlines on Unix and carriage returns on Windows)

@JLLeitschuh
Copy link
Member

Appveyor is failing.

@AustinShalit
Copy link
Member Author

Yea... I am just testing to see if I can get this to work.

@codecov-io
Copy link

codecov-io commented Aug 8, 2016

Current coverage is 57.67% (diff: 100%)

Merging #656 into master will not change coverage

@@             master       #656   diff @@
==========================================
  Files           195        195          
  Lines          6091       6091          
  Methods           0          0          
  Messages          0          0          
  Branches        554        554          
==========================================
  Hits           3513       3513          
+ Misses         2415       2414     -1   
- Partials        163        164     +1   

Sunburst

Powered by Codecov. Last update a2499ab...ab2a8f8

@AustinShalit
Copy link
Member Author

Fixed. Now it checks for the unix line separator at the end of files.


<!--<module name="NewlineAtEndOfFile" />--> <!-- Screwed up on Appveyor for some reason -->
<module name="NewlineAtEndOfFile">
<property name="lineSeparator" value="lf"/>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be changed to allow windows line separators also. Thoughts?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know. I don't understand the whole Windows line ending thing vs linux. Someone else is going to have to explain/approve this change.
@bradamiller You understand this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think only supporting the linux line feed makes sense.

@JLLeitschuh
Copy link
Member

JLLeitschuh commented Aug 8, 2016

@AustinShalit AustinShalit merged commit 64de5d9 into WPIRoboticsProjects:master Aug 8, 2016
@AustinShalit AustinShalit deleted the fix/NewlineAtEndOfFile branch August 8, 2016 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants