-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpci.yml
50 lines (46 loc) · 1.35 KB
/
phpci.yml
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
build_settings:
verbose: true
ignore:
- "vendor"
- "Tests"
- "PHPCI/*/phpmailer"
- "PHPCI/*/depricated"
- "PHPCI/Command" # PHPMD complains about un-used parameters, but they are required.
- "public/install.php" # PHPCS really doesn't like PHP mixed with HTML (and so it shouldn't)
- "PHPCI/Migrations" # Ignore the migrations directory, as both PHPMD and PHPCS can't cope with them.
- "PHPCI/Model/Base" # These files are auto-generated, and sometimes hit PHPMD complexity thresholds.
- "PHPCI/Languages" # PHPCS fails on character counts for non-Latin languages
- "public/assets" # If there are any PHP files in here, we didn't write them.
test:
php_code_sniffer:
allowed_warnings: -1
allowed_errors: -1
standard: "PSR1,PSR2"
allow_failures: true
php_mess_detector:
allowed_warnings: -1
rules:
- "cleancode"
- "controversial"
- "codesize"
- "design"
- "naming"
- "unusedcode"
zero_config: true
php_parallel_lint:
extensions: php, html
allow_failures: true
#php_cpd:
# standard: "PSR2"
#php_cs_fixer:
# verbose: true
# diff: true
# level: "psr2"
complete:
email:
committer: true
cc: ["[email protected]"]
broken:
email:
committer: true
cc: ["[email protected]"]