Skip to content

Code Style #821

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 2 commits into from
Jan 11, 2020
Merged

Code Style #821

merged 2 commits into from
Jan 11, 2020

Conversation

GrahamCampbell
Copy link
Contributor

Replaces #817.

@acrobat
Copy link
Collaborator

acrobat commented Nov 1, 2019

I wouldn't actually remove the php_cs config, but make it as close as possible to the styleci config. This will allow users to run php-cs-fixer locally before committing/creating a PR and actually have the code style correctly applied.

Styleci will catch the remaning issues and make sure PR's don't get merged with code style issues.

@GrahamCampbell
Copy link
Contributor Author

I disagree with the sentiment of making contributors care about code style. StyleCI is there to automatically fix it for maintainers.

@kubawerlos
Copy link
Contributor

@acrobat it's one way or another - PHP CS Fixer with it's config or relying on Style CI - having both is IMHO the worst solution.

This will allow users to run php-cs-fixer locally before committing/creating a PR

And that's why I prefer having PHP CS Fixer in the repo, so code style can be fixed before merging PR, not after.

Copy link
Contributor

@kubawerlos kubawerlos left a comment

Choose a reason for hiding this comment

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

Can you also remove PHP CS Fixer's cache from .gitignore?

@GrahamCampbell
Copy link
Contributor Author

Ping.

@kubawerlos
Copy link
Contributor

Pong.

What about the question above "ping"?

@GrahamCampbell
Copy link
Contributor Author

I'm no longer able to edit this PR.

@GrahamCampbell
Copy link
Contributor Author

And keeping the cache file ignored is fine. I don't think we should remove this, otherwise when someone does a git pull, they may accidentality commit the cache file.

Copy link
Contributor

@kubawerlos kubawerlos left a comment

Choose a reason for hiding this comment

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

they may accidentality commit the cache file

sounds like a cheap excuse for bearing lazy ;)

@GrahamCampbell
Copy link
Contributor Author

Ping @acrobat. :)

@acrobat
Copy link
Collaborator

acrobat commented Jan 11, 2020

Sorry I've lost track of this PR! Thanks @GrahamCampbell!

@acrobat acrobat merged commit f369120 into KnpLabs:master Jan 11, 2020
@kubawerlos
Copy link
Contributor

@GrahamCampbell what should happen after the merge to fix the failing job https://github.styleci.io/analyses/YjOWdv?

@GrahamCampbell
Copy link
Contributor Author

StyleCI sends over a PR to be merged. It looks like it was closed.

@GrahamCampbell
Copy link
Contributor Author

#840

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants