-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.scrutinizer.yml
67 lines (66 loc) · 2.63 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
filter:
excluded_paths: [vendor/*, tests/*, .tx/*, languages/*, includes/libs/facebook/*, includes/libs/bitly/*, includes/libs/linkedin/*, includes/libs/twitter/*, includes/libs/OAuth.php, bin/*, fonts/*, images/*, scripts/* ]
before_commands:
- 'composer install --dev --prefer-source'
tools:
external_code_coverage:
timeout: 900 # wait for 15 minutes instead of 5
php_mess_detector:
config:
code_size_rules:
cyclomatic_complexity: false
npath_complexity: false
excessive_method_length: false
excessive_class_length: false
excessive_parameter_list: false
excessive_public_count: false
too_many_fields: false
too_many_methods: false
excessive_class_complexity: false
php_code_sniffer:
config:
standard: "WordPress"
sensiolabs_security_checker: true
php_code_coverage: true
php_pdepend: true
php_loc:
enabled: true
excluded_dirs: [vendor, tests, .tx, languages, includes/libs/bitly, includes/libs/facebook, includes/libs/linkedin, includes/libs/twitter, bin, assets, templates, includes/EDD_SL_Plugin_Updater.php]
php_cpd:
enabled: true
excluded_dirs: [vendor, tests, .tx, languages, includes/libs/bitly, includes/libs/facebook, includes/libs/linkedin, includes/libs/twitter, bin, assets, templates, includes/EDD_SL_Plugin_Updater.php]
checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: false
one_class_per_file: false
side_effects_or_types: false
no_mixed_inline_html: false
require_braces_around_control_structures: false
php5_style_constructor: false
no_global_keyword: false
avoid_usage_of_logical_operators: false
psr2_class_declaration: false
no_underscore_prefix_in_properties: false
no_underscore_prefix_in_methods: false
blank_line_after_namespace_declaration: false
single_namespace_per_use: false
psr2_switch_declaration: false
psr2_control_structure_declaration: false
avoid_superglobals: false
security_vulnerabilities: false
no_exit: false
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
before_parentheses:
closure_definition: true
around_operators:
negation: true
within:
array_initializer: true
function_call: true
function_declaration: true