Commit 4de5662e by Alexander Popov

Improve the 'pylint disable' statements

parent 798f7d45
#!/usr/bin/python3 #!/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 This tool helps me to check Linux kernel options against
my security hardening preferences for X86_64, ARM64, X86_32, and ARM. my security hardening preferences for X86_64, ARM64, X86_32, and ARM.
...@@ -13,6 +10,7 @@ Author: Alexander Popov <alex.popov@linux.com> ...@@ -13,6 +10,7 @@ Author: Alexander Popov <alex.popov@linux.com>
This module performs input/output. This module performs input/output.
""" """
# pylint: disable=missing-function-docstring,line-too-long,invalid-name,too-many-branches,too-many-statements
import sys import sys
from argparse import ArgumentParser from argparse import ArgumentParser
......
...@@ -43,8 +43,8 @@ This module contains knowledge for checks. ...@@ -43,8 +43,8 @@ This module contains knowledge for checks.
# amd_iommu=on # amd_iommu=on
# efi=disable_early_pci_dma # efi=disable_early_pci_dma
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring # pylint: disable=missing-function-docstring,line-too-long,invalid-name
# pylint: disable=line-too-long,invalid-name,too-many-branches,too-many-statements # pylint: disable=too-many-branches,too-many-statements,too-many-return-statements
from .engine import KconfigCheck, CmdlineCheck, VersionCheck, OR, AND from .engine import KconfigCheck, CmdlineCheck, VersionCheck, OR, AND
......
...@@ -10,8 +10,8 @@ Author: Alexander Popov <alex.popov@linux.com> ...@@ -10,8 +10,8 @@ Author: Alexander Popov <alex.popov@linux.com>
This module is the engine of checks. This module is the engine of checks.
""" """
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring # pylint: disable=missing-class-docstring,missing-function-docstring
# pylint: disable=line-too-long,invalid-name,too-many-branches,too-many-statements # pylint: disable=line-too-long,invalid-name,too-many-branches
class OptCheck: class OptCheck:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment