Files
seL4/tools/kernel_pylint.sh
Gerwin Klein 7892335ca1 tools: more portable shell test
No need for bash style test `[[ .. ]]`, normal POSIX test `[ .. ]`
works fine.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2021-08-25 17:56:49 +10:00

20 lines
466 B
Bash
Executable File

#!/usr/bin/env bash
#
# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
#
# SPDX-License-Identifier: BSD-2-Clause
#
python_sources=$(find ../tools ../manual/tools ../libsel4/tools -name '*.py')
if [ -z "$python_sources" ]; then
echo "Unable to find python source files"
exit 1
fi
pylintrc=$(find . -name 'pylintrc')
if [ -z "$pylintrc" ]; then
echo "Unable to find pylintrc"
exit 1
fi
pylint --errors-only --rcfile=${pylintrc} ${python_sources}