Welcome to mirror list, hosted at ThFree Co, Russian Federation.

phpstan.neon - github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b806dc12b143cee2f9addae1c9cce8662488f671 (plain)
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

includes:
    - phpstan-baseline.neon
parameters:

	
	paths:
		- src
	
	tmpDir: ./.build/phpstan

	# The level 8 is the highest level
	level: 2
	
	scanFiles:
		- vendor/adodb/adodb-php/adodb.inc.php
		- .configs/debug.kint.php
		- src/lib.inc.php
		- config.inc.php
		- vendor/adodb/adodb-php/drivers/adodb-postgres9.inc.php

	excludes_analyse:
		- .build/*
		- tests/*
		- assets/*
		- temp/*
		- vendor/*
		- src/classes/ADO*		
		- src/router.php
	reportUnmatchedIgnoredErrors: false

	treatPhpDocTypesAsCertain: false

	ignoreErrors:

		-
			message: "#^PHPDoc tag @param references unknown parameter\\: \\$[a-zA-Z0-9_]+$#"
			path: src/*
		-
			message: "#^Access to an undefined property Psr\\\\[a-zA-Z0-9_]+\\\\[a-zA-Z0-9_]+\\:\\:\\$[a-zA-Z0-9_]+\\.$#"
			path: src/*

		-
			message: "#^Access to an undefined property PHPPgAdmin\\\\[a-zA-Z0-9_]+\\\\[a-zA-Z0-9_]+\\:\\:\\$[a-zA-Z0-9_]+\\.$#"
			path: src/*
		-
			message: "#^Result of method PHPPgAdmin\\\\[a-zA-Z0-9_]+\\\\[a-zA-Z0-9_]+\\:\\:[a-zA-Z0-9_]+\\(\\) \\(void\\) is used\\.$#"
			path: src/*

		- 
			message: "#^Call to static method br2ln\\(\\) on trait PHPPgAdmin\\Traits\\HelperTrait\\.#"
			path: src/*

		-
			message: "#^Constructor of class [a-zA-Z0-9_]+\\\\[a-zA-Z0-9_]+\\\\[a-zA-Z0-9_]+ has an unused parameter \\$[a-zA-Z0-9_]+\\.$#"
			path: src/*
		#- '#Property [^\s] has no typehint specified#'
		#- '#Call to an undefined method [a-zA-Z0-9\\_]+::expects\(\)#'
		#- '#Access to an undefined property PHPPgAdmin::\$[a-zA-Z0-9_]+#'
		#- '#Call to an undefined method PHPUnit_Framework_MockObject_MockObject::[a-zA-Z0-9_]+\(\)#'