-
Notifications
You must be signed in to change notification settings - Fork 57
/
.scrutinizer.yml
70 lines (64 loc) · 1.88 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
# Hosts all your test and deployment configuration.
# https://scrutinizer-ci.com/docs/configuration/build
build:
nodes:
analysis:
dependencies:
before:
# If Wordpress itself is not a dependency of your project, Scrutinizer will not recognize WP project.
- 'composer require --dev johnpbloch/wordpress'
project_setup:
override: true
tests:
override:
- php-scrutinizer-run --enable-security-analysis
# Allows to customize how your code is analyzed.
checks:
php:
verify_argument_usable_as_reference: false
verify_property_names: false
no_global_keyword: false
psr2_class_declaration: false
avoid_superglobals: false
one_class_per_file: false
code_rating: true
no_exit: false
side_effects_or_types: false
coding_standard:
name: WordPress
# Defines which files to analyze.
filter:
dependency_paths:
- wordpress/
excluded_paths:
- "tmp/"
- "vendor/"
- "node_modules/"
# Defines how your code should generally look like.
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
around_operators:
concatenation: true
negation: true
within:
brackets: true
grouping: true
function_call: true
function_declaration: true
if: true
for: true
while: true
switch: true
catch: true
type_cast: true
tools:
sensiolabs_security_checker: true
# external_code_coverage: true
php_code_sniffer:
config:
# https://scrutinizer-ci.com/docs/tools/php/code-sniffer/standards
standard: "WordPress"