@@ -83,7 +83,20 @@ def ignore_command( # noqa: C901
8383 bool , typer .Option ('--global' , '-g' , help = 'Add an ignore rule to the global CLI config.' )
8484 ] = False ,
8585) -> None :
86- """Ignores a specific value, path or rule ID."""
86+ """:no_entry: [bold cyan]Ignore specific findings or paths in scans.[/]
87+
88+ This command allows you to exclude specific items from Cycode scans, including:
89+ * Paths: Exclude specific files or directories
90+ * Rules: Ignore specific security rules
91+ * Values: Exclude specific sensitive values
92+ * Packages: Ignore specific package versions
93+ * CVEs: Exclude specific vulnerabilities
94+
95+ Example usage:
96+ * `cycode ignore --by-path .env`: Ignore the tests directory
97+ * `cycode ignore --by-rule GUID`: Ignore rule with the specified GUID
98+ * `cycode ignore --by-package [email protected] `: Ignore lodash version 4.17.21 99+ """
87100 add_breadcrumb ('ignore' )
88101
89102 all_by_values = [by_value , by_sha , by_path , by_rule , by_package , by_cve ]
@@ -145,4 +158,4 @@ def ignore_command( # noqa: C901
145158 'exclusion_value' : exclusion_value ,
146159 },
147160 )
148- configuration_manager .add_exclusion (configuration_scope , scan_type , exclusion_type , exclusion_value )
161+ configuration_manager .add_exclusion (configuration_scope , str ( scan_type ) , exclusion_type , exclusion_value )
0 commit comments