-
-
Notifications
You must be signed in to change notification settings - Fork 283
/
phpstan.neon
63 lines (60 loc) · 3.55 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
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/ergebnis/phpstan-rules/rules.neon
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
parameters:
level: max
paths:
- config
- src
- stubs
- tests
ignoreErrors:
- '#Offset 1 does not exist on array.#'
- '#iterator_to_array expects Traversable, iterable#'
- '#Method NunoMaduro\\PhpInsights\\Domain\\Collector::addConstant\(\) has parameter \$name with no typehint specified#'
- '#Method NunoMaduro\\PhpInsights\\Domain\\Collector::addFile\(\) has parameter \$filename with no typehint specified#'
- '#NunoMaduro\\PhpInsights\\Domain\\File::__construct\(\) does not call parent constructor from PHP_CodeSniffer\\Files\\File#'
- '#Method NunoMaduro\\PhpInsights\\Domain\\File::addMessage\(\) has parameter#'
- '#Variable property access on PHP_CodeSniffer\\Sniffs\\Sniff#'
- '#is not allowed to extend#'
- '#Language construct isset\(\) should not be used#'
- '#Access to an undefined property PHP_CodeSniffer\\Config::\$standards.#'
- '#Access to an undefined property PHP_CodeSniffer\\Sniffs\\Sniff::\$#'
- '#NunoMaduro\\PhpInsights\\Application\\Console\\Formatters\\Json has an unused parameter \$input#'
- '#NunoMaduro\\PhpInsights\\Application\\Console\\Formatters\\Checkstyle has an unused parameter \$input#'
- '#In method "NunoMaduro\\PhpInsights\\Domain\\File::process", caught "Throwable" must be rethrown#'
- '#In method "NunoMaduro\\PhpInsights\\Domain\\FileProcessors\\FixerFileProcessor::processFile", caught "Throwable" must be rethrown#'
- '#Empty catch block. If you are sure this is meant to be empty, please add a "// @ignoreException" comment in the catch block.#'
- '#Casting to string something that#'
- '#Instanceof between Illuminate\\Contracts\\Foundation\\Application and#'
- '#Call to function method_exists\(\) with Symfony\\Component\\Console\\Formatter\\OutputFormatterStyle and #'
- '#Error suppression via "@" should not be used.#'
-
message: '#Control structures using switch should not be used.#'
path: src/Domain/Analyser.php
-
message: '#does not exist on SimpleXMLElement\|null.#'
path: src/Application/Console/Formatters/Checkstyle.php
-
message: '#generic class ReflectionClass#'
path: src/Domain/Reflection.php
- '#NunoMaduro\\PhpInsights\\Domain\\File::addFixableError#'
- '#NunoMaduro\\PhpInsights\\Domain\\Differ#'
- '#iterable type PhpCsFixer\\Tokenizer\\Tokens#'
- '#Method NunoMaduro\\PhpInsights\\Application\\Console\\Definitions\\BaseDefinition::get\(\) is not final#'
-
message: "#^Method Tests\\\\TestCase\\:\\:.*\\(\\) is not final, but since the containing class is abstract, it should be\\.$#"
count: 2
path: tests/TestCase.php
-
message: "#^Parameter \\#.* of class Composer\\\\Package\\\\Locker constructor expects .*$#"
count: 3
path: src/Domain/ComposerLoader.php
- "#^Parameter \\#1 \\$input of function array_flip expects array\\<int\\|string\\>, array\\<string, array\\|float\\|int\\|string\\> given\\.$#"
bootstrapFiles:
- %rootDir%/../../squizlabs/php_codesniffer/autoload.php
reportUnmatchedIgnoredErrors: false
excludes_analyse:
- %rootDir%/../../../tests/*/Fixtures/*
- %rootDir%/../../../tests/Fixtures/*