This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon
97 lines (86 loc) · 4.98 KB
/
phpstan.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
91
92
93
94
95
96
97
includes:
- %currentWorkingDirectory%/vendor/narrowspark/coding-standard/base_rules.neon
parameters:
checkMissingIterableValueType: false
paths:
- %currentWorkingDirectory%/../src
# - %currentWorkingDirectory%/../tests
autoload_directories:
- %currentWorkingDirectory%/../src
- %currentWorkingDirectory%/../tests
tmpDir: %currentWorkingDirectory%/phpstan
excludes_analyse:
- %currentWorkingDirectory%/../src/Prefetcher/Common/
- %currentWorkingDirectory%/../src/Prefetcher/ComposerRepository.php
- %currentWorkingDirectory%/../src/Prefetcher/Prefetcher.php
- %currentWorkingDirectory%/../src/Prefetcher/TruncatedComposerRepository.php
- %currentWorkingDirectory%/../src/Automatic/Configurator/Traits/AppendToFileTrait.php
- %currentWorkingDirectory%/../src/Security/Common/
- %currentWorkingDirectory%/../tests/Common/Fixture
- %currentWorkingDirectory%/../src/Common/Downloader/ParallelDownloader.php
ignoreErrors:
- '#should end with "Interface" suffix#'
-
message: '#Call to function method_exists\(\) with Symfony\\Component\\Console\\Style\\SymfonyStyle and#'
path: src/Security/Command/AuditCommand.php
-
message: '#Call to an undefined method Composer\\DependencyResolver\\Operation\\OperationInterface\:\:getPackage#'
path: src/Security/Plugin.php
-
message: '#does not call parent constructor from Composer\\Repository\\ComposerRepository#'
path: src/Prefetcher/Plugin.php
-
message: '#Should not use function "debug_backtrace", please change the code#'
path: src/Prefetcher/Plugin.php
-
message: '#Parameter \#1 \$file \(string\) of method Narrowspark\\Automatic\\Prefetcher\\Cache\:\:read\(\) should be contravariant with parameter \$file \(mixed\) of method Composer\\Cache\:\:read\(\)#'
path: src/Prefetcher/Cache.php
-
message: '#Parameter \#2 \$constraint of anonymous function has no typehint#'
path: src/Prefetcher/Plugin.php
-
message: '#\$package of method Composer\\Package\\Version\\VersionSelector\:\:findRecommendedRequireVersion\(\) expects Composer\\Package\\PackageInterface, Composer\\Package\\PackageInterface\|true given#'
path: src/Common/Installer/AbstractInstallationManager.php
-
message: "#^Expression on left side of \\?\\? is not nullable\\.$#"
count: 1
path: src/Common/Installer/AbstractInstallationManager.php
-
message: '#Variable property access on object#'
path: src/Common/Traits/GetGenericPropertyReaderTrait.php
-
message: '#Variable method call on Narrowspark\\Automatic\\Common\\Package#'
path: src/Common/Package.php
-
message: '#Result of \|\| is always true#'
path: src/Common/Downloader/Downloader.php
-
message: "#Strict comparison using !== between '/versions.json' and '/security…' will always evaluate to true#"
path: src/Common/Downloader/Downloader.php
-
message: '#Method Narrowspark\\Automatic\\Common\\Downloader\\Downloader\:\:fetchFile\(\) should return Narrowspark\\Automatic\\Common\\Downloader\\JsonResponse but return statement is missing#'
path: src/Common/Downloader/Downloader.php
-
message: '#Method Narrowspark\\Automatic\\Common\\Downloader\\Downloader\:\:fetchFileIfLastModified\(\) should return Narrowspark\\Automatic\\Common\\Downloader\\JsonResponse but return statement is missing#'
path: src/Common/Downloader/Downloader.php
-
message: '#Short ternary operator is not allowed. Use null coalesce operator if applicable or consider using long ternary#'
path: src/Common/Downloader/CurlDownloader.php
-
message: '#Call to an undefined method Composer\\DependencyResolver\\Operation\\OperationInterface\:\:getPackage#'
path: src/Automatic/Operation/Uninstall.php
-
message: '#Call to an undefined method Composer\\DependencyResolver\\Operation\\OperationInterface\:\:getPackage#'
path: src/Automatic/Operation/Install.php
-
message: '#Should not use function "debug_backtrace", please change the cod#'
path: src/Automatic/Automatic.php
-
message: '#Should not use node with type "Expr_Exit", please change the code#'
path: src/Automatic/SkeletonGenerator.php
-
message: '#Parameter \#1 \$stream of class Symfony\\Component\\Console\\Output\\StreamOutput constructor expects resource, resource\|false given#'
path: src/Automatic/ScriptExecutor.php
-
message: '#Variable method call on Symfony\\Component\\Filesystem\\Filesystem#'
path: src/Automatic/Configurator/CopyFromPackageConfigurator.php