This repository has been archived by the owner on Aug 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scrutinizer.yml
71 lines (62 loc) · 1.56 KB
/
.scrutinizer.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
coverage:
tests:
override:
- command: ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
coverage:
file: build/logs/clover.xml
format: clover
environment:
php: 7.3.0
variables:
WP_TESTS_DB_NAME: 'wp_phpunit_tests'
WP_TESTS_DB_USER: 'root'
WP_TESTS_DB_PASS: ''
WP_TESTS_DB_HOST: '127.0.0.1'
services:
mysql: 5.7
dependencies:
override:
- composer install --ignore-platform-reqs --no-interaction
project_setup:
before:
- mysql -e "CREATE DATABASE wp_phpunit_tests"
filter:
excluded_paths:
# Exclude the external `xmlseclibs.php` library.
- 'includes/xmlseclibs/*'
checks:
php:
coding_standard:
name: WordPress
code_rating: true
duplication: true
build_failure_conditions:
- 'issues.label("bug").exists'
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
around_operators:
unary_additive: true
concatenation: true
negation: true
within:
brackets: false
array_initializer: true
grouping: true
function_call: true
function_declaration: true
if: true
for: true
while: true
switch: true
catch: true
type_cast: false