forked from pronamic/wp-pronamic-pay-easy-digital-downloads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scrutinizer.yml
60 lines (56 loc) · 1.41 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
build:
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: 'localhost'
project_setup:
before:
- mysql -e "CREATE DATABASE wp_phpunit_tests"
dependencies:
override:
- composer install --ignore-platform-reqs --no-interaction
nodes:
coverage:
tests:
override:
- command: ./vendor/bin/phpunit
coverage:
file: build/logs/clover.xml
format: clover
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