This repository has been archived by the owner on Aug 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.scrutinizer.yml
62 lines (58 loc) · 1.67 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
imports:
- javascript
- php
filter:
excluded_paths:
- 'vendor/*'
- 'application/language/*'
- 'application/migrations/*'
- 'application/models/Tracker/Sites/*' #FIXME: We aren't currently doing site tests through Travis.
- 'application/tests/*'
- 'application/third_party/*'
- 'public/assets/vendor/*'
- 'public/assets/js/compiled.min.js'
- 'public/assets/css/*'
checks:
php:
uppercase_constants: true
align_assignments: false #preferably we'd have this as true, but it doesn't like line breaks
avoid_usage_of_logical_operators: false
no_commented_out_code: false
one_class_per_file: false
side_effects_or_types: false
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
before_parentheses:
if: false
for: false
while: false
switch: false
catch: false
braces:
classes_functions:
class: end-of-line
function: end-of-line
closure: end-of-line
if:
opening: end-of-line
for:
opening: end-of-line
while:
opening: end-of-line
do_while:
opening: end-of-line
switch:
opening: end-of-line
try:
opening: end-of-line
upper_lower_casing:
keywords:
general: lower
constants:
true_false_null: upper
tools:
external_code_coverage: true