1
0
Fork 0

Run fast script linters before heavier analysis

Includes two small scripts: verify-bash.sh for running shellcheck, and
verify-python.sh for running pylint.

.pylint rc files is a default configuration file generated by
pylint 2.3.1, with one change (min-similarity-lines changed
from 4 to 10).
This commit is contained in:
Patryk Obara 2019-11-14 19:27:22 +01:00 committed by Patryk Obara
parent c6167533bf
commit 2bfae63f1f
4 changed files with 633 additions and 0 deletions

View file

@ -2,9 +2,25 @@ name: Static code analysis
on: push
jobs:
run_linters:
name: Script linters
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- run: sudo apt-get update
- name: Install pylint
run: |
sudo apt-get install python3-setuptools
sudo pip3 install pylint beautifulsoup4 html5lib
- name: Run pylint
run: ./scripts/verify-python.sh
- name: Run shellcheck
run: ./scripts/verify-bash.sh
build_clang_static_analyser:
name: Clang static analyzer
runs-on: ubuntu-18.04
needs: run_linters
steps:
- uses: actions/checkout@v1
- name: Log environment