1#!/bin/bash
2
3#
4# Copyright 2018, Data61
5# Commonwealth Scientific and Industrial Research Organisation (CSIRO)
6# ABN 41 687 119 230.
7#
8# This software may be distributed and modified according to the terms of
9# the BSD 2-Clause license. Note that NO WARRANTY is provided.
10# See "LICENSE_BSD2.txt" for details.
11#
12# @TAG(DATA61_BSD)
13#
14
15python_sources=$(find ../tools ../manual/tools ../libsel4/tools -name '*.py')
16if [[ -z $python_sources ]]; then
17    echo "Unable to find python source files"
18    exit 1
19fi
20pylintrc=$(find . -name 'pylintrc')
21if [[ -z $pylintrc ]]; then
22    echo "Unable to find pylintrc"
23    exit 1
24fi
25
26pylint --errors-only --rcfile=${pylintrc} ${python_sources}
27