From fbdbf1e8227ab6578ce64113151b509955f7a42e Mon Sep 17 00:00:00 2001 From: Daniel D'Avella Date: Tue, 19 Mar 2024 11:43:55 -0400 Subject: [PATCH] Add pass-thru option for Sonar hotspots JSON --- src/codemodder/cli.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/codemodder/cli.py b/src/codemodder/cli.py index 478b91dd..11b08907 100644 --- a/src/codemodder/cli.py +++ b/src/codemodder/cli.py @@ -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)