blob: 3f5c794d1bf99accf8ca33465379d138c0b9791b [file] [log] [blame]
Chase Qied017432018-12-14 16:56:20 +08001#!/bin/sh
2set -ex
3
4python3 validate.py \
Chase Qied017432018-12-14 16:56:20 +08005 -r build-error.txt \
Federico Gelmetti612ac132022-01-11 17:11:20 +01006 -p E501 W503 E203 \
Milosz Wasilewski3c138192025-01-14 19:13:07 +00007 -s SC1091 SC2230 SC3043 \
8 -l warning
Chase Qi6b5b4652019-01-11 14:18:28 +08009
10# pycodestyle checks skipped:
Federico Gelmetti612ac132022-01-11 17:11:20 +010011# 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 Qi6b5b4652019-01-11 14:18:28 +080015
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 Wasilewski3c138192025-01-14 19:13:07 +000022
Milosz Wasilewski881b65a2025-01-14 19:15:42 +000023# 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 Wasilewski3c138192025-01-14 19:13:07 +000026# "warning" is the default severity level for shellcheck