Skip to content

Commit 153cab0

Browse files
author
Stephan Brandauer
committed
jsdoc for fixInvalidNotificationsInFile
1 parent dddabd0 commit 153cab0

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/util.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,16 @@ export function fixInvalidNotifications(
876876
return newSarif;
877877
}
878878

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`. */
879889
export function fixInvalidNotificationsInFile(
880890
inputPath: string,
881891
outputPath: string,

0 commit comments

Comments
 (0)