blob: 5ad72838e97f69614610bddb63ad6bf882362f21 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001#!/bin/bash
2#
Patrick Williams92b42cb2022-09-03 06:53:57 -05003# Copyright OpenEmbedded Contributors
4#
Brad Bishopc342db32019-05-15 21:57:59 -04005# SPDX-License-Identifier: GPL-2.0-only
6#
Brad Bishop19323692019-04-05 15:28:33 -04007# Run the pylint3 against our common python module spaces and print a report of potential issues
8#
9this_dir=$(dirname $(readlink -f $0))
10ERRORS="-E"
11IGNORELIST="$ERRORS -d logging-too-many-args -d missing-docstring -d line-too-long -d invalid-name"
12PYTHONPATH=$this_dir/../bitbake/lib/ pylint3 $IGNORELIST bb
13PYTHONPATH=$this_dir/../bitbake/lib/:$this_dir/../meta/lib pylint3 $IGNORELIST -d undefined-variable oe
14PYTHONPATH=$this_dir/../bitbake/lib/:$this_dir/../meta/lib pylint3 $IGNORELIST oeqa
15PYTHONPATH=$this_dir/../bitbake/lib/:$this_dir/../meta/lib:$this_dir/lib pylint3 $IGNORELIST -d undefined-variable argparse_oe buildstats devtool recipetool scriptpath testcasemgmt build_perf checklayer resulttool scriptutils wic