Add more missing ini options
Added the following missing ini options:
* msg-template - necessary if output is a parameter
* verbose
* ignore-nosec
* baseline
Related to PR
@@ -377,11 +377,21 @@ def main():
ini_options.get('format'),
'output format')
+ args.msg_template = _log_option_source(
+ args.msg_template,
+ ini_options.get('msg-template'),
+ 'output message template')
+
args.output_file = _log_option_source(
args.output_file,
ini_options.get('output'),
'output file')
+ args.verbose = _log_option_source(
+ args.verbose,
+ ini_options.get('verbose'),
+ 'output extra information')
+
args.debug = _log_option_source(
args.debug,
ini_options.get('debug'),
@@ -392,6 +402,16 @@ def main():
ini_options.get('quiet'),
'silent mode')
+ args.ignore_nosec = _log_option_source(
+ args.ignore_nosec,
+ ini_options.get('ignore-nosec'),
+ 'do not skip lines with # nosec')
+
+ args.baseline = _log_option_source(
+ args.baseline,
+ ini_options.get('baseline'),
+ 'path of a baseline report')
+
if not args.targets:
LOG.error("No targets found in CLI or ini files, exiting.")
sys.exit(2)
