Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Yaml] Avoid using both Input/Output and SymfonyStyle in LintCommand#19160

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

Merged
fabpot merged 1 commit intosymfony:masterfromchalasr:patch_yaml_lintcommand
Jun 29, 2016

Conversation

@chalasr
Copy link
Member

QA
Branch?master
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets~
LicenseMIT
Doc PR~

Fixed some inconsistencies/mistakes from the original YamLintCommand.

@chalasrchalasrforce-pushed thepatch_yaml_lintcommand branch 4 times, most recently from130fa67 to5f7ad81CompareJune 23, 2016 22:05

foreach ($filesInfoas$info) {
if ($info['valid'] &&$output->isVerbose()) {
if ($info['valid'] &&$this->outputCorrectFile) {
Copy link
MemberAuthor

@chalasrchalasrJun 23, 2016
edited
Loading

Choose a reason for hiding this comment

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

Should I check output verbosity too for per-file errors?

Copy link
Member

Choose a reason for hiding this comment

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

No, errors should always be displayed.

Remove input/output from method arguments, use SymfonyStyle insteadAvoid 'error in filename' if no filename as argumentAdd missing array typehint to files argument of display*() methodsStore format option as member rather than pass it in method callsCS fixes
@chalasrchalasrforce-pushed thepatch_yaml_lintcommand branch from5f7ad81 todd84b7fCompareJune 24, 2016 09:18

foreach ($filesInfoas$info) {
if ($info['valid'] &&$output->isVerbose()) {
if ($info['valid'] &&$this->displayCorrectFiles) {

Choose a reason for hiding this comment

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

I would remove thedisplayCorrectFiles property entirely and replace it with$io->isVerbose()

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

@javiereguiluz I was glad to use it, but it make tests failing as the verbosity methods are available since3.1 only, dev requirements are to~2.8|~3.0. Should I up the version bound to~3.1 for that?

Choose a reason for hiding this comment

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

I'm sorry I didn't think about that. Let's keep the property then, even its use looks so limited.

@fabpot
Copy link
Member

Thank you@chalasr.

@fabpotfabpot merged commitdd84b7f intosymfony:masterJun 29, 2016
fabpot added a commit that referenced this pull requestJun 29, 2016
… LintCommand (chalasr)This PR was merged into the 3.2-dev branch.Discussion----------[Yaml] Avoid using both Input/Output and SymfonyStyle in LintCommand| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | ~| License       | MIT| Doc PR        | ~Fixed some inconsistencies/mistakes from the original YamLintCommand.Commits-------dd84b7f [Yaml] Avoid using both Input/Output and SymfonyStyle in LintCommand
@chalasrchalasr deleted the patch_yaml_lintcommand branchJune 29, 2016 07:29
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@chalasr@fabpot@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp