-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathgrumphp.yml
More file actions
44 lines (39 loc) · 1.01 KB
/
grumphp.yml
File metadata and controls
44 lines (39 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
grumphp:
stop_on_failure: true
ignore_unstaged_changes: false
tasks:
# Composer Validation
composer:
file: ./composer.json
no_check_all: true
no_check_lock: false
no_check_publish: false
no_local_repository: false
with_dependencies: false
strict: false
# PHP Syntax Check + Code Style (Laravel Pint)
shell:
scripts:
- ['-c', 'vendor/bin/parallel-lint -p php --exclude vendor --exclude build --exclude storage src/ tests/']
- ['-c', 'vendor/bin/pint --test --dirty']
# Static Analysis (PHPStan)
phpstan:
autoload_file: ~
configuration: phpstan.neon.dist
level: null # Use config file
force_patterns: []
ignore_patterns: []
triggered_by: ['php']
memory_limit: "1G"
use_grumphp_paths: false
# Environment-specific settings
testsuites:
git_pre_commit:
tasks:
- composer
- shell
git_pre_push:
tasks:
- composer
- shell
- phpstan