@@ -69,7 +69,8 @@ def _get_fail_threshold(ctx: click.Context) -> int:
6969@cli .command ()
7070@click .option ("--json-output" , "-j" , is_flag = True , help = "Output as JSON" )
7171@click .option ("--category" , "-c" , type = click .Choice (ALL_CATEGORIES ), default = None , help = "Filter by category" )
72- @click .option ("--fail" , "fail_threshold" , type = int , default = None , help = "Exit code 1 if findings >= threshold (overrides .deadcode.yml)" )
72+ @click .option ("--fail" , "fail_threshold" , type = int , default = None ,
73+ help = "Exit code 1 if findings >= threshold (overrides .deadcode.yml)" )
7374@click .pass_context
7475def scan (ctx : click .Context , json_output : bool , category : str | None , fail_threshold : int | None ) -> None :
7576 """Scan project for dead code."""
@@ -162,7 +163,8 @@ def scan(ctx: click.Context, json_output: bool, category: str | None, fail_thres
162163
163164@cli .command ()
164165@click .option ("--dry-run" , is_flag = True , help = "Preview what would be removed without making changes" )
165- @click .option ("--category" , "-c" , type = click .Choice (ALL_CATEGORIES ), default = None , help = "Only remove findings in this category" )
166+ @click .option ("--category" , "-c" , type = click .Choice (ALL_CATEGORIES ),
167+ default = None , help = "Only remove findings in this category" )
166168@click .pass_context
167169def remove (ctx : click .Context , dry_run : bool , category : str | None ) -> None :
168170 """Remove dead code (with --dry-run for preview).
0 commit comments