Skip to content
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

Add PHPCS linting #24

Merged
merged 12 commits into from
Jul 19, 2019
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_Store
node_modules
vendor/*
!vendor/composer

Choose a reason for hiding this comment

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

possibly we could ignore these and include them later in a build step

!vendor/abraham
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,12 @@
],
"require": {
"abraham/twitteroauth": "^0.7.4"
},
"require-dev": {
"10up/phpcs-composer": "dev-master"
},
"scripts": {
"lint": "./vendor/bin/phpcs --extensions=php --severity=3 -s .",
"lint-fix": "./vendor/bin/phpcbf ."
}
}
Loading