AuditCommand constructor
AuditCommand()
Implementation
AuditCommand() {
argParser
..addFlag(
'verbose',
abbr: 'v',
help: 'Show full detail for low-risk and maintenance findings.',
)
..addOption(
'fail-on',
help: 'Minimum severity that causes a non-zero exit code.',
allowed: ['critical', 'high', 'medium', 'low', 'info', 'none'],
defaultsTo: 'high',
)
..addOption(
'html',
help: 'Write an HTML report (with charts) to this path.',
valueHelp: 'audit_report.html',
)
..addFlag(
'open',
help: 'Open the generated HTML report in the default browser.',
)
..addOption(
'json',
help: 'Write a JSON report to this path.',
valueHelp: 'audit_report.json',
)
..addOption(
'sarif',
help:
'Write a SARIF report to this path (consumed by GitHub code '
'scanning and other SARIF tooling).',
valueHelp: 'audit_report.sarif',
)
..addFlag(
'update-baseline',
help:
'Write current findings to .flutter_auditor_baseline.json as '
'the accepted baseline, then exit. Future runs only fail on '
'newly introduced findings.',
);
}