forked from owncloud/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
51 lines (50 loc) · 2.92 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
parameters:
bootstrap: %currentWorkingDirectory%/lib/base.php
autoload_directories:
- %currentWorkingDirectory%/apps/files_sharing/appinfo/Migrations
- %currentWorkingDirectory%/apps/dav/appinfo/Migrations
- %currentWorkingDirectory%/apps/federatedfilesharing/appinfo/Migrations
- %currentWorkingDirectory%/apps/files_external/appinfo/Migrations
- %currentWorkingDirectory%/apps/files_external/lib
- %currentWorkingDirectory%/apps/files_external/3rdparty
- %currentWorkingDirectory%/apps/files_sharing/appinfo/Migrations
- %currentWorkingDirectory%/apps/files_trashbin/appinfo/Migrations
- %currentWorkingDirectory%/core/Migrations
- %currentWorkingDirectory%/tests/lib/Util/User
excludes_analyse:
- %currentWorkingDirectory%/core/templates/*
- %currentWorkingDirectory%/core/routes.php
- %currentWorkingDirectory%/core/register_command.php
- %currentWorkingDirectory%/core/ajax/update.php
- %currentWorkingDirectory%/core/ajax/share.php
- %currentWorkingDirectory%/apps/*/tests*
- %currentWorkingDirectory%/apps/*/templates/*
- %currentWorkingDirectory%/apps/*/appinfo/routes.php
- %currentWorkingDirectory%/apps/*/composer/*
- %currentWorkingDirectory%/apps/*/3rdparty/*
- %currentWorkingDirectory%/apps/files_external/3rdparty/aws-sdk-php/Symfony/Component/ClassLoader/Tests/Fixtures/Apc/fallback/Namespaced/FooBar.php
- %currentWorkingDirectory%/apps/files_sharing/ajax/shareinfo.php
- %currentWorkingDirectory%/settings/templates/*
- %currentWorkingDirectory%/settings/routes.php
# specific app excludes
# eventually move into app directories and use neon includes for better separation
- %currentWorkingDirectory%/apps/dav/bin
ignoreErrors:
- '#Undefined variable: \$OC_[a-zA-Z0-9\\_]+#'
- '#Undefined variable: \$vendor#'
- '#Undefined variable: \$baseuri#'
- '#Instantiated class OC_Theme not found.#'
-
message: '#Instantiated class OCA\\Enterprise_Key\\EnterpriseKey not found.#'
path: core/Command/App/Enable.php
# errors below are to be addressed by own pull requests - non trivial changes required
- '#OCA\\DAV\\Connector\\Sabre\\ObjectTree::__construct\(\) does not call parent constructor from Sabre\\DAV\\Tree.#'
- '#OC\\Files\\ObjectStore\\NoopScanner::__construct\(\) does not call parent constructor from OC\\Files\\Cache\\Scanner.#'
- '#OC\\Files\\Cache\\Wrapper\\CacheWrapper::__construct\(\) does not call parent constructor from OC\\Files\\Cache\\Cache.#'
- '#Anonymous function has an unused use \$folder.#'
- '#Result of function rewinddir \(void\) is used.#'
- '#Instantiated class OCA\\Encryption\\Crypto\\Crypt not found.#'
- '#Instantiated class OCA\\Encryption\\Util not found.#'
- '#Instantiated class OCA\\Encryption\\KeyManager not found.#'
- '#Instantiated class OCA\\Encryption\\Session not found.#'
- '#Instantiated class OCA\\Encryption\\Recovery not found.#'