-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon.dist
102 lines (94 loc) · 3.73 KB
/
phpstan.neon.dist
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
includes:
- ./vendor/nunomaduro/larastan/extension.neon
- ./vendor/phpstan/phpstan-deprecation-rules/rules.neon
parameters:
paths:
- app
- config
- database
- lang
- resources
- routes
- tests
# The level 9 is the highest level
# https://phpstan.org/user-guide/rule-levels
level: 5
# https://phpstan.org/config-reference#universal-object-crates
universalObjectCratesClasses:
- App\Models\Atividade
- App\Models\Usuario
- App\Models\TipoProcesso
- App\Models\Localidade
- App\Models\Predio
- App\Models\Andar
- App\Models\Sala
- App\Models\Estante
- App\Models\Prateleira
- App\Models\Caixa
- App\Models\Processo
- App\Models\Solicitacao
- App\Models\Guia
- App\Models\Perfil
- App\Models\Permissao
- App\Http\Resources\TipoProcesso\TipoProcessoOnlyResource
- App\Http\Resources\TipoProcesso\TipoProcessoEditResource
- App\Http\Resources\TipoProcesso\TipoProcessoResource
- App\Http\Resources\Localidade\LocalidadeOnlyResource
- App\Http\Resources\Localidade\LocalidadeEditResource
- App\Http\Resources\Localidade\LocalidadeResource
- App\Http\Resources\Predio\PredioOnlyResource
- App\Http\Resources\Predio\PredioEditResource
- App\Http\Resources\Predio\PredioResource
- App\Http\Resources\Andar\AndarOnlyResource
- App\Http\Resources\Andar\AndarEditResource
- App\Http\Resources\Andar\AndarResource
- App\Http\Resources\Sala\SalaOnlyResource
- App\Http\Resources\Sala\SalaEditResource
- App\Http\Resources\Sala\SalaResource
- App\Http\Resources\Caixa\CaixaOnlyResource
- App\Http\Resources\Caixa\CaixaEditResource
- App\Http\Resources\Caixa\CaixaResource
- App\Http\Resources\Estante\EstanteOnlyResource
- App\Http\Resources\Estante\EstanteEditResource
- App\Http\Resources\Estante\EstanteResource
- App\Http\Resources\Prateleira\PrateleiraOnlyResource
- App\Http\Resources\Prateleira\PrateleiraEditResource
- App\Http\Resources\Prateleira\PrateleiraResource
- App\Http\Resources\Processo\ProcessoOnlyResource
- App\Http\Resources\Processo\ProcessoEditResource
- App\Http\Resources\Processo\ProcessoResource
- App\Http\Resources\Cargo\CargoOnlyResource
- App\Http\Resources\Lotacao\LotacaoOnlyResource
- App\Http\Resources\Usuario\UsuarioOnlyResource
- App\Http\Resources\Solicitacao\SolicitacaoOnlyResource
- App\Http\Resources\Solicitacao\SolicitacaoResource
- App\Http\Resources\Guia\GuiaOnlyResource
- App\Http\Resources\Guia\GuiaResource
- App\Http\Resources\Funcao\FuncaoOnlyResource
- App\Http\Resources\Lotacao\LotacaoResource
- App\Http\Resources\Perfil\PerfilOnlyResource
- App\Http\Resources\Usuario\UsuarioOnlyResource
- App\Http\Resources\Usuario\UsuarioResource
- App\Http\Resources\Perfil\PerfilResource
- App\Http\Resources\Perfil\PerfilEditResource
- App\Http\Resources\Permissao\PermissaoResource
- App\Http\Resources\Permissao\PermissaoOnlyResource
- App\Http\Resources\Atividade\AtividadeResource
- FruiVita\Corporativo\Models\Lotacao
- LdapRecord\Models\ActiveDirectory\User
- Spatie\Activitylog\Contracts\Activity
# https://phpstan.org/user-guide/ignoring-errors
ignoreErrors:
-
message: '#Undefined variable: \$this#'
path: tests/*
-
message: '#Call to an undefined static method Illuminate\\Support\\Facades\\[a-zA-Z]+::should[Not]*HaveReceived\(\)#'
path: tests/*
- '#Call to an undefined method LdapRecord\\Models\\ActiveDirectory\\User::[can\|canany\|loadMissing]+\(\)#'
- '#Call to an undefined method Faker\\Generator::numeroProcesso[CNJ\|V1\|V2]+\(\)#'
- '#Call to an undefined method Illuminate\\Database\\Eloquent\\Builder.*[search]+\(\)#'
tmpDir: build/phpstan
checkOctaneCompatibility: true
checkModelProperties: true
checkMissingIterableValueType: false