-
Notifications
You must be signed in to change notification settings - Fork 102
/
.scrutinizer.yml
90 lines (89 loc) · 2.41 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
84
85
86
87
88
89
90
build:
tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=some-file tests --configuration tests/phpunit.xml'
coverage:
file: 'some-file'
format: 'clover'
environment:
php: 5.6
# nodes:
# tests: true
# analysis:
# tests:
# override:
# -
# command: phpcs-run
# use_website_config: true
nodes:
analysis:
project_setup:
override: true
tests:
override: [php-scrutinizer-run]
checks:
php:
avoid_superglobals: false
check_method_contracts:
verify_interface_like_constraints: true
verify_documented_constraints: true
verify_parent_constraints: true
fix_php_opening_tag: false
remove_php_closing_tag: true
no_exit: false
no_long_variable_names:
maximum: '30'
no_mixed_inline_html: false
parameter_doc_comments: true
psr2_control_structure_declaration: false
require_braces_around_control_structures: false
return_doc_comments: true
security_vulnerabilities: true
simplify_boolean_return: true
filter:
# excluded_paths:
# - admin/sxd/*
excluded_paths:
## Excluding Tests, Specs and Vendor Directories at any Level
- tests/
# - tests/**/*
- tests.int/
# - tests.int/**/*
- vendor/
# - "**/vendor/**/*"
- spec/
# Excluding Sypex Dumper files
- admin/sxd/*
# - **/sxd/
# - "admin/sxd/**/*"
# Excluding minified files
# - "**.min.js"
# - "**.min.css"
# - *.min.js
# - **/**.min.js
# - *.min.css
# - */*/*.min.css
- design/*/*.min.css
- js/*/*.min.js
- js/lib/*
dependency_paths:
- vendor/
coding_style:
php:
indentation:
general:
size: 2
spaces:
around_operators:
concatenation: true
braces:
classes_functions:
class: end-of-line
function: end-of-line
closure: end-of-line
upper_lower_casing:
keywords:
general: lower
constants:
true_false_null: lower