Skip to content

Commit 11412b3

Browse files
authored
Merge pull request #127 from basz/adds-php-cs-fixer
Add php-cs-fixer to the default set of tools, when configuration for it is detected
2 parents 84fdcac + 1459227 commit 11412b3

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

src/tools.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,13 @@ export default function createTools(config: Config): Array<Tool> {
115115
command : './vendor/bin/codecept run',
116116
filesToCheck : [ 'codeception.yml.dist', 'codeception.yml' ],
117117
toolType : ToolType.CODE_CHECK,
118+
},
119+
{
120+
executionType : ToolExecutionType.STATIC,
121+
name : 'PHP CS Fixer',
122+
command : './vendor/bin/php-cs-fixer fix -v --diff --dry-run',
123+
filesToCheck : [ '.php-cs-fixer.php' ],
124+
toolType : ToolType.CODE_CHECK,
118125
}
119126
]
120127
// Remove all tools which do not need to run
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)