We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dddabd0 commit 153cab0Copy full SHA for 153cab0
1 file changed
src/util.ts
@@ -876,6 +876,16 @@ export function fixInvalidNotifications(
876
return newSarif;
877
}
878
879
+/**
880
+ * Removes duplicates from the sarif file.
881
+ *
882
+ * When `CODEQL_ACTION_DISABLE_DUPLICATE_LOCATION_FIX` is set to true, this will
883
+ * simply rename the input file to the output file. Otherwise, it will parse the
884
+ * input file as JSON, remove duplicate locations from the SARIF notification
885
+ * objects, and write the result to the output file.
886
887
+ * For context, see documentation of:
888
+ * `CODEQL_ACTION_DISABLE_DUPLICATE_LOCATION_FIX`. */
889
export function fixInvalidNotificationsInFile(
890
inputPath: string,
891
outputPath: string,
0 commit comments