Skip to content

Commit ef45aa5

Browse files
Merge pull request phpro#645 from Landerstraeten/composer-normalize
Add composer normalize task
2 parents 162fa62 + 26d720c commit ef45aa5

2 files changed

Lines changed: 40 additions & 38 deletions

File tree

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"composer/composer": "^1.8.5",
3636
"friendsofphp/php-cs-fixer": "~2",
3737
"jakub-onderka/php-parallel-lint": "^0.9.2",
38+
"localheinz/composer-normalize": "^1.2",
3839
"nikic/php-parser": "^3.0",
3940
"phpspec/phpspec": "^5.1",
4041
"phpunit/phpunit": "^7.5.12",

grumphp.yml.dist

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,43 @@ parameters:
33
git_dir: "."
44
process_timeout: 120
55
tasks:
6-
phpcs:
7-
standard: PSR2
8-
ignore_patterns:
9-
- "spec/*Spec.php"
10-
- "test/*.php"
11-
metadata:
12-
priority: 300
13-
phpspec:
14-
format: progress
15-
verbose: true
16-
metadata:
17-
priority: 200
18-
phpunit:
19-
testsuite: Unit
20-
metadata:
21-
priority: 100
22-
composer:
23-
no_check_lock: true
24-
yamllint:
25-
ignore_patterns:
26-
- "#test/(.*).yml#"
27-
phplint: ~
28-
phpparser:
29-
visitors:
30-
no_exit_statements: ~
31-
never_use_else: ~
32-
forbidden_function_calls:
33-
blacklist: [var_dump]
34-
metadata:
35-
priority: 100000
36-
paratest:
37-
testsuite: E2E
38-
verbose: true
39-
functional: true
40-
metadata:
41-
priority: 50
6+
phpcs:
7+
standard: PSR2
8+
ignore_patterns:
9+
- "spec/*Spec.php"
10+
- "test/*.php"
11+
metadata:
12+
priority: 300
13+
phpspec:
14+
format: progress
15+
verbose: true
16+
metadata:
17+
priority: 200
18+
phpunit:
19+
testsuite: Unit
20+
metadata:
21+
priority: 100
22+
composer:
23+
no_check_lock: true
24+
composer_normalize: ~
25+
yamllint:
26+
ignore_patterns:
27+
- "#test/(.*).yml#"
28+
phplint: ~
29+
phpparser:
30+
visitors:
31+
no_exit_statements: ~
32+
never_use_else: ~
33+
forbidden_function_calls:
34+
blacklist: [var_dump]
35+
metadata:
36+
priority: 100000
37+
paratest:
38+
testsuite: E2E
39+
verbose: true
40+
functional: true
41+
metadata:
42+
priority: 50
4243
testsuites:
43-
git_pre_commit:
44-
tasks: [phpcs, phpspec, phpunit, composer, yamllint, phplint, phpparser]
44+
git_pre_commit:
45+
tasks: [phpcs, phpspec, phpunit, composer, composer_normalize, yamllint, phplint, phpparser]

0 commit comments

Comments
 (0)