Skip to content

Commit

Permalink
build(PHPCS): rename ruleset file
Browse files Browse the repository at this point in the history
Add syntax and coding style check to CI (#223)

* Add syntax and coding style check to CI

* Rename PHPCS config

...to make it discoverable

* PHPCS ruleset file rename also in npm

* Run php lint from npm

* Update .scrutinizr.yml

* ci(scrutinizr): adjust ruleset name

Co-authored-by: Dominik Tränklein <[email protected]>
  • Loading branch information
szepeviktor and domtra authored Feb 26, 2020
1 parent c9a369d commit 87fc1bc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .scrutinizr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tools:
php_code_sniffer:
enabled: true
config:
ruleset: ./phpcs.ruleset.xml
ruleset: ./phpcs.xml.dist
standard: custom
filter:
paths: [./*]
Expand All @@ -31,5 +31,5 @@ tools:
checks:
php:
custom_coding_standard:
ruleset_path: phpcs.ruleset.xml
ruleset_path: phpcs.xml.dist
javascript: true
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ before_script:
- npm i

script:
- find . -type f -not -path './node_modules/*' -not -path './vendor/*' -not -path './dist/*' -name '*.php' -print0|xargs -0 -L1 -P4 -- php -l
- npm run lint
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"lint": "run-p --silent lint:*",
"lint:scripts": "cross-env eslint '**/*.js'",
"lint:styles": "cross-env stylelint '**/*.scss'",
"lint:php": "cross-env ./vendor/bin/phpcs --standard=phpcs.ruleset.xml",
"lint:php": "cross-env ./vendor/bin/phpcs",
"lint:scripts:fix": "cross-env eslint '**/*.js' --fix",
"lint:styles:fix": "cross-env stylelint '**/*.scss' --fix",
"lint:php:fix": "cross-env ./vendor/bin/phpcbf --standard=phpcs.ruleset.xml",
"lint:php:fix": "cross-env ./vendor/bin/phpcbf",
"release": "standard-version -a",
"releaseGithub": "conventional-github-releaser -p angular"
},
Expand Down
File renamed without changes.

0 comments on commit 87fc1bc

Please sign in to comment.