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
discussion: Lint Jelly files? #8706
base: master
Are you sure you want to change the base?
Conversation
"overrides": [ | ||
{ | ||
"files": "*.jelly", | ||
"options": { "parser": "html", "printWidth": 250 } |
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.
Set printWidth
fairly high otherwise attributes get split onto new lines, e.g.
<st:compress
xmlns:j="jelly:core"
xmlns:st="jelly:stapler"
xmlns:d="jelly:define"
xmlns:l="/lib/layout"
xmlns:t="/lib/hudson"
xmlns:f="/lib/form"
xmlns:i="jelly:fmt">
I don't personally find this beneficial (at least for namespace declarations).
No objections from me, if linting works consistently 👍 |
Fine with me if you can get a green build |
Please take a moment and address the merge conflicts of your pull request. Thanks! |
The linting is breaking something |
Please take a moment and address the merge conflicts of your pull request. Thanks! |
So the tests are failing as certain This can be fixed by setting |
This normally fixes xpath that is that sensitive: https://developer.mozilla.org/en-US/docs/Web/XPath/Functions/normalize-space |
Please take a moment and address the merge conflicts of your pull request. Thanks! |
Please take a moment and address the merge conflicts of your pull request. Thanks! |
Please take a moment and address the merge conflicts of your pull request. Thanks! |
Please take a moment and address the merge conflicts of your pull request. Thanks! |
Please take a moment and address the merge conflicts of your pull request. Thanks! |
Please take a moment and address the merge conflicts of your pull request. Thanks! |
For discussion purposes -
How do we feel about linting Jelly? Currently nigh every other file is linted in Jenkins and this works well. I'd propose including Jelly in that too, I've tweaked
.prettierrc
to include Jelly files and the output seems to be quite sensible.@jenkinsci/sig-ux