forked from phpmyadmin/phpmyadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
60 lines (60 loc) · 3.9 KB
/
phpstan.neon.dist
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
parameters:
level: 2
paths:
- %rootDir%/../../../
bootstrap: %rootDir%/../../../test/bootstrap-phpstan.php
reportUnmatchedIgnoredErrors: true
ignoreErrors:
- '#Function (get_login_credentials|uploadprogress_get_info) not found#'
- '#Instantiated class COM not found#'
- '#Call to method ([a-zA-Z\(\)]+) on an unknown class COM#'
- '#NodeTrans::__construct\(\) does not call parent constructor#'
- '#PHPUnit\\Framework\\MockObject#'
- '#Access to an undefined property PhpMyAdmin\\TwoFactor\:\:\$(backend|showSubmit|available|writable)#'
- '#Call to an undefined method PhpMyAdmin\\Navigation\\Nodes\\Node\:\:getHiddenCount#'
- '#Undefined variable: \$array#'
- '#Undefined variable: \$(export_type|err_url|collation_connection|filename_template|transform_key|cn|goto|token_mismatch|auth_plugin|username|hostname|display_query)#'#Others
- '#Undefined variable: \$(unsaved_values|is_upload)#'#libraries/entry_points/table/change.php
- '#Undefined variable: \$max_upload_size#'#tbl_import.php
- '#Undefined variable: \$(repobase|fullrevision|revision|repobranchbase|branch)#'#Footer.php
- '#Undefined variable: \$(containerBuilder)#'
- '#Variable \$_(REQUEST|GET|POST|COOKIE|SESSION) in isset\(\) always exists and is not nullable#'#Sanitize.php
- '#Variable \$msg1 might not be defined#'#Twig/I18n/NodeTrans.php
- '#Variable \$(foreign_db|foreign_table) might not be defined#'#Relation.php, do while(false) + break
- '#Variable \$(sql_query|table|db|cfg|import_type|goto) might not be defined#'# Others
- '#Variable \$(sql_query|table|db|cfg|url_query) in isset\(\) always exists and is not nullable#'#Others
- '#Variable \$(last_cumulative_type) in isset\(\) always exists and is not nullable#'#Import.php
- '#Variable \$(routine|mode|title|message|output|nbResultsetToDisplay|item) might not be defined#'# Rte
- '#Variable \$time might not be defined#'#DatabaseInterface.php
- '#Variable \$contentPath in isset\(\) always exists and is not nullable#'#DatabaseInterface.php
- '#Variable \$default_fk_check_value might not be defined#'#libraries/mult_submits.inc.php
- '#Variable \$http_response_header in isset\(\) always exists and is not nullable#'
- '#Variable \$(escape_class|escape_method|iconLinks|icons|where_clause|where_clause_html|condition_array|pos_next|pos_prev) might not be defined#'
- '#Variable \$(in_table_header|cur_temp_table_headers|cur_temp_table) might not be defined#'#Plugins/Import/ImportMediawiki.php
-
message: '#Undefined variable: \$action#'
path: %currentWorkingDirectory%/libraries/mult_submits.inc.php
-
message: '#Undefined variable: \$action#'
path: %currentWorkingDirectory%/libraries/tbl_columns_definition_form.inc.php
-
message: '#Undefined variable: \$cfg#'
path: %currentWorkingDirectory%/test/classes/ConfigTest.php
-
message: '#Undefined variable: \$cfg#'
path: %currentWorkingDirectory%/test/classes/PmaTestCase.php
-
message: '#Undefined variable: \$db_is_system_schema#'
path: %currentWorkingDirectory%/libraries/classes/Controllers/Table/StructureController.php
excludes_analyse:
- %rootDir%/../../../test/EnvironmentTest.php
- %rootDir%/../../../test/libraries/FilesTest.php
- %rootDir%/../../../test/libraries/common/GetCheckboxTest.php
- %rootDir%/../../../tmp/*
- %rootDir%/../../../vendor/*
- %rootDir%/../../../node_modules/*
- %rootDir%/../../../test/bootstrap-phpstan.php
- %rootDir%/../../../test/sami-config.php
- %rootDir%/../../../themes/*/css/*.css.php
- %rootDir%/../../../examples/signon-script.php
- %rootDir%/../../../examples/openid.php