Skip to content

Commit

Permalink
Switch to local php-cs-fixer installation to be more regularly up to …
Browse files Browse the repository at this point in the history
…date
  • Loading branch information
tigitz committed Nov 21, 2021
1 parent 97e889c commit f5ce104
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
/docs export-ignore
/docker export-ignore
/docker-compose.yml export-ignore
/tools export-ignore
/Makefile export-ignore
/phpstan.neon export-ignore
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ ti: vendor
vendor:
$(COMPOSER) update $(DEPS_STRATEGY)

PHP_CS_FIXER = docker pull cytopia/php-cs-fixer:latest-php7.4 && docker run --rm -t -v `pwd`:/data cytopia/php-cs-fixer:latest-php7.4
PHP_CS_FIXER = docker-compose run --rm -T php tools/php-cs-fixer/vendor/bin/php-cs-fixer fix -vv --allow-risky=yes

phpcs:
$(PHP_CS_FIXER) fix -vv --dry-run --allow-risky=yes
PHP_VERSION=7.4 docker-compose run --rm -T php composer require --working-dir=tools/php-cs-fixer friendsofphp/php-cs-fixer
PHP_VERSION=7.4 $(PHP_CS_FIXER) --dry-run

phpcbf:
$(PHP_CS_FIXER) fix -vv --allow-risky=yes
$(PHP_CS_FIXER)

phpstan: vendor
$(EXEC_PHP) vendor/bin/phpstan analyse src -c phpstan.neon -a vendor/autoload.php
Expand Down
2 changes: 1 addition & 1 deletion tests/Spellchecker/IspellTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function testSpellcheckFromFakeBinaries(): void

public function testGetSupportedLanguagesFromFakeBinaries(): void
{
$this->assertWorkingSupportedLanguages(self::FAKE_BINARIES_PATH, self:: FAKE_BINARIES_PATH);
$this->assertWorkingSupportedLanguages(self::FAKE_BINARIES_PATH, self::FAKE_BINARIES_PATH);
}

public function testBadCheckRequest(): void
Expand Down
Empty file added tools/php-cs-fixer/.gitkeep
Empty file.

0 comments on commit f5ce104

Please sign in to comment.