Improve create-release script to handle QA branches higher than QA_4_8.
[phpmyadmin.git] / phpstan.neon.dist
blob5e58d3bc31e66c795b275b5ea5dfcf97bf7a682b
1 parameters:
2     level: 2
3     paths:
4         - %rootDir%/../../../
5     bootstrap: %rootDir%/../../../test/bootstrap-phpstan.php
6     reportUnmatchedIgnoredErrors: true
7     ignoreErrors:
8         - '#Function (get_login_credentials|uploadprogress_get_info) not found#'
9         - '#Instantiated class COM not found#'
10         - '#Call to method ([a-zA-Z\(\)]+) on an unknown class COM#'
11         - '#NodeTrans::__construct\(\) does not call parent constructor#'
12         - '#Call to an undefined method PHPUnit\\Framework\\MockObject\\MockBuilder#'
13         - '#Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject#'
14         - '#Access to an undefined property PHPUnit\\Framework\\MockObject\\MockObject#'
15         - '#Access to an undefined property PhpMyAdmin\\TwoFactor\:\:\$(backend|showSubmit|available|writable)#'
16         - '#Call to an undefined method PhpMyAdmin\\Navigation\\Nodes\\Node\:\:getHiddenCount#'
17         - '#Undefined variable: \$array#'
18         - '#Undefined variable: \$(export_type|err_url|collation_connection|filename_template|transform_key|cn|goto|token_mismatch|auth_plugin|username|hostname|display_query)#'#Others
19         - '#Undefined variable: \$(unsaved_values|is_upload)#'#tbl_change.php
20         - '#Undefined variable: \$max_upload_size#'#tbl_import.php
21         - '#Undefined variable: \$(repobase|fullrevision|revision|repobranchbase|branch)#'#Footer.php
22         - '#Undefined variable: \$(containerBuilder)#'
23         - '#Variable \$_(REQUEST|GET|POST|COOKIE|SESSION) in isset\(\) always exists and is not nullable#'#Sanitize.php
24         - '#Variable \$msg1 might not be defined#'#Twig/I18n/NodeTrans.php
25         - '#Variable \$(foreign_db|foreign_table) might not be defined#'#Relation.php, do while(false) + break
26         - '#Variable \$(sql_query|table|db|cfg|import_type|goto) might not be defined#'# Others
27         - '#Variable \$(sql_query|table|db|cfg|url_query) in isset\(\) always exists and is not nullable#'#Others
28         - '#Variable \$(last_cumulative_type) in isset\(\) always exists and is not nullable#'#Import.php
29         - '#Variable \$(routine|mode|title|message|output|nbResultsetToDisplay|item) might not be defined#'# Rte
30         - '#Variable \$time might not be defined#'#DatabaseInterface.php
31         - '#Variable \$contentPath in isset\(\) always exists and is not nullable#'#DatabaseInterface.php
32         - '#Variable \$default_fk_check_value might not be defined#'#libraries/mult_submits.inc.php
33         - '#Variable \$http_response_header in isset\(\) always exists and is not nullable#'
34         - '#Variable \$(escape_class|escape_method|iconLinks|icons|where_clause|where_clause_html|condition_array|pos_next|pos_prev) might not be defined#'
35         - '#Variable \$(in_table_header|cur_temp_table_headers|cur_temp_table) might not be defined#'#Plugins/Import/ImportMediawiki.php
36         -
37             message: '#Undefined variable: \$action#'
38             path: %currentWorkingDirectory%/libraries/mult_submits.inc.php
39         -
40             message: '#Undefined variable: \$action#'
41             path: %currentWorkingDirectory%/libraries/tbl_columns_definition_form.inc.php
42         -
43             message: '#Undefined variable: \$cfg#'
44             path: %currentWorkingDirectory%/test/classes/ConfigTest.php
45         -
46             message: '#Undefined variable: \$cfg#'
47             path: %currentWorkingDirectory%/test/classes/PmaTestCase.php
48         -
49             message: '#Undefined variable: \$db_is_system_schema#'
50             path: %currentWorkingDirectory%/libraries/classes/Controllers/Table/StructureController.php
51     excludes_analyse:
52         - %rootDir%/../../../test/EnvironmentTest.php
53         - %rootDir%/../../../test/libraries/FilesTest.php
54         - %rootDir%/../../../test/libraries/common/GetCheckboxTest.php
55         - %rootDir%/../../../tmp/*
56         - %rootDir%/../../../vendor/*
57         - %rootDir%/../../../node_modules/*
58         - %rootDir%/../../../test/bootstrap-phpstan.php
59         - %rootDir%/../../../test/sami-config.php
60         - %rootDir%/../../../themes/*/css/*.css.php
61         - %rootDir%/../../../examples/signon-script.php
62         - %rootDir%/../../../examples/openid.php