Skip to content

Commit 6e70671

Browse files
authored
Merge pull request #128 from basz/adds-php-cs-fixer
Add support for `.php-cs-fixer.dist.php` file when determining whether to run `php-cs-fixer` or not
2 parents 11412b3 + c38d114 commit 6e70671

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

src/tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export default function createTools(config: Config): Array<Tool> {
120120
executionType : ToolExecutionType.STATIC,
121121
name : 'PHP CS Fixer',
122122
command : './vendor/bin/php-cs-fixer fix -v --diff --dry-run',
123-
filesToCheck : [ '.php-cs-fixer.php' ],
123+
filesToCheck : [ '.php-cs-fixer.php', '.php-cs-fixer.dist.php' ],
124124
toolType : ToolType.CODE_CHECK,
125125
}
126126
]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"stablePHP": "7.4"
3+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"include": [
3+
{
4+
"name": "PHP CS Fixer [7.4, latest]",
5+
"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\":[]}",
6+
"operatingSystem": "ubuntu-latest",
7+
"action": "laminas/laminas-continuous-integration-action@v1"
8+
}
9+
]
10+
}

0 commit comments

Comments
 (0)