Skip to content

Commit

Permalink
Update coding-standard to major version 3
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Jun 10, 2021
1 parent 2cb75c2 commit 3fb14f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ vendor-bin/**/composer.lock
/config/autoconfig.php
clover.xml
/tests/output
.php-cs-fixer.cache

# old php-cs-fixer v2 files
.php_cs.cache
.php_cs

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,13 @@ test-acceptance-webui: $(acceptance_test_deps)

.PHONY: test-php-style
test-php-style: vendor-bin/owncloud-codestyle/vendor vendor-bin/php_codesniffer/vendor
$(PHP_CS_FIXER) fix -v --diff --diff-format udiff --allow-risky yes --dry-run
$(PHP_CS_FIXER) fix -v --diff --allow-risky yes --dry-run
$(PHP_CODESNIFFER) --cache --runtime-set ignore_warnings_on_exit --standard=phpcs.xml tests/acceptance tests/TestHelpers
php build/OCPSinceChecker.php

.PHONY: test-php-style-fix
test-php-style-fix: vendor-bin/owncloud-codestyle/vendor
$(PHP_CS_FIXER) fix -v --diff --diff-format udiff --allow-risky yes
$(PHP_CS_FIXER) fix -v --diff --allow-risky yes

.PHONY: test-php-phan
test-php-phan: vendor-bin/phan/vendor
Expand Down
3 changes: 1 addition & 2 deletions vendor-bin/owncloud-codestyle/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"require": {
"owncloud/coding-standard": "^2.0"
"owncloud/coding-standard": "^3.0"
}
}

0 comments on commit 3fb14f9

Please sign in to comment.