diff options
author | Jim Berlage <jberlage@mdsol.com> | 2016-07-05 12:15:40 -0500 |
---|---|---|
committer | Jim Berlage <jberlage@mdsol.com> | 2016-07-22 11:53:14 -0500 |
commit | 7952bd00b687c3c1f5458f1750267e2bc1469ddd (patch) | |
tree | 1ecca5e37f3bf72fa2c4c24ea74abba8003fc1ea /python/tidy/servo_tidy_tests/shell_tidy.sh | |
parent | 1e0321f7dde5f33f7d26bbd4f088622fa3660477 (diff) | |
download | servo-7952bd00b687c3c1f5458f1750267e2bc1469ddd.tar.gz servo-7952bd00b687c3c1f5458f1750267e2bc1469ddd.zip |
Add linting for shell scripts
This changes tidy to check shell scripts for the proper shebang and
options. It does not check that variables are formatted correctly. It
also adds a check for the MPL 2.0 license in shell scripts.
Diffstat (limited to 'python/tidy/servo_tidy_tests/shell_tidy.sh')
-rw-r--r-- | python/tidy/servo_tidy_tests/shell_tidy.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy_tests/shell_tidy.sh b/python/tidy/servo_tidy_tests/shell_tidy.sh new file mode 100644 index 00000000000..fbf0e784755 --- /dev/null +++ b/python/tidy/servo_tidy_tests/shell_tidy.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# +# Tests tidy for shell scripts. + +set -o nounset + +echo "hello world" |