Fix pylint W0613: Unused argument 'mode'
authorAlexander Popov <alex.popov@linux.com>
Tue, 16 Jan 2024 04:18:40 +0000 (07:18 +0300)
committerAlexander Popov <alex.popov@linux.com>
Tue, 16 Jan 2024 04:18:40 +0000 (07:18 +0300)
kernel_hardening_checker/__init__.py

index a27e377e8807563f9c9b1e9b507d88fdb39a9d69..a092e5c8cdbd432221291f879d62ffee3bd5a184 100644 (file)
@@ -150,7 +150,7 @@ def print_checklist(mode, checklist, with_results):
         print(f'[+] Config check is finished: \'OK\' - {ok_count}{ok_suppressed} / \'FAIL\' - {fail_count}{fail_suppressed}')
 
 
-def parse_kconfig_file(mode, parsed_options, fname):
+def parse_kconfig_file(_mode, parsed_options, fname):
     with _open(fname, 'rt', encoding='utf-8') as f:
         opt_is_on = re.compile(r"CONFIG_[a-zA-Z0-9_]+=.+$")
         opt_is_off = re.compile(r"# CONFIG_[a-zA-Z0-9_]+ is not set$")