Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lcollins authored Oct 13, 2023
1 parent a93ead3 commit 5e05c77
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions src/annotations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ function getWarningLevel(arg: Severity): AnnotationLevel {
export function annotationsForPath(resultFile: string): Annotation[] {
core.info(`Creating annotations for ${resultFile}`)
const root: string = process.env['GITHUB_WORKSPACE'] || ''
const parser = new XMLParser()
const parser = new XMLParser(XML_PARSE_OPTIONS)
const result: CheckstyleReport = parser.parse(
fs.readFileSync(resultFile, 'UTF-8' as BufferEncoding),
XML_PARSE_OPTIONS
fs.readFileSync(resultFile, 'UTF-8' as BufferEncoding)
)

return chain(
Expand Down

0 comments on commit 5e05c77

Please sign in to comment.