CI: Check bin/kernel-hardening-checker with pylint
This commit is contained in:
2
.github/workflows/static_analysis.yml
vendored
2
.github/workflows/static_analysis.yml
vendored
@@ -39,7 +39,7 @@ jobs:
|
||||
- name: Check the code with pylint
|
||||
run: |
|
||||
python3 -m pip install pylint
|
||||
pylint --recursive=y kernel_hardening_checker
|
||||
pylint --verbose --recursive=y bin/kernel-hardening-checker kernel_hardening_checker/
|
||||
|
||||
- name: Check the code with ruff
|
||||
run: |
|
||||
|
||||
@@ -21,7 +21,7 @@ steps:
|
||||
- python3 -m pip install --upgrade pip
|
||||
- python3 -m pip install pylint
|
||||
- echo "Run pylint..."
|
||||
- pylint --recursive=y kernel_hardening_checker
|
||||
- pylint --verbose --recursive=y bin/kernel-hardening-checker kernel_hardening_checker/
|
||||
- name: ruff-checking
|
||||
image: python:3
|
||||
when:
|
||||
|
||||
@@ -9,6 +9,8 @@ SPDX-License-Identifier: GPL-3.0-only
|
||||
This file is for using the tool without installation via setuptools.
|
||||
"""
|
||||
|
||||
# pylint: disable=invalid-name,import-error,wrong-import-position
|
||||
|
||||
import inspect
|
||||
import os
|
||||
import sys
|
||||
|
||||
Reference in New Issue
Block a user