This commit also converts our own copyright headers to directly use SPDX, but leaves all other copyright header intact, only adding the SPDX ident. As far as possible this commit also merges multiple Data61 copyright statements/headers into one for consistency.
19 lines
458 B
Bash
Executable file
19 lines
458 B
Bash
Executable file
#!/bin/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}
|