Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-commit config #85

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

pre-commit config #85

wants to merge 3 commits into from

Conversation

lethosor
Copy link
Member

@lethosor lethosor commented Apr 7, 2022

This is currently failing because several XML files are invalid because they have multiple top-level elements:

resources/buildings/caravan_1.xml: Failed to xml parse (resources/buildings/caravan_1.xml:6:0: junk after document element)
resources/terrain/DF_2014_Trees/base_trees_trunk.xml: Failed to xml parse (resources/terrain/DF_2014_Trees/base_trees_trunk.xml:98:0: junk after document element)
resources/terrain/Test.xml: Failed to xml parse (resources/terrain/Test.xml:60:0: junk after document element)
resources/terrain/DF_2014_Trees/base_trees_foliage.xml: Failed to xml parse (resources/terrain/DF_2014_Trees/base_trees_foliage.xml:57:0: junk after document element)
resources/terrain/block_walls.xml: Failed to xml parse (resources/terrain/block_walls.xml:36:0: junk after document element)
resources/terrain/DF_2014_Trees/base_mushroom.xml: Failed to xml parse (resources/terrain/DF_2014_Trees/base_mushroom.xml:83:0: junk after document element)

The two best paths forward I see here are

  • ignoring these files entirely
  • adjusting the parser to accept a parent element enclosing the problematic elements

tidy -xml -indent --indent-spaces 4 --wrap 0 -modify $(find resources/ -name '*.xml')
@lethosor lethosor added this to In progress in CI via automation Apr 7, 2022
@lethosor lethosor changed the title Draft: pre-commit config pre-commit config Apr 7, 2022
@lethosor lethosor marked this pull request as draft April 7, 2022 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
CI
  
In progress
Development

Successfully merging this pull request may close these issues.

None yet

1 participant