ComplexOptCheck type has the type of the first opt in it
authorAlexander Popov <alex.popov@linux.com>
Sat, 22 Jan 2022 21:33:04 +0000 (00:33 +0300)
committerAlexander Popov <alex.popov@linux.com>
Sat, 22 Jan 2022 21:33:04 +0000 (00:33 +0300)
kconfig_hardened_check/__init__.py

index ae51ca0bcbf913d956f6ccfc78c3af166ef784f9..f1de8195f258d88686bf9fab696f06aec8094716 100644 (file)
@@ -176,6 +176,10 @@ class ComplexOptCheck:
     def name(self):
         return self.opts[0].name
 
+    @property
+    def type(self):
+        return self.opts[0].type
+
     @property
     def expected(self):
         return self.opts[0].expected