Skip to content

Enable PHP CS fixer on Scrutinizer #163

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
Dec 2, 2014
Merged

Enable PHP CS fixer on Scrutinizer #163

merged 2 commits into from
Dec 2, 2014

Conversation

ddeboer
Copy link
Member

@ddeboer ddeboer commented Nov 22, 2014

Noticed some CS errors. Does this help to fix them automatically?

config:
standard: PSR2

checks:
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to whitelist explicitly? seems a bit cumbersome, especially when new options are added we would need to add them here too...

Copy link
Member Author

Choose a reason for hiding this comment

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

It seems adding checks is required if you want to add certain extra, but not all, checks. Scrutinizer now recommends this over configuring the separate tools.

@dbu
Copy link
Contributor

dbu commented Nov 24, 2014

i doubt that scrutinizer will change the contents of a PR. but it could discover issues we have.

or we just run the phpcs occasionally on our codebase and commit the fixes.

@dbu
Copy link
Contributor

dbu commented Nov 24, 2014

alright, then i am fine with this. we just go really down on the scrutinizer grade. can you squash these commits, then run fabpot/phpcsfixer and check scrutinizer if it still discovers things and check if we need to fix those too?

btw, do you plan to do the same on the library?

@dbu
Copy link
Contributor

dbu commented Nov 27, 2014

@ddeboer ping?

Add checks

Set phpcs to PSR2

Run php-cs-fixer
dbu added a commit that referenced this pull request Dec 2, 2014
Enable PHP CS fixer on Scrutinizer
@dbu dbu merged commit 385ba07 into master Dec 2, 2014
@dbu dbu deleted the cs-fixer branch December 2, 2014 16:33
@dbu
Copy link
Contributor

dbu commented Dec 2, 2014

thanks. lots of cleanup!

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