This repository has been archived by the owner on Dec 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scrutinizer.yml
105 lines (105 loc) · 5.77 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
filter:
excluded_paths:
- 'vendor/*'
- 'tests/TestCase.php'
- 'tests/codeception/_support/*'
- 'tests/codeception/acceptance/AcceptanceTester.php'
- 'tests/codeception/functional/FunctionalTester.php'
- 'tests/codeception/unit/UnitTester.php'
- 'app/storage/*'
- '_ide_helper.php'
- 'artisan'
- 'server.php'
paths:
- 'app/*'
- 'bootstrap/*'
- 'public/index.php'
before_commands:
- 'composer install --dev -n'
tools:
php_mess_detector:
filter:
excluded_paths:
- 'vendor/*'
- 'tests/TestCase.php'
- 'tests/codeception/_helpers/*'
- 'tests/codeception/acceptance/AcceptanceTester.php'
- 'tests/codeception/functional/FunctionalTester.php'
- 'tests/codeception/unit/UnitTester.php'
- 'app/storage/*'
- '_ide_helper.php'
- 'artisan'
- 'server.php'
config:
controversial_rules: { camel_case_class_name: true, camel_case_method_name: true }
php_cs_fixer:
filter:
excluded_paths:
- 'vendor/*'
- 'tests/TestCase.php'
- 'tests/codeception/_helpers/*'
- 'tests/codeception/acceptance/AcceptanceTester.php'
- 'tests/codeception/functional/FunctionalTester.php'
- 'tests/codeception/unit/UnitTester.php'
- 'app/storage/*'
- '_ide_helper.php'
- 'artisan'
- 'server.php'
config:
level: custom
fixers: { indentation: true, linefeed: true, trailing_spaces: true, unused_use: true, visibility: true, short_tag: true, php_closing_tag: true, eof_ending: true, include: true, controls_spaces: true, elseif: true }
php_code_sniffer:
filter:
excluded_paths:
- 'vendor/*'
- 'bootstrap/autoload.php'
- 'tests/TestCase.php'
- 'tests/codeception/_helpers/*'
- 'tests/codeception/acceptance/AcceptanceTester.php'
- 'tests/codeception/functional/FunctionalTester.php'
- 'tests/codeception/unit/UnitTester.php'
- 'app/storage/*'
- '_ide_helper.php'
- 'artisan'
- 'server.php'
config:
sniffs: { generic: { code_analysis: { unused_function_parameter_sniff: true, unconditional_if_statement_sniff: true, for_loop_should_be_while_loop_sniff: true }, white_space: { disallow_tab_indent_sniff: true, scope_indent_sniff: true }, php: { disallow_short_open_tag_sniff: true, lower_case_constant_sniff: true, no_silenced_errors_sniff: true, forbidden_functions_sniff: true }, functions: { function_call_argument_spacing_sniff: true, opening_function_brace_kernighan_ritchie_sniff: true }, files: { byte_order_mark_sniff: true, one_class_per_file_sniff: true, line_endings_sniff: true, end_file_newline_sniff: true }, naming_conventions: { constructor_name_sniff: true, upper_case_constant_name_sniff: true, camel_caps_function_name_sniff: true }, metrics: { nesting_level_sniff: true } }, zend: { debug: { code_analyzer_sniff: true }, files: { closing_tag_sniff: true } }, squiz: { code_analysis: { empty_statement_sniff: true }, classes: { lowercase_class_keywords_sniff: true, valid_class_name_sniff: true, class_file_name_sniff: true }, white_space: { language_construct_spacing_sniff: true, function_opening_brace_space_sniff: true, scope_keyword_spacing_sniff: true, semicolon_spacing_sniff: true, object_operator_spacing_sniff: true, logical_operator_spacing_sniff: true, operator_spacing_sniff: true, cast_spacing_sniff: true }, php: { eval_sniff: true, lowercase_p_h_p_functions_sniff: true, commented_out_code_sniff: true, disallow_size_functions_in_loops_sniff: true }, functions: { lowercase_function_keywords_sniff: true, function_duplicate_argument_sniff: true, global_function_sniff: true, function_declaration_argument_spacing_sniff: true, function_declaration_sniff: true }, commenting: { post_statement_comment_sniff: true }, control_structures: { lowercase_declaration_sniff: true }, strings: { double_quote_usage_sniff: true }, arrays: { array_bracket_spacing_sniff: true } }, my_source: { debug: { debug_code_sniff: true } }, psr2: { classes: { property_declaration_sniff: true }, methods: { method_declaration_sniff: true } } }
sensiolabs_security_checker:
filter:
excluded_paths:
- 'vendor/*'
- 'tests/TestCase.php'
- 'tests/codeception/_helpers/*'
- 'tests/codeception/acceptance/AcceptanceTester.php'
- 'tests/codeception/functional/FunctionalTester.php'
- 'tests/codeception/unit/UnitTester.php'
- 'app/storage/*'
- '_ide_helper.php'
- 'artisan'
- 'server.php'
php_code_coverage:
config_path: phpunit.xml
filter:
excluded_paths:
- 'vendor/*'
- 'boostrap/*'
- 'public/*'
- 'tests/TestCase.php'
- 'tests/codeception/_helpers/*'
- 'tests/codeception/acceptance/AcceptanceTester.php'
- 'tests/codeception/functional/FunctionalTester.php'
- 'tests/codeception/unit/UnitTester.php'
- 'app/storage/*'
- '_ide_helper.php'
- 'artisan'
- 'server.php'
php_pdepend:
excluded_dirs:
- 'vendor'
- 'tests'
- 'app/storage'
php_loc:
excluded_dirs:
- 'vendor'
- 'tests'
- 'app/storage'