-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We have zero-line text files that aren't empty #9802
Comments
Mhhh I thought we already did it re: automating this bit of geekosaur Lines 1 to 6 in 74b1f21
|
Looking at the blame for |
With
|
The configuration doesn't include Line 43 in aaf16c4
|
I find our naming for project files odd in that it doesn't have a consistent file extension, |
@Kleidukos was there some bad interaction between
|
I think we should put back the action running fix-whitespace and revise the tool's config to include more files and to print explanation for violations (it's a new flag in fix-whitespace), and maybe something else. |
Describe the bug
Investigating #9798, I wanted to find the number of single line project files. In doing this I found some were reported as having 0 lines.
On review, @geekosaur is catching the mistake I'm often making of dropping or forgetting these newlines.
I have a script to add newlines when missing and can use it to fix up some files that don't conform, for instance
*.hs
and*.project
files. I didn't find any non-conforming*.cabal
files. There are only two legitimate zero line (empty) projects;./cabal-install/tests/fixtures/project-root/cabal.project
./cabal-install/tests/fixtures/project-root/nix/cabal.project
To Reproduce
Expected behavior
We add the missing newlines (I have a script for this).
Stretch goal: We stop relying on @geekosaur spotting these mistakes and add a check for this in CI.
The text was updated successfully, but these errors were encountered: