-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.phpqa.yml
More file actions
93 lines (73 loc) · 1.68 KB
/
Copy path.phpqa.yml
File metadata and controls
93 lines (73 loc) · 1.68 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# PHPQA Configuration
# This file configures the PHP Quality Analyzer tool
# Run with: composer phpqa or composer qa:check
# Directories to analyze
analyzedDirs: lib
# Build directory for reports
buildDir: phpqa
# Ignore patterns
ignoredDirs:
- vendor
- node_modules
- tests
- build
- coverage
- phpmetrics
ignoredFiles: []
# Tools configuration
tools:
# PHP CodeSniffer - Coding standards
phpcs:
standard: phpcs.xml
reports:
- full
- summary
ignoreWarnings: false
# PHP Mess Detector - Code quality
phpmd:
ruleset: phpmd.xml
# PHP Lines of Code - Code metrics
phploc:
enabled: true
# PHP Metrics - Complexity and maintainability
phpmetrics:
enabled: true
config:
- '--report-html=phpqa/phpmetrics'
- '--report-json=phpqa/phpmetrics/metrics.json'
# PHP Copy/Paste Detector - Duplicate code
phpcpd:
enabled: true
minLines: 5
minTokens: 70
# Parallel Lint - Syntax checking
parallel-lint:
enabled: true
exclude:
- vendor
- node_modules
# Security Checker - Check for known vulnerabilities
security-checker:
enabled: false # Requires composer.lock
# Report configuration
report:
# Create HTML report
html: true
# Create CLI output
cli: true
# File formats
file:
# JSON report with all data
json: phpqa/phpqa.json
# Offline HTML report
offline: phpqa/phpqa-offline.html
# Execution configuration
execution:
# Number of parallel processes
parallel: 4
# Timeout per tool in seconds
timeout: 300
# Thresholds - Set to 0 to report but not fail
allowedErrorsCount: 0
# Verbose output
verbose: false