-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### New features * new github action: php cs ### Improvements * massive code-style fix
- Loading branch information
Showing
23 changed files
with
615 additions
and
465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Analysis | ||
on: pull_request | ||
|
||
jobs: | ||
build: | ||
name: Analysis | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: PHP CodeSniffer | ||
run: | | ||
composer global require "squizlabs/php_codesniffer=*" \ | ||
--no-interaction --prefer-dist --ignore-platform-reqs --quiet | ||
~/.composer/vendor/bin/phpcs --config-set colors 1 | ||
~/.composer/vendor/bin/phpcs \ | ||
--extensions=php \ | ||
--standard=./dev/phpcs/ruleset.xml \ | ||
./src -s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="OrderManagerDefaultPHPCS"> | ||
<description>Order Manage rDefault PHP Code Sniffer ruleset.</description> | ||
<rule ref="PSR2" /> | ||
<rule ref="Squiz.Strings.ConcatenationSpacing"> | ||
<properties> | ||
<property name="spacing" value="1" /> | ||
<property name="ignoreNewlines" value="true" /> | ||
</properties> | ||
</rule> | ||
</ruleset> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
docker-compose exec -u www-data php \ | ||
./vendor/bin/phpcs --config-set colors 1 | ||
|
||
docker-compose exec -u www-data php \ | ||
./vendor/bin/phpcs \ | ||
--extensions=php \ | ||
--standard=./dev/phpcs/ruleset.xml \ | ||
./src -s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.