Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Yaml] Add bin/lint for using the LintCommand #19916

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

Closed
wants to merge 1 commit into from

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Sep 12, 2016

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

In #19139 we moved the lint:yaml command from the FrameworkBundle to the Yaml component.
The usage did not change in the framework, the old command became a child of the Yaml one.

But now, using this command in the standalone Yaml requires to create an application. Here I propose to provide the application as an executable, so that the command is really usable directly when installing the yaml+console components as dependencies.

I may be wrong when I think it's worth it but to me, moving the command to the yaml component doesn't fully make sense if it cannot be used directly outside of the full stack framework.

@fabpot
Copy link
Member

fabpot commented Sep 12, 2016

I think I'm slightly 👎 on adding a script here. This is a component, so it gives you building blocks that you can assemble the way you want. What others think? ping @symfony/deciders

@chalasr
Copy link
Member Author

chalasr commented Sep 12, 2016

I think you're right, adding such example to the documentation should be enough for the use case.

@chalasr chalasr closed this Sep 12, 2016
@fabpot
Copy link
Member

fabpot commented Sep 12, 2016

@chalasr Can you submit a doc PR then? That sounds indeed very useful to have this in the docs.

@chalasr
Copy link
Member Author

chalasr commented Sep 12, 2016

See symfony/symfony-docs#6963

@chalasr chalasr deleted the yaml/lint branch September 14, 2016 23:11
xabbuh added a commit to symfony/symfony-docs that referenced this pull request Nov 28, 2016
…luz)

This PR was submitted for the master branch but it was merged into the 3.2 branch instead (closes #6963).

Discussion
----------

[Yaml] Add lint:yaml command usage

This documents symfony/symfony#19139 (merged on 3.2) and closes symfony/symfony#19916.

Commits
-------

ed4cb40 Remove an unneeded code directive
44b4ad0 Use `terminal` instead of `bash` for console code
78075c1 Yaml] Add lint:yaml command usage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants