-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
103 lines (83 loc) · 2.37 KB
/
Copy pathphpstan.neon
File metadata and controls
103 lines (83 loc) · 2.37 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
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
parameters:
# Analysis level (0-9, where 9 is the strictest)
level: 5
# PHP version
phpVersion: 80100
# Paths for analysis
paths:
- roocms/
- api/
- storage/
# Exclude paths
excludePaths:
- */vendor/*
- */node_modules/*
- */storage/logs/*
- */upload/*
- */storage/assets/*
# Exclude markdown files
- *.md
- */*.md
- README.md
- RELEASE.md
- LICENSE.md
# Exclude configuration files
- *.yml
- *.yaml
- *.xml
- *.json
# Check only PHP files
fileExtensions:
- php
# Analyze only specified file types
analyse:
- *.php
# Ignore errors
ignoreErrors:
# Ignore errors related to global variables
- '#Undefined global variable#'
- '#Access to undefined constant#'
- '#Call to undefined method#'
- '#Undefined variable: \$db_info#'
- '#Undefined variable: \$site#'
- '#Undefined variable: \$db#'
# Ignore errors related to dynamic file inclusion
- '#require_once#'
- '#include_once#'
- '#file_exists#'
# Ignore errors related to constants
- '#Constant .* not found#'
# Ignore errors related to HTTP functions
- '#http_response_code#'
- '#header#'
# Ignore errors related to debugging
- '#error_log#'
# Type rules
checkGenericClassInNonGenericObjectType: false
checkMissingIterableValueType: false
checkMissingCallableSignature: false
# Property rules
checkUninitializedProperties: false
checkPropertyTypeCompatibility: false
# Function rules
checkFunctionNameCase: false
checkArgumentsPassedByReference: false
# Class rules
checkClassNameCase: false
checkInternalClassCaseSensitivity: false
# Constant rules
checkConstantString: false
# Variable rules
checkMaybeUndefinedVariables: false
checkUndefinedVariables: false
# Array rules
checkMissingArrayKeyType: false
# Exception rules
checkExceptionClassHierarchy: false
# PHP rules
checkAlwaysTrueCheckTypeFunctionCall: false
checkAlwaysTrueInstanceof: false
checkAlwaysTrueStrictComparison: false
# Include extensions for PHP 8.1+
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon