file-writer
writeResultsToFile(result, cwd, [outputFile]) โ *
A utility function to write results to an output file. If no outputFile is given,
it uses a default output file name in the format "checkup-report-YYYY-MM-DD-HH_mm_ss".
If result is a string the extension is .txt, otherwise .sarif is used.
Kind: global function
Returns: * - {string}
| Param | Type | Default | Description |
|---|---|---|---|
| result | Log | string | The result to be output, either a SARIF log or a string. | |
| cwd | string | The current working directory to write to. | |
| [outputFile] | string | "DEFAULT_OUTPUT_FILENAME" | The output filename format. |