Skip to content

Commit

Permalink
Added cs scripts to composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
shudd3r committed Aug 10, 2022
1 parent a5b01e2 commit 31f8ab5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,12 @@
"squizlabs/php_codesniffer": "^3.7.1",
"phpunit/phpunit": "^9.5.21",
"php-coveralls/php-coveralls": "^2.5.2"
},
"scripts": {
"test-cs": [
"php-cs-fixer --dry-run -v --config=cs-fixer.php.dist --path-mode=intersection fix src tests",
"phpcs --extensions=php --standard=phpcs.xml.dist src",
"phpcs --extensions=php --standard=phpcs.xml.dist --ignore=*/CodeSamples/* tests"
]
}
}

0 comments on commit 31f8ab5

Please sign in to comment.