Skip to content

Fails when xml filename contains a space #3

Description

@vladistan

I have a file in my repo named ngma_natural_gas_billing_billing_data_Service 1_1_2021-05-26_to_2024-04-25.xml. Note that the filename has a space in the middle.

When this pre-commit check runs I get the following error message:

warning: failed to load external entity "tests/test_parse/data/natural_gas/ngma_natural_gas_billing_billing_data_Service"
XML check for tests/test_parse/data/natural_gas/ngma_natural_gas_billing_billing_data_Service: cannot parse
warning: failed to load external entity "1_1_2021-05-26_to_2024-04-25.xml"
XML check for 1_1_2021-05-26_to_2024-04-25.xml: cannot parse

Correct behaviour:

  • This check should support filenames with the space in them

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions