forked from dcflachs/compose_plugin
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathphpstan.neon
More file actions
46 lines (46 loc) · 1.55 KB
/
phpstan.neon
File metadata and controls
46 lines (46 loc) · 1.55 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
parameters:
level: 5
fileExtensions:
- php
- page
paths:
- source/compose.manager/php
excludePaths:
- */vendor/*
ignoreErrors:
# Platform-specific paths (Unraid emhttp)
- messages:
- "#/usr/local/emhttp/plugins/.*.php#"
identifier: requireOnce.fileNotFound
# Platform helper functions
- messages:
- "#autov#"
- "#parse_plugin_cfg#"
- "#my_scale_status#"
- "#csrf_token#"
- "#getComposeRoot#"
identifier: function.notFound
# Platform classes (Docker management)
- messages:
- "#DockerClient#"
- "#DockerUpdate#"
- "#DockerUtil#"
identifier: class.notFound
# Global variables from platform/defines.php
- message: "#Variable \\$\\w+ might not be defined#"
identifier: variable.undefined
# Parameters without types (legacy code)
- message: "#has parameter .* with no type specified#"
- message: "#has no return type specified#"
# Type comparisons in legacy code
- message: "#Strict comparison using .* will always evaluate to#"
- message: "#Call to function is_array\\(\\) with .* will always evaluate to true#"
# isset on always-defined variable
- message: "#in isset\\(\\) always exists#"
# escapeshellarg type
- message: "#Parameter .* of function escapeshellarg expects string#"
# If condition always true
- message: "#If condition is always true#"
# Return type without value type
- message: "#return type has no value type specified#"
reportUnmatchedIgnoredErrors: false