forked from SocialEngine/sniffer-rules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
executable file
·87 lines (82 loc) · 2.83 KB
/
config.php
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
<?php
return [
/*
|--------------------------------------------------------------------------
| Standard
|--------------------------------------------------------------------------
|
| One or more coding standard do check for violations.
| Available options are: SocialEngine, PEAR, Squiz, PHPCS, MySource, PSR2 and PSR1
|
*/
'standard' => [
'SocialEngine',
],
/*
|--------------------------------------------------------------------------
| Files to watch
|--------------------------------------------------------------------------
|
| One or more files and/or directories to check
|
*/
'files' => [
'app/',
],
/*
|--------------------------------------------------------------------------
| Files to ignore
|--------------------------------------------------------------------------
|
| Sometimes you want Sniffer to run over a very large number of files,
| but you want some files and folders to be skipped. The ignored config key
| can be used to tell Sniffer to skip files and folders that match one
| or more patterns.
|
| Ex: 'ignored' => array('*blade.php', 'app/database', 'app/lang'),
|
*/
'ignored' => [
'app/lang',
'app/views',
],
/*
|--------------------------------------------------------------------------
| Files to ignore Namespace for Class
|--------------------------------------------------------------------------
|
| Some Laravel files cannot contain a namespace as the class names are hardcoded
| into the framework.
| You can modify which folders/files get ignored when running the namespace check
| below. The ignoreNamespace config key can be used to tell Sniffer to skip files
| and folders that match one or more patterns.
|
| Ex: 'ignoreNamespace' => ['app/database', 'app/lang'],
|
*/
'ignoreNamespace' => [
'app/database',
],
/*
|--------------------------------------------------------------------------
| Allow snake case for method names of classes
|--------------------------------------------------------------------------
| Below you can configure that which methods of which classes should have snake cased
| names. If you want to define this rule for all methods of a class with a suffixed name,
| then set the 'methodPrefix' array value to `*`. If you want a particular prefixed
| method to be snake cased in all classes, then set the 'classSuffix' value to `*`.
|
| Ex: 'allowSnakeCaseMethodName' => [
| [
| 'classSuffix' => 'Test',
| 'methodPrefix' => ['test'],
| ]
|
*/
'allowSnakeCaseMethodName' => [
[
'classSuffix' => 'Test',
'methodPrefix' => ['test'],
]
]
];