Clean up: Difference between revisions

From Nasqueron Agora
(→‎Style: +expand)
No edit summary
Line 21: Line 21:
=== Spaces ===
=== Spaces ===
Git has a filter to be able to normalize with expand. See [https://eev.ee/blog/2016/06/04/converting-a-git-repo-from-tabs-to-spaces/ here].
Git has a filter to be able to normalize with expand. See [https://eev.ee/blog/2016/06/04/converting-a-git-repo-from-tabs-to-spaces/ here].
[[Category:Howto]]
[[Category:Contributor guide]]

Revision as of 20:39, 26 October 2024

Style

EOL at EOF

There is a need for a blank line at end of file.

You can add them with echo.

$ git ls-files | while read f; do tail -n1 $f | read -r _ || echo >> $f; done

UNIX lines

$ dos2unix

Encoding

$ iconv -f iso-8859-15 -t utf-8

Spaces

Git has a filter to be able to normalize with expand. See here.