From: Alexander Popov Date: Sun, 26 Feb 2023 20:08:07 +0000 (+0300) Subject: Improve the 'pylint disable' statements X-Git-Tag: v0.6.6~237 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=4de5662ebaf4f72aeffbe40fc78433ca5d81635e;p=kconfig-hardened-check.git Improve the 'pylint disable' statements --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index ed4746b..b1a316e 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -1,8 +1,5 @@ #!/usr/bin/python3 - -# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring -# pylint: disable=line-too-long,invalid-name,too-many-branches,too-many-statements """ This tool helps me to check Linux kernel options against my security hardening preferences for X86_64, ARM64, X86_32, and ARM. @@ -13,6 +10,7 @@ Author: Alexander Popov This module performs input/output. """ +# pylint: disable=missing-function-docstring,line-too-long,invalid-name,too-many-branches,too-many-statements import sys from argparse import ArgumentParser diff --git a/kconfig_hardened_check/checks.py b/kconfig_hardened_check/checks.py index 8942124..65d8acf 100644 --- a/kconfig_hardened_check/checks.py +++ b/kconfig_hardened_check/checks.py @@ -43,8 +43,8 @@ This module contains knowledge for checks. # amd_iommu=on # efi=disable_early_pci_dma -# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring -# pylint: disable=line-too-long,invalid-name,too-many-branches,too-many-statements +# pylint: disable=missing-function-docstring,line-too-long,invalid-name +# pylint: disable=too-many-branches,too-many-statements,too-many-return-statements from .engine import KconfigCheck, CmdlineCheck, VersionCheck, OR, AND diff --git a/kconfig_hardened_check/engine.py b/kconfig_hardened_check/engine.py index 82f95c6..621fdc7 100644 --- a/kconfig_hardened_check/engine.py +++ b/kconfig_hardened_check/engine.py @@ -10,8 +10,8 @@ Author: Alexander Popov This module is the engine of checks. """ -# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring -# pylint: disable=line-too-long,invalid-name,too-many-branches,too-many-statements +# pylint: disable=missing-class-docstring,missing-function-docstring +# pylint: disable=line-too-long,invalid-name,too-many-branches class OptCheck: