diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check-copyright-year | 2 | ||||
-rwxr-xr-x | scripts/check-silliness | 18 |
2 files changed, 13 insertions, 7 deletions
diff --git a/scripts/check-copyright-year b/scripts/check-copyright-year index 5a458954..58d9e66b 100755 --- a/scripts/check-copyright-year +++ b/scripts/check-copyright-year @@ -28,7 +28,7 @@ class CheckCopyrightYear(cliapp.Application): pat = re.compile(r'^[ #/*]*Copyright\s+(\(C\)\s*)' r'(?P<years>[0-9, -]+)') - ignore = ['COPYING'] + ignore = ['COPYING', 'morphlib/licensecheck.pl'] def add_settings(self): self.settings.boolean(['verbose', 'v'], 'be more verbose') diff --git a/scripts/check-silliness b/scripts/check-silliness index 0c761a69..73f8fe56 100755 --- a/scripts/check-silliness +++ b/scripts/check-silliness @@ -19,17 +19,23 @@ errors=0 for x; do - if tr -cd '\t' < "$x" | grep . > /dev/null - then - echo "ERROR: $x contains TAB characters" 1>&2 - grep -n -F "$(printf "\t")" "$x" 1>&2 - errors=1 - fi + case "$x" in + morphlib/licensecheck.pl) ;; + *) + if tr -cd '\t' < "$x" | grep . > /dev/null + then + echo "ERROR: $x contains TAB characters" 1>&2 + grep -n -F "$(printf "\t")" "$x" 1>&2 + errors=1 + fi + ;; + esac case "$x" in # Excluding yarn files since it's not possible to split up the # IMPLEMENTS lines of them *.yarn) ;; + morphlib/licensecheck.pl) ;; *) if awk 'length($0) > 79' "$x" | grep . > /dev/null then |