ebcd6fcea1
A little coding hygiene cannot hurt. Add a simple awk script to check all source files for bad white space habits: - trailing white space - trailing new lines at the end of files - missing new line at the end of files - spaces followed by tabs The script outputs color when the terminal supports it. It exits with a non-zero code when there was at least one white space issue found. Call the script in the lint step. Example output of the awk script: config/default_styleset:1:# <-- trailing whitespace config/default_styleset:3:# <-- trailing whitespace doc/aerc.1.scd:78: Executes an arbitrary command in the background. Aerc will set the <-- trailing whitespace doc/aerc.1.scd:234: <-- trailing whitespace doc/aerc.1.scd:237: <-- trailing whitespace worker/types/thread_test.go:74: // return ErrSkipThread<-- space(s) followed by tab(s) worker/lib/testdata/message/invalid/hexa: trailing new line(s) Fix issues reported by the script. NB: The ENDFILE match is a GNU extension. It will be ignored on BSD-awk and trailing new lines will not be detected. The lint make target is only invoked on alpine linux which has GNU awk anyway. NB: Empty cells in scdoc tables require trailing white space... Avoid this by setting content in these cells. I don't really see a use for empty cells. Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Moritz Poldrack <moritz@poldrack.dev>
26 lines
820 B
Text
26 lines
820 B
Text
Subject: Confirmation Needed gUdVJQBhsd
|
|
Content-Type: multipart/mixed; boundary="Nextpart_1Q2YJhd197991794467076Pgfa"
|
|
To: <BORK@example.com>
|
|
From: ""REGISTRAR"" <zdglopi-1Q2YJhd-noReply@example.com>
|
|
|
|
--Nextpart_1Q2YJhd197991794467076Pgfa
|
|
Content-Type: multipart/parallel; boundary="sg54sd54g54sdg54"
|
|
|
|
--sg54sd54g54sdg54
|
|
Content-Type: multipart/alternative; boundary="54qgf54q546f46qsf46qsf"
|
|
|
|
--54qgf54q546f46qsf46qsf
|
|
Content-Type: text/plain; charset=utf-8
|
|
Content-Transfer-Encoding: Hexa
|
|
|
|
|
|
|
|
--54qgf54q546f46qsf46qsf
|
|
Content-Type: text/html; charset=utf-8
|
|
|
|
|
|
<CeNteR><a hRef="https://example.com-ap-southeast-example.com.com/example.com#qs=r-acacaeehdiebadgdhgghcaegckhabababaggacihaccajfbacccgaehhbkacb"><b><h2>Congratulations Netflix Customer!</h2></b></a><br>
|
|
<HeaD>
|
|
<ObJECT>
|
|
|
|
--Nextpart_1Q2YJhd197991794467076Pgfa--
|