Fix pylint E1101: Instance of 'OptCheck' has no 'type' member
authorAlexander Popov <alex.popov@linux.com>
Tue, 16 Jan 2024 04:24:32 +0000 (07:24 +0300)
committerAlexander Popov <alex.popov@linux.com>
Tue, 16 Jan 2024 04:24:32 +0000 (07:24 +0300)
kernel_hardening_checker/engine.py

index 4e4eee91b413c1b1f1408b92645e285a9aab1539..a810b98b450008baf0601bff08606099105f5d88 100644 (file)
@@ -57,6 +57,10 @@ class OptCheck:
         self.state = None
         self.result = None
 
+    @property
+    def type(self):
+        return None
+
     def check(self):
         # handle the 'is present' check
         if self.expected == 'is present':