-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Tool linter: check for leaf nodes with unstripped text content #17656
Tool linter: check for leaf nodes with unstripped text content #17656
Conversation
ping @davelopez |
I see your point. I cannot remember right now why I added this test. From the #14845 PR description, it sounded like the position (line and character offsets in the text document) of the issues reported by the linter will not match the real document if we have XML comments or additional spaces on it because they get removed by the parser before linting. But it looks like this will not prevent the parser from removing them anyway. |
15d7025
to
02b1b4a
Compare
02b1b4a
to
4603168
Compare
This PR was merged without a "kind/" label, please correct. |
reverts galaxyproject#17656 we have to many xml nodes where this is allowed (e.g. command) and limiting the linter to a statically defined list of node types seemed difficult to maintain replaced this with a change in the xsd that should lead to the automatic removal of surplus white spaces (leading/trailing are removed, multiple whitespaces are replaced by a single space) for some of the node types that were the original motivation for the linter (if this proves useful this could be used for more node types).
another one from the microGalaxy hackaton.
bio.tools
often contain newlines which are removed by our parser, but it would be better if they would not be there at all (I think).Created problems for instance in the
galaxy_tool_metadata_extractor
.Also removes one test (
test_xml_comments_are_ignored
) which made no sense (to me).How to test the changes?
(Select all options that apply)
License