Skip to content

Commit

Permalink
Add pass-thru option for Sonar hotspots JSON (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella authored Mar 19, 2024
1 parent 9ec75cf commit 3258da5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/codemodder/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,16 +159,19 @@ def parse_args(argv, codemod_registry: CodemodRegistry):
help="maximum number of workers (threads) to use for processing files in parallel",
)

# At this time we don't do anything with the sarif arg.
parser.add_argument(
"--sarif",
action=CsvListAction,
help="Comma-separated set of path(s) to SARIF file(s) to feed to the codemods",
)
# At this time we don't do anything with the sonar-issues-json arg.
parser.add_argument(
"--sonar-issues-json",
action=CsvListAction,
help="Comma-separated set of path(s) to Sonar issues JSON file(s) to feed to the codemods",
)
parser.add_argument(
"--sonar-hotspots-json",
action=CsvListAction,
help="Comma-separated set of path(s) to Sonar hotspots JSON file(s) to feed to the codemods",
)
return parser.parse_args(argv)

0 comments on commit 3258da5

Please sign in to comment.