forked from duracelltomi/gtm4wp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
63 lines (63 loc) · 2 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
tools:
php_code_sniffer:
config:
standard: WordPress
sensiolabs_security_checker: true
external_code_coverage:
timeout: 600
build:
environment:
php:
version: 7.2
dependencies:
before:
- composer require --dev johnpbloch/wordpress
- composer require --dev dealerdirect/phpcodesniffer-composer-installer
- composer require --dev squizlabs/php_codesniffer
- composer require --dev wp-coding-standards/wpcs
- composer require --dev phpcompatibility/php-compatibility
- composer require --dev phpcompatibility/phpcompatibility-paragonie
- composer require --dev phpcompatibility/phpcompatibility-wp
- composer require --dev phpunit/phpunit
- composer install --prefer-dist --no-suggest
- composer run-script install-codestandards
nodes:
analysis:
cache:
directories:
- vendor/
tests:
override:
-
command: phpcs-run
use_website_config: true
- php-scrutinizer-run
- js-scrutinizer-run
checks:
php:
avoid_closing_tag: false
avoid_superglobals: false
no_exit: false
psr2_control_structure_declaration: false
variable_existence: false
verify_access_scope_valid: false
verify_argument_usable_as_reference: false
verify_property_names: false
fix_php_opening_tag: false
remove_php_closing_tag: false
no_mixed_inline_html: false
require_braces_around_control_structures: false
security_vulnerabilities: false
coding_standard:
name: WordPress
javascript: true
filter:
paths:
- ./
excluded_paths:
- tests/
- wpcs/
dependency_paths:
- wordpress/
- vendor/
- integration/whichbrowser/