-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
42 lines (33 loc) · 1.07 KB
/
phpstan.neon
File metadata and controls
42 lines (33 loc) · 1.07 KB
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
includes:
- phpstan-baseline.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-dangerous-calls.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-execution-calls.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-insecure-calls.neon
parameters:
tmpDir: .cache/phpstan
paths:
- src
type_coverage:
return: 100
param: 100
property: 100
constant: 100
# also, how many files has declare strict types
declare: 100
type_perfect:
null_over_false: true
no_mixed: true
narrow_param: false
narrow_return: true
cognitive_complexity:
class: 13
function: 7
# The level ranges from 0 to 9 and the latter is the highest level
# more info at https://phpstan.org/user-guide/rule-levels
level: max
strictRules:
allRules: true
# Optional for having a clickable link to PHPStorm
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
treatPhpDocTypesAsCertain: false