forked from GravityKit/GravityView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
76 lines (75 loc) · 2.66 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
72
73
74
75
76
filter:
excluded_paths: [tests/*, .tx/*, languages/*, includes/lib/*, bin/*, assets/*, templates/* ]
tools:
external_code_coverage:
timeout: 900 # wait for 15 minutes instead of 5
php_mess_detector:
enabled: true
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
controversial_rules:
camel_case_class_name: false
camel_case_property_name: false
camel_case_method_name: false
camel_case_parameter_name: false
camel_case_variable_name: false
php_code_sniffer: true
sensiolabs_security_checker: true
php_code_coverage: true
php_hhvm: true
php_sim: true # PHP Similarity Analyzer
php_pdepend: true
php_loc:
enabled: true
excluded_dirs: [tests, .tx, languages, includes/lib, bin, assets, templates]
php_cpd:
enabled: true
excluded_dirs: [tests, .tx, languages, includes/lib, bin, assets, templates]
checks:
php:
psr2_switch_declaration: false
psr2_control_structure_declaration: false
psr2_class_declaration: false
one_class_per_file: false
avoid_superglobals: false
require_php_tag_first: false
code_rating: true
duplication: true
variable_existence: true
useless_calls: true
use_statement_alias_conflict: true
unused_variables: false
unused_properties: true
unused_parameters: false
unreachable_code: true
sql_injection_vulnerabilities: true
security_vulnerabilities: true
precedence_mistakes: true
precedence_in_conditions: true
parameter_non_unique: true
no_property_on_interface: true
no_non_implemented_abstract_methods: true
deprecated_code_usage: true
closure_use_not_conflicting: true
closure_use_modifiable: true
avoid_useless_overridden_methods: true
avoid_conflicting_incrementers: true
assignment_of_null_return: true
unused_methods: true
too_many_arguments: true
no_debug_code: true
missing_arguments: true
argument_type_checks: false
no_error_suppression: false
return_doc_comments: false
property_assignments: false
coding_standard:
name: WordPress