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

改行コードを LF 統一 #1152

Open
seasoftjapan opened this issue Jan 20, 2025 · 0 comments
Open

改行コードを LF 統一 #1152

seasoftjapan opened this issue Jan 20, 2025 · 0 comments

Comments

@seasoftjapan
Copy link
Contributor

PHP ファイルは PHP-CS-Fixer が見張っていると思うので他について。

検出

$ git ls-files | grep -P -v '\.(php|jpg|jpeg|png|gif|ico|ttf|woff|pdf|csv)$' | xargs --no-run-if-empty grep -lP '\r'

置換

$ git ls-files | grep -P -v '\.(php|jpg|jpeg|png|gif|ico|ttf|woff|pdf|csv)$' | xargs --no-run-if-empty sed -i -e "s/\r//g"
seasoftjapan added a commit that referenced this issue Jan 20, 2025
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

No branches or pull requests

1 participant