Improve the 'pylint disable' statements
authorAlexander Popov <alex.popov@linux.com>
Sun, 26 Feb 2023 20:08:07 +0000 (23:08 +0300)
committerAlexander Popov <alex.popov@linux.com>
Sun, 26 Feb 2023 20:11:22 +0000 (23:11 +0300)
kconfig_hardened_check/__init__.py
kconfig_hardened_check/checks.py
kconfig_hardened_check/engine.py

index ed4746bef61773a3c656de07643f971ae3936740..b1a316e783c6c588907ad8ad9266231007170d4b 100644 (file)
@@ -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 <alex.popov@linux.com>
 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
index 8942124ef64a7aeb7dca0aac9ccfab321df054b3..65d8acfe59afc5b6cab198811df3f221f446e757 100644 (file)
@@ -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
 
index 82f95c60e4f9561b8fbf198bf46adbc2b572316f..621fdc707c2838d475f1701d7d54bf89db4aeea4 100644 (file)
@@ -10,8 +10,8 @@ Author: Alexander Popov <alex.popov@linux.com>
 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: