-
Notifications
You must be signed in to change notification settings - Fork 3
/
larastan.neon
90 lines (87 loc) · 2.75 KB
/
larastan.neon
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
includes:
- ./phpstan.neon
- ./phpstan-rich-parser.neon
- ../../larastan/larastan/extension.neon
parameters:
namespaceAndSuffix:
App\Events: Event
App\Listener: Listener
App\Policies: Policy
App\Jobs: Job
ignoreErrors:
-
identifier: missingType.iterableValue
reportUnmatched: false
rules:
- Worksome\CodingStyle\PHPStan\Laravel\DisallowPartialRouteResource\DisallowPartialRouteFacadeResourceRule
- Worksome\CodingStyle\PHPStan\Laravel\DisallowPartialRouteResource\DisallowPartialRouteVariableResourceRule
- Worksome\CodingStyle\PHPStan\Laravel\EnforceKebabCaseArtisanCommandsRule
- Worksome\CodingStyle\PHPStan\Laravel\DisallowEnvironmentCheck\DisallowEnvironmentCheckRule
- Worksome\CodingStyle\PHPStan\Laravel\Migrations\RequireWithoutTimestampsRule
services:
-
class: Worksome\CodingStyle\PHPStan\Laravel\DisallowPartialRouteResource\PartialRouteResourceInspector
-
class: Vural\LarastanStrictRules\Rules\NoDynamicWhereRule
tags:
- phpstan.rules.rule
-
class: Vural\LarastanStrictRules\Rules\NoFacadeRule
tags:
- phpstan.rules.rule
-
class: Vural\LarastanStrictRules\Rules\NoValidationInControllerRule
tags:
- phpstan.rules.rule
-
class: Vural\LarastanStrictRules\Rules\ScopeShouldReturnQueryBuilderRule
tags:
- phpstan.rules.rule
-
class: Vural\LarastanStrictRules\Rules\NoPropertyAccessorRule
tags:
- phpstan.rules.rule
-
class: Vural\LarastanStrictRules\Rules\NoGlobalLaravelFunctionRule
arguments:
allowedFunctions:
- class_basename
- class_uses_recursive
- e
- env
- object_get
- preg_replace_array
- retry
- str
- tap
- throw_if
- throw_unless
- trait_uses_recursive
- with
- collect
- data_fill
- data_get
- data_set
- value
- config
- fake
- method_field
- now
- old
- redirect
- response
- route
- trans
- trans_choice
- __
- view
- url
- secure_url
- asset
- secure_asset
tags:
- phpstan.rules.rule
# -
# class: Vural\LarastanStrictRules\Rules\NoLocalQueryScopeRule
# tags:
# - phpstan.rules.rule