diff options
Diffstat (limited to 'lint')
-rwxr-xr-x | lint/bash | 2 | ||||
-rwxr-xr-x | lint/bin | 8 | ||||
-rwxr-xr-x | lint/games | 7 | ||||
-rwxr-xr-x | lint/sh | 2 | ||||
-rwxr-xr-x | lint/urxvt | 2 |
5 files changed, 21 insertions, 0 deletions
diff --git a/lint/bash b/lint/bash new file mode 100755 index 00000000..80206f05 --- /dev/null +++ b/lint/bash @@ -0,0 +1,2 @@ +#!/bin/sh +find bash -type f -print -exec shellcheck -- {} \; diff --git a/lint/bin b/lint/bin new file mode 100755 index 00000000..b9171652 --- /dev/null +++ b/lint/bin @@ -0,0 +1,8 @@ + +#!/bin/sh +for bin in bin/* ; do + if sed 1q "$bin" | grep -q -- 'sh$' ; then + printf '%s\n' "$bin" + shellcheck -- "$bin" + fi +done diff --git a/lint/games b/lint/games new file mode 100755 index 00000000..1802b3fd --- /dev/null +++ b/lint/games @@ -0,0 +1,7 @@ +#!/bin/sh +for game in games/* ; do + if sed 1q "$game" | grep -q -- 'sh$' ; then + printf '%s\n' "$game" + shellcheck -- "$game" + fi +done diff --git a/lint/sh b/lint/sh new file mode 100755 index 00000000..f21cdddd --- /dev/null +++ b/lint/sh @@ -0,0 +1,2 @@ +#!/bin/sh +find sh -type f -print -exec shellcheck -- {} \; diff --git a/lint/urxvt b/lint/urxvt new file mode 100755 index 00000000..84f08619 --- /dev/null +++ b/lint/urxvt @@ -0,0 +1,2 @@ +#!/bin/sh +find urxvt/ext -type f -print -exec perlcritic --brutal -- {} \; |