forked from owncloud-archive/contacts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
84 lines (74 loc) · 3.03 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
77
78
79
80
81
82
83
build_failure_conditions:
#- 'elements.rating(<= D).exists' # No classes/methods with a rating of D or worse
- 'elements.rating(<= D).new.exists' # No new classes/methods with a rating of D or worse
- 'issues.label("coding-style").new.exists' # No new coding style issues allowed
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
- 'project.metric("scrutinizer.quality", < 6)' # Code Quality Rating drops below 6
filter:
excluded_paths:
- 'js/modernizr.custom.js'
- 'js/jquery.onfontresize.js'
- 'js/placeholder*'
- 'css/placeholder*'
- 'l10n/*'
- 'templates/*'
- 'vendor/*'
- 'css/jquery*'
- 'css/multi-select.css'
imports:
- php
- javascript
tools:
js_hint:
use_native_config: true
php_mess_detector:
config:
controversial_rules:
camel_case_class_name: true
camel_case_property_name: true
camel_case_method_name: true
camel_case_parameter_name: true
camel_case_variable_name: true
superglobals: false
php_code_sniffer:
config:
sniffs:
generic:
white_space:
disallow_space_indent_sniff: true
# squiz:
# white_space:
# logical_operator_spacing_sniff: false
# language_construct_spacing_sniff: true
# operator_spacing_sniff: true
# control_structure_spacing_sniff: true
# function_spacing_sniff: false
# scope_keyword_spacing_sniff: true
# semicolon_spacing_sniff: true
# object_operator_spacing_sniff: false
# functions:
# lowercase_function_keywords_sniff: true
# commenting:
# class_comment_sniff: true
# doc_comment_alignment_sniff: false
# function_comment_throw_tag_sniff: true
# strings:
# double_quote_usage_sniff: true
# operators:
# valid_logical_operators_sniff: true
# psr1:
# files:
# side_effects_sniff: false
# psr2:
# classes:
# class_declaration_sniff: false
# namespaces:
# namespace_declaration_sniff: true
# pear:
# commenting:
# inline_comment_sniff: true
# control_structures:
# control_signature_sniff: true
# naming_conventions:
# valid_function_name_sniff: true
# valid_class_name_sniff: true