Skip to content

[BUG] hadolint XML checkstyle is wrongly encoded #1065

@rantoniuk

Description

@rantoniuk

The XML created has wrong entity encoding that causes the UI parsers to show also wrongly encoded information.

Command:
hadolint -f checkstyle Dockerfile-test

Output (head):

<?xml version='1.0' encoding='UTF-8'?><checkstyle version='4.3'><file name='Dockerfile&#45;test'>

Expected:

<?xml version="1.0" encoding="UTF-8"?><checkstyle version="4.3"><file name="Dockerfile-test">

Resulting wrong UI view after parsing via:

    - uses: lcollins/checkstyle-github-action@v3.1.0
      with:
        path: 'checkstyle-hadolint.xml
Screenshot 2024-12-12 at 13 21 18

PS. You can now enable issue types to differentiate between Bugs/Features.

Metadata

Metadata

Assignees

Labels

bugformatterThis PR/issue relates to output formatters

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions