Skip to content

Extend styleci config to check more code style rules #666

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
Feb 18, 2018

Conversation

acrobat
Copy link
Collaborator

@acrobat acrobat commented Dec 16, 2017

Use the recommended preset to add some more code style checks.

Btw pr/issue 666 😱

.styleci.yml Outdated
- return
disabled:
- align_double_arrow
- concat_without_spaces
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you want to also turn on concat_with_spaces?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes let's do that!

.styleci.yml Outdated
disabled:
- align_double_arrow
- concat_without_spaces
- no_multiline_whitespace_before_semicolons
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a less aggressive version of this fixer you might want to replace it with. I can't remember it's name, but I think it does something along the lines of removing the whitespace, but not in multiline contexts.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do you mean this one "no_singleline_whitespace_before_semicolons" ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeh, that sounds right. :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So I keep this one disabled and enable the singleline one, right?

@GrahamCampbell
Copy link
Contributor

Also, might be an idea to hold off on these changes, until the PHP 7 PR has gone through, or not to commit the CS changes in this PR?

@acrobat
Copy link
Collaborator Author

acrobat commented Dec 16, 2017

I thought it would be good to do these CS changes here and let the php7 pr rebase when this is merged. This way that pr has less changes, more relevant changes and makes it easier to review imo.

@GrahamCampbell
Copy link
Contributor

Since the changes in this PR are autogenerated, I think this one should wait tbh.

@acrobat acrobat force-pushed the styleci-tweaks branch 2 times, most recently from 72a004d to 66b9fe4 Compare December 16, 2017 23:02
@acrobat
Copy link
Collaborator Author

acrobat commented Jan 11, 2018

@Nyholm any remarks/objections before merging this? I thinks we agreed on splitting the php 7 pr, so this one can be merged before.

@acrobat acrobat merged commit 3459919 into KnpLabs:master Feb 18, 2018
@acrobat acrobat deleted the styleci-tweaks branch February 18, 2018 19:56
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.

2 participants