Skip to content

Commit 387429f

Browse files
committed
Move the CI tool configuration files out of the project root
1 parent 37cdb81 commit 387429f

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

.gitattributes

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
/.phive/ export-ignore
66
/Doxyfile export-ignore
77
/bin/ export-ignore
8-
/phpcs.xml export-ignore
9-
/phpstan-baseline.neon export-ignore
10-
/phpstan.neon.dist export-ignore
8+
/config/ export-ignore
119
/phpunit.xml export-ignore
1210
/tests export-ignore

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@
3535
"ci": [
3636
"@ci:static"
3737
],
38-
"ci:php:sniff": "@php ./.phive/phpcs.phar bin src tests",
39-
"ci:php:stan": "@php ./.phive/phpstan.phar",
38+
"ci:php:sniff": "@php ./.phive/phpcs.phar --standard=config/phpcs.xml bin src tests",
39+
"ci:php:stan": "@php ./.phive/phpstan.phar --configuration=config/phpstan.neon",
4040
"ci:static": [
4141
"@ci:php:sniff",
4242
"@ci:php:stan"
4343
],
4444
"fix:php": [
4545
"@fix:php:sniff"
4646
],
47-
"fix:php:sniff": "@php ./.phive/phpcbf.phar bin src tests",
48-
"phpstan:baseline": "@php ./.phive/phpstan.phar --generate-baseline"
47+
"fix:php:sniff": "@php ./.phive/phpcbf.phar --standard=config/phpcs.xml bin src tests",
48+
"phpstan:baseline": "@php ./.phive/phpstan.phar --configuration=config/phpstan.neon --generate-baseline=config/phpstan-baseline.neon"
4949
},
5050
"scripts-descriptions": {
5151
"ci": "Runs all dynamic and static code checks (i.e. currently, only the static checks).",
File renamed without changes.

phpstan-baseline.neon renamed to config/phpstan-baseline.neon

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@ parameters:
33
-
44
message: "#^Call to an undefined method Sabberworm\\\\CSS\\\\OutputFormat\\:\\:setIndentation\\(\\)\\.$#"
55
count: 2
6-
path: src/OutputFormat.php
6+
path: ../src/OutputFormat.php
77

88
-
99
message: "#^Class Sabberworm\\\\CSS\\\\Value\\\\Size constructor invoked with 5 parameters, 1\\-4 required\\.$#"
1010
count: 2
11-
path: src/RuleSet/DeclarationBlock.php
11+
path: ../src/RuleSet/DeclarationBlock.php
1212

1313
-
1414
message: "#^Variable \\$oRule might not be defined\\.$#"
1515
count: 2
16-
path: src/RuleSet/DeclarationBlock.php
16+
path: ../src/RuleSet/DeclarationBlock.php
1717

1818
-
1919
message: "#^Variable \\$oVal might not be defined\\.$#"
2020
count: 1
21-
path: src/Value/CalcFunction.php
21+
path: ../src/Value/CalcFunction.php
2222

2323
-
2424
message: "#^Method Sabberworm\\\\CSS\\\\Value\\\\RuleValueList\\:\\:__construct\\(\\) invoked with 3 parameters, 0\\-2 required\\.$#"
2525
count: 1
26-
path: src/Value/CalcRuleValueList.php
26+
path: ../src/Value/CalcRuleValueList.php
2727

File renamed without changes.

0 commit comments

Comments
 (0)