| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,8 +9,3 @@ repos: | |||
| 9 | 9 | hooks: | |
| 10 | 10 | - id: pospell | |
| 11 | 11 | args: ['--personal-dict', 'dict', '--modified', '--language', 'es_ES', '--language', 'es_AR'] | |
| 12 | - - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| 13 | - rev: v2.5.0 | ||
| 14 | - hooks: | ||
| 15 | - - id: file-contents-sorter | ||
| 16 | - files: dict | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,7 @@ install: | |||
| 11 | 11 | script: | |
| 12 | 12 | - powrap --check --quiet **/*.po | |
| 13 | 13 | - pospell -p dict -l es_AR -l es_ES **/*.po | |
| 14 | + - make dict_dups | ||
| 14 | 15 | - make build | |
| 15 | 16 | branches: | |
| 16 | 17 | only: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,6 +31,7 @@ help: | |||
| 31 | 31 | @echo " spell Check spelling" | |
| 32 | 32 | @echo " wrap Wrap all the PO files to a fixed column width" | |
| 33 | 33 | @echo " progress To compute current progression on the tutorial" | |
| 34 | + @echo " dict_dups Check duplicated entries on the dict" | ||
| 34 | 35 | @echo "" | |
| 35 | 36 | ||
| 36 | 37 | ||
@@ -94,3 +95,17 @@ spell: venv | |||
| 94 | 95 | .PHONY: wrap | |
| 95 | 96 | wrap: venv | |
| 96 | 97 | $(VENV)/bin/powrap **/*.po | |
| 98 | + | ||
| 99 | + .PHONY: dict_dups | ||
| 100 | + SHELL:=/bin/bash | ||
| 101 | + .ONESHELL: | ||
| 102 | + dict_dups: | ||
| 103 | + if [[ $$(cat dict| sort | uniq -dc) ]]; then\ | ||
| 104 | + echo -e "\n\n\n ####################### \n\n\n" | ||
| 105 | + echo "duplicated lines in the dict file" | ||
| 106 | + uniq -dc dict | ||
| 107 | + exit 1 | ||
| 108 | + else | ||
| 109 | + echo "no duplicated lines" | ||
| 110 | + exit 0 | ||
| 111 | + fi | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments