feat(misconf): Support --ignore-policy in config scans (#5359)

Signed-off-by: Simar <simar@linux.com>
This commit is contained in:
simar7
2023-10-23 01:32:08 -06:00
committed by GitHub
parent 05b3c86a14
commit 01c98d1516
5 changed files with 93 additions and 10 deletions

View File

@@ -622,7 +622,6 @@ func NewServerCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command {
func NewConfigCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command {
reportFlagGroup := flag.NewReportFlagGroup()
reportFlagGroup.DependencyTree = nil // disable '--dependency-tree'
reportFlagGroup.IgnorePolicy = nil // disable '--ignore-policy'
reportFlagGroup.ListAllPkgs = nil // disable '--list-all-pkgs'
reportFlagGroup.ExitOnEOL = nil // disable '--exit-on-eol'
reportFormat := flag.ReportFormatFlag