mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Add lint for [
instead of [[
in shells scripts
This commit is contained in:
parent
9231ca1c69
commit
f07d8f188a
5 changed files with 17 additions and 8 deletions
|
@ -54,6 +54,8 @@ class CheckTidiness(unittest.TestCase):
|
|||
self.assertEqual('script is missing options "set -o errexit", "set -o pipefail"', errors.next()[2])
|
||||
self.assertEqual('script should not use backticks for command substitution', errors.next()[2])
|
||||
self.assertEqual('variable substitutions should use the full \"${VAR}\" form', errors.next()[2])
|
||||
self.assertEqual('script should use `[[` instead of `[` for conditional testing', errors.next()[2])
|
||||
self.assertEqual('script should use `[[` instead of `[` for conditional testing', errors.next()[2])
|
||||
self.assertNoMoreErrors(errors)
|
||||
|
||||
def test_rust(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue