-
Notifications
You must be signed in to change notification settings - Fork 2
fix: xml formatting matches the pretty-print lxml setting #219
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
base: v7.7
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,13 +78,10 @@ repos: | |
types: ["dockerfile"] | ||
entry: hadolint/hadolint:2.11.0 hadolint | ||
|
||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: "v3.1.0" | ||
- repo: https://github.com/GlodoUK/pre-commit-xmllint | ||
rev: b9281d1cf34246ed43f2dd2634b855d04d06cb80 | ||
hooks: | ||
# Use Prettier to lint XML files because, well.. its rules are prettier than most linters, as the name implies. | ||
# Also we use it in the UI, so it's familiar. | ||
- id: prettier | ||
additional_dependencies: | ||
- "[email protected]" | ||
- "@prettier/[email protected]" | ||
- id: lxml-format | ||
files: \.(xml)$ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<?xml version='1.0' encoding='utf-8'?> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An inconsistency is being introduced in quote style, specifically in XML prologues. Let's hunt this down There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like https://github.com/efrecon/pre-commit-hook-lxml?tab=readme-ov-file#cli-options can configure the declaration to use double quotes. |
||
<root> | ||
<TreeNodesModel> | ||
<!-- Include additional SubTree metadata in this file. --> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<library path="example_behaviors"> | ||
<class | ||
type="example_behaviors::ExampleBehaviorsLoader" | ||
base_class_type="moveit_studio::behaviors::SharedResourcesNodeLoaderBase" | ||
/> | ||
<class type="example_behaviors::ExampleBehaviorsLoader" base_class_type="moveit_studio::behaviors::SharedResourcesNodeLoaderBase"/> | ||
</library> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
outdated comment