mirror of
https://github.com/seL4/seL4.git
synced 2026-03-27 10:29:57 +00:00
No need for bash style test `[[ .. ]]`, normal POSIX test `[ .. ]` works fine. Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
20 lines
466 B
Bash
Executable File
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}
|