Skip to content

Commit 0784df2

Browse files
committed
Whine about lines too long only if line contains a space.
1 parent 038ad41 commit 0784df2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
apt_dependencies: hunspell hunspell-fr-comprehensive
2121
command: 'pospell -p dict -l fr_FR $CHANGED_PO_FILES'
2222
- name: Longueur des lignes
23-
command: 'awk ''{if (length($0) > 80) {print FILENAME ":" FNR, "line too long:", $0; ERRORS+=1}} END {if (ERRORS>0) {exit 1}}'' $CHANGED_PO_FILES'
23+
command: 'awk ''{if (length($0) > 80 && length(gensub(/[^ ]/, "", "g")) > 1) {print FILENAME ":" FNR, "line too long:", $0; ERRORS+=1}} END {if (ERRORS>0) {exit 1}}'' $CHANGED_PO_FILES'
2424
- name: Grammaire
2525
package: padpo
2626
command: 'padpo -i $CHANGED_PO_FILES 2>&1 | grep -v -Ff padpo.ignore'

0 commit comments

Comments
 (0)