Skip to content

Commit

Permalink
Merge pull request #128 from basz/adds-php-cs-fixer
Browse files Browse the repository at this point in the history
Add support for `.php-cs-fixer.dist.php` file when determining whether to run `php-cs-fixer` or not
  • Loading branch information
Ocramius committed Sep 5, 2022
2 parents 11412b3 + c38d114 commit 6e70671
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default function createTools(config: Config): Array<Tool> {
executionType : ToolExecutionType.STATIC,
name : 'PHP CS Fixer',
command : './vendor/bin/php-cs-fixer fix -v --diff --dry-run',
filesToCheck : [ '.php-cs-fixer.php' ],
filesToCheck : [ '.php-cs-fixer.php', '.php-cs-fixer.dist.php' ],
toolType : ToolType.CODE_CHECK,
}
]
Expand Down
3 changes: 3 additions & 0 deletions tests/code-check-phpcsfixer-php-dist/.laminas-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"stablePHP": "7.4"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php
10 changes: 10 additions & 0 deletions tests/code-check-phpcsfixer-php-dist/matrix.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"include": [
{
"name": "PHP CS Fixer [7.4, latest]",
"job": "{\"command\":\"./vendor/bin/php-cs-fixer fix -v --diff --dry-run\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}",
"operatingSystem": "ubuntu-latest",
"action": "laminas/laminas-continuous-integration-action@v1"
}
]
}

0 comments on commit 6e70671

Please sign in to comment.