Chase Qi | ed01743 | 2018-12-14 16:56:20 +0800 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | set -ex |
| 3 | |
| 4 | python3 validate.py \ |
Chase Qi | ed01743 | 2018-12-14 16:56:20 +0800 | [diff] [blame] | 5 | -r build-error.txt \ |
Federico Gelmetti | 612ac13 | 2022-01-11 17:11:20 +0100 | [diff] [blame] | 6 | -p E501 W503 E203 \ |
Milosz Wasilewski | 3c13819 | 2025-01-14 19:13:07 +0000 | [diff] [blame] | 7 | -s SC1091 SC2230 SC3043 \ |
| 8 | -l warning |
Chase Qi | 6b5b465 | 2019-01-11 14:18:28 +0800 | [diff] [blame] | 9 | |
| 10 | # pycodestyle checks skipped: |
Federico Gelmetti | 612ac13 | 2022-01-11 17:11:20 +0100 | [diff] [blame] | 11 | # E501: line too long |
| 12 | # E203: Whitespace before ':' |
| 13 | # Disabled because conflicting with black, refer to the link for details |
| 14 | # https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#slices |
Chase Qi | 6b5b465 | 2019-01-11 14:18:28 +0800 | [diff] [blame] | 15 | |
| 16 | # Shellchecks skipped: |
| 17 | # SC1091: not following |
| 18 | |
| 19 | # Reason: 'which' is widely used and supported. And 'command' applets isn't |
| 20 | # available in busybox, refer to https://busybox.net/downloads/BusyBox.html |
| 21 | # SC2230: which is non-standard. Use builtin 'command -v' instead. |
Milosz Wasilewski | 3c13819 | 2025-01-14 19:13:07 +0000 | [diff] [blame] | 22 | |
Milosz Wasilewski | 881b65a | 2025-01-14 19:15:42 +0000 | [diff] [blame] | 23 | # SC3043: In POSIC 'local' is undefined but it's widely used. For this reason |
| 24 | # it is acceptable to use 'local' in this repository |
| 25 | |
Milosz Wasilewski | 3c13819 | 2025-01-14 19:13:07 +0000 | [diff] [blame] | 26 | # "warning" is the default severity level for shellcheck |