Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Yaml] Add --exclude and negatable --parse-tags option to lint:yaml command#39641
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedDec 28, 2020
Hey! I see that this is your first PR. That is great! Welcome! Symfony has acontribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
d73e797 to3bcfd1dCompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
1980bd0 toc8f8840Compare
xabbuh left a comment
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.
I think we should also add a test that handles a call of the command with a config file being passed as well as other options.
Uh oh!
There was an error while loading.Please reload this page.
christingruber commentedJan 5, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I've added a simple mixed test, |
1ca3b9b to85a507fComparechristingruber commentedJan 5, 2021
I have changed the load order to allow overrides by console args... |
85a507f to3609488Comparechristingruber commentedJan 12, 2021
A short overview for the last changes: I have added some tests which handles mixed arguments from config and options from console. I have also changed the load order to allow overrides by console options. With that it is possible to override the values provided from lint config by console options.@xabbuh |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
f09c5e1 to6a964b3Compare6a964b3 tocbdda1fComparejaviereguiluz commentedFeb 19, 2021
I'm divided about this proposal. I love the new options that you added to the command but I'm not sure about providing support for a new config file specifically to run this command. Just asking: if we keep all the new command options, could a makefile task be an alternative to this config file? You would add the values of all the command options to create a very long command ... but since it's a Makefile, you don't have to actually type or remember the long command, only a short alias. Maybe it's not possible, I don't know. As a poor version of the Makefile, a simple |
christingruber commentedFeb 26, 2021
@javiereguiluz Thanks for your feedback. No problem I think we can hold the |
javiereguiluz commentedFeb 26, 2021
@christingruber thanks ... but maybe we should wait for other comments from @symfony/mergers first. The reason is that in my previous comment I only gave my opinion ... and a single person opinion is not important. Better see what's the general consensus about what to do here. Thanks! |
Nyholm left a comment
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.
Wow, what a great PR. Well done. I like that you added tests and a good description in the changelog. I also like the implementation.
I do agree with@javiereguiluz, Let's not add a config file. If we would go the config file route, we must also support different formats and it would make sense to allow other commands to have config files too. It will be a large feature and Im not sure about that route. I think the workarounds mentioned before is better.
I would be happy to see this PR with only theexclude feature.
Nyholm left a comment
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.
Great. Thank you for this PR.
I added some questions. Also, can you make sure the PR description is up to date? It will make it easier to understand this feature after the PR is merged.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
345671e toca1608eCompare edited
Uh oh!
There was an error while loading.Please reload this page.
christingruber commentedAug 13, 2021
Hi@Nyholm, thanks for your Feedback, I updated the MR description / changelog and the composer deps. (See my further comments) |
Nyholm left a comment
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.
Thank you.
I like this feature and the implementation. I also appreciate that you updated the PR description and that you prepared a doc PR.
Well done.
OskarStark left a comment
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.
One minor
Uh oh!
There was an error while loading.Please reload this page.
2f64ce5 to312b6f2CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
3cc8818 to5a37229CompareUh oh!
There was an error while loading.Please reload this page.
5a37229 to55704f3Comparechalasr commentedAug 14, 2021
Thank you@christingruber. |
…on (christingruber)This PR was merged into the 5.4 branch.Discussion----------[Yaml] Adds chapters for YAML lint --exclude optionAdds the new chapters for the yaml lint ``--exclude`` and ``--config`` options.See the feature pull:symfony/symfony#39641Commits-------9b0fe51 Add the docs for the new --exclude option
Uh oh!
There was an error while loading.Please reload this page.
Added a new
--excludeoption to exclude one or more specific files from multiple file list:lint:yaml dirname --exclude=/dirname/foo.yml --exclude=/dirname/bar.ymlAllow negatable for the parse tags option with
--no-parse-tagsand increase thesymfony/consoledependency to version 5.3