Skip to content

Commit

Permalink
jsdoc for fixInvalidNotificationsInFile
Browse files Browse the repository at this point in the history
  • Loading branch information
kaeluka committed May 24, 2023
1 parent dddabd0 commit 153cab0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,16 @@ export function fixInvalidNotifications(
return newSarif;
}

/**
* Removes duplicates from the sarif file.
*
* When `CODEQL_ACTION_DISABLE_DUPLICATE_LOCATION_FIX` is set to true, this will
* simply rename the input file to the output file. Otherwise, it will parse the
* input file as JSON, remove duplicate locations from the SARIF notification
* objects, and write the result to the output file.
*
* For context, see documentation of:
* `CODEQL_ACTION_DISABLE_DUPLICATE_LOCATION_FIX`. */
export function fixInvalidNotificationsInFile(
inputPath: string,
outputPath: string,
Expand Down

0 comments on commit 153cab0

Please sign in to comment.