Skip to content

Commit a119cbe

Browse files
committed
Invalid combination of tabs and spaces in phpstan.neon
1 parent 78c411d commit a119cbe

File tree

1 file changed

+37
-37
lines changed
  • dev/tests/static/testsuite/Magento/Test/Php/_files/phpstan

1 file changed

+37
-37
lines changed

dev/tests/static/testsuite/Magento/Test/Php/_files/phpstan/phpstan.neon

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
parameters:
2-
checkExplicitMixedMissingReturn: true
3-
checkPhpDocMissingReturn: true
4-
reportUnmatchedIgnoredErrors: false
5-
excludes_analyse:
6-
- %rootDir%/../../../lib/internal/Magento/Framework/ObjectManager/Test/Unit/*
7-
- %rootDir%/../../../*/_files/*
8-
- %rootDir%/../../../dev/tests/*/Fixtures/*
9-
- %rootDir%/../../../dev/tests/*/tmp/*
10-
- %rootDir%/../../../dev/tests/*/_generated/*
11-
- %rootDir%/../../../pub/*
12-
autoload_directories:
13-
- %rootDir%/../../../dev/tests/static/framework/tests/unit/testsuite/Magento
14-
- %rootDir%/../../../dev/tests/integration/framework/tests/unit/testsuite/Magento
15-
- %rootDir%/../../../dev/tests/api-functional/_files/Magento
16-
autoload_files:
17-
- %rootDir%/../../../dev/tests/static/framework/autoload.php
18-
- %rootDir%/../../../dev/tests/integration/framework/autoload.php
19-
- %rootDir%/../../../dev/tests/api-functional/framework/autoload.php
20-
- %rootDir%/../../../dev/tests/setup-integration/framework/autoload.php
21-
- %rootDir%/../../../dev/tests/static/framework/Magento/PhpStan/autoload.php
22-
ignoreErrors:
23-
# Ignore PHPStan\Rules\Classes\UnusedConstructorParametersRule
24-
- '#Constructor of class [a-zA-Z0-9\\_]+ has an unused parameter#'
25-
# Ignore setCustomErrorHandler function not found in bootstrap files
26-
- '#Function setCustomErrorHandler not found#'
27-
# Ignore 'return statement is missing' error when 'void' is present in return type list
28-
- '#Method (?:.*?) should return (?:.*?)void(?:.*?) but return statement is missing.#'
29-
# Ignore constants, defined dynamically.
30-
- '#Constant TESTS_WEB_API_ADAPTER not found.#'
31-
- '#Constant TESTS_BASE_URL not found.#'
32-
- '#Constant TESTS_XDEBUG_ENABLED not found.#'
33-
- '#Constant TESTS_XDEBUG_SESSION not found.#'
34-
- '#Constant INTEGRATION_TESTS_DIR not found.#'
35-
- '#Constant MAGENTO_MODULES_PATH not found.#'
36-
- '#Constant TESTS_MODULES_PATH not found.#'
37-
- '#Constant TESTS_INSTALLATION_DB_CONFIG_FILE not found.#'
38-
- '#Constant T_[A-Z_]+ not found.#'
2+
checkExplicitMixedMissingReturn: true
3+
checkPhpDocMissingReturn: true
4+
reportUnmatchedIgnoredErrors: false
5+
excludes_analyse:
6+
- %rootDir%/../../../lib/internal/Magento/Framework/ObjectManager/Test/Unit/*
7+
- %rootDir%/../../../*/_files/*
8+
- %rootDir%/../../../dev/tests/*/Fixtures/*
9+
- %rootDir%/../../../dev/tests/*/tmp/*
10+
- %rootDir%/../../../dev/tests/*/_generated/*
11+
- %rootDir%/../../../pub/*
12+
autoload_directories:
13+
- %rootDir%/../../../dev/tests/static/framework/tests/unit/testsuite/Magento
14+
- %rootDir%/../../../dev/tests/integration/framework/tests/unit/testsuite/Magento
15+
- %rootDir%/../../../dev/tests/api-functional/_files/Magento
16+
autoload_files:
17+
- %rootDir%/../../../dev/tests/static/framework/autoload.php
18+
- %rootDir%/../../../dev/tests/integration/framework/autoload.php
19+
- %rootDir%/../../../dev/tests/api-functional/framework/autoload.php
20+
- %rootDir%/../../../dev/tests/setup-integration/framework/autoload.php
21+
- %rootDir%/../../../dev/tests/static/framework/Magento/PhpStan/autoload.php
22+
ignoreErrors:
23+
# Ignore PHPStan\Rules\Classes\UnusedConstructorParametersRule
24+
- '#Constructor of class [a-zA-Z0-9\\_]+ has an unused parameter#'
25+
# Ignore setCustomErrorHandler function not found in bootstrap files
26+
- '#Function setCustomErrorHandler not found#'
27+
# Ignore 'return statement is missing' error when 'void' is present in return type list
28+
- '#Method (?:.*?) should return (?:.*?)void(?:.*?) but return statement is missing.#'
29+
# Ignore constants, defined dynamically.
30+
- '#Constant TESTS_WEB_API_ADAPTER not found.#'
31+
- '#Constant TESTS_BASE_URL not found.#'
32+
- '#Constant TESTS_XDEBUG_ENABLED not found.#'
33+
- '#Constant TESTS_XDEBUG_SESSION not found.#'
34+
- '#Constant INTEGRATION_TESTS_DIR not found.#'
35+
- '#Constant MAGENTO_MODULES_PATH not found.#'
36+
- '#Constant TESTS_MODULES_PATH not found.#'
37+
- '#Constant TESTS_INSTALLATION_DB_CONFIG_FILE not found.#'
38+
- '#Constant T_[A-Z_]+ not found.#'
3939

4040

4141
services:

0 commit comments

Comments
 (0)