Skip to content
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

file-trailing-single-newline shows error after fixing files #18

Open
jackbentley opened this issue Feb 25, 2020 · 0 comments · May be fixed by #22
Open

file-trailing-single-newline shows error after fixing files #18

jackbentley opened this issue Feb 25, 2020 · 0 comments · May be fixed by #22

Comments

@jackbentley
Copy link

Running file-trailing-single-newline results in the following error. However, the files are fixed correctly. Rerunning it doesn't pick anything up and returns successfully.

$ file-trailing-single-newline --fix --path=./

$ find ./ -type f    -print0 | xargs -0 -P 8 -n1  sh -c 'if [ -f "${1}" ]; then aci-trailing-newline -1 "$1" || ((echo "" >> "$1" && sed -i "" -e :a -e "/^\n*\$/{\$d;N;ba" -e "}" "$1") && echo "Fixing: $1" || echo "FAILED: $1"); fi' --
Fixing: ./file.conf
[ERR] Some files do not have exactly one trailing newline.
@jackbentley jackbentley linked a pull request Nov 9, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant