+ # final score
+ if with_results:
+ fail_count = len(list(filter(lambda opt: opt.result.startswith('FAIL'), checklist)))
+ fail_suppressed = ''
+ ok_count = len(list(filter(lambda opt: opt.result.startswith('OK'), checklist)))
+ ok_suppressed = ''
+ if mode == 'show_ok':
+ fail_suppressed = ' (suppressed in output)'
+ if mode == 'show_fail':
+ ok_suppressed = ' (suppressed in output)'
+ if mode != 'json':
+ print('[+] Config check is finished: \'OK\' - {}{} / \'FAIL\' - {}{}'.format(ok_count, ok_suppressed, fail_count, fail_suppressed))
+
+
+def perform_checks(checklist, parsed_options, kernel_version):