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

Skip to content

[Yaml] Added support for multiple files or directories in LintCommand #28521

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

Merged
merged 1 commit into from
Sep 21, 2018

Conversation

yceruto
Copy link
Member

@yceruto yceruto commented Sep 19, 2018

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #28498
License MIT
Doc PR symfony/symfony-docs#10367

@@ -74,7 +74,8 @@
"symfony/translation": "<4.2",
"symfony/twig-bridge": "<4.1.1",
"symfony/validator": "<4.1",
"symfony/workflow": "<4.1"
"symfony/workflow": "<4.1",
"symfony/yaml": "<=4.2"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<4.2

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, but still:

  • Installing symfony/yaml (4.2.x-dev): Downloading (100%)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which mean it worked actually

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fails before the last commit https://travis-ci.org/symfony/symfony/jobs/430972569#L2994

@nicolas-grekas
Copy link
Member

nicolas-grekas commented Sep 20, 2018

On master, deps=high failures mean the PR breaks 4.1 when used with deps at 4.2 - this should be fixed somehow (yes, that's the big downside of moving things to components: we now have to deal with cross deps compat...)

@stof
Copy link
Member

stof commented Sep 20, 2018

Well, here, the issue is only related to the way our CommandTester works. Turning an argument into an array argument is a BC break for tests, because the argument now has to be provided as an array, while there is no BC break when running the command in the CLI.

And as FrameworkBundle extends the command and has tests for its child class, it is affected by this change in the argument definition of the component.

@yceruto
Copy link
Member Author

yceruto commented Sep 20, 2018

Could be an alternative to do this in the command $filenames = (array) $input->getArgument('filename'); and revert all changes in tests?

@chalasr
Copy link
Member

chalasr commented Sep 20, 2018

@yceruto you mean reverting the argument type to OPTIONAL and parsing $filenames in the command itself? I don't think it's a good alternative

@chalasr chalasr added this to the next milestone Sep 20, 2018
@yceruto yceruto force-pushed the lint-yaml-cmd-feat branch 2 times, most recently from 4ef5274 to 11a6498 Compare September 20, 2018 12:26
Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it :)

symfony-splitter pushed a commit to symfony/translation that referenced this pull request Sep 21, 2018
…ctories in XliffLintCommand (yceruto)

This PR was squashed before being merged into the 4.2-dev branch (closes #28522).

Discussion
----------

[Translation] Added support for multiple files or directories in XliffLintCommand

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | symfony/symfony-docs#10368

Same approach of symfony/symfony#28521

Commits
-------

88ec37bed7 [Translation] Added support for multiple files or directories in XliffLintCommand
nicolas-grekas added a commit that referenced this pull request Sep 21, 2018
…ctories in XliffLintCommand (yceruto)

This PR was squashed before being merged into the 4.2-dev branch (closes #28522).

Discussion
----------

[Translation] Added support for multiple files or directories in XliffLintCommand

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | symfony/symfony-docs#10368

Same approach of #28521

Commits
-------

88ec37b [Translation] Added support for multiple files or directories in XliffLintCommand
@nicolas-grekas
Copy link
Member

Thank you @yceruto.

@nicolas-grekas nicolas-grekas merged commit d0f7950 into symfony:master Sep 21, 2018
nicolas-grekas added a commit that referenced this pull request Sep 21, 2018
… in LintCommand (yceruto)

This PR was squashed before being merged into the 4.2-dev branch (closes #28521).

Discussion
----------

[Yaml] Added support for multiple files or directories in LintCommand

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #28498
| License       | MIT
| Doc PR        | symfony/symfony-docs#10367

Commits
-------

d0f7950 [Yaml] Added support for multiple files or directories in LintCommand
@yceruto yceruto deleted the lint-yaml-cmd-feat branch September 21, 2018 11:06
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Sep 21, 2018
…ries (yceruto, javiereguiluz)

This PR was merged into the master branch.

Discussion
----------

[Yaml] Documenting support for multiple files or directories

See symfony/symfony#28521

Commits
-------

23f6465 Added the versionadded directive
6cf8bef typo
a5546a6 adding missing "or"
1513f22 Added support for multiple files or directories
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.2 Nov 1, 2018
This was referenced Nov 3, 2018
SerhiyMytrovtsiy added a commit to SerhiyMytrovtsiy/translation that referenced this pull request Oct 19, 2022
…ctories in XliffLintCommand (yceruto)

This PR was squashed before being merged into the 4.2-dev branch (closes #28522).

Discussion
----------

[Translation] Added support for multiple files or directories in XliffLintCommand

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | symfony/symfony-docs#10368

Same approach of symfony/symfony#28521

Commits
-------

88ec37bed7 [Translation] Added support for multiple files or directories in XliffLintCommand
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.

7 participants