-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathphpstan.neon
32 lines (32 loc) · 1.05 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
parameters:
# level can be any integer between 0 (easier) and 8 (harder)
level: 6
bootstrapFiles:
- ../stubs.php
paths:
# Our project files live in this directory
- .
scanDirectories:
# Our project uses the (mounted) `wordpress/` directory that
# isn't part of our Composer dependencies, but we don't want
# to analyse it. That's why we use `scanDirectories`
- ../wordpress
excludePaths:
- ./bin/*
- ./node_modules/*
- ./src/fonts/*
- ./src/js/*
- ./src/scss/*
- ./src/ts/*
- ./tests/*
- ./types/*
fileExtensions:
# Scan all PHP files
- php
ignoreErrors:
- '#Constant Pressidium\\WP\\CookieConsent\\VERSION not found#'
- '#Constant Pressidium\\WP\\CookieConsent\\PLUGIN_DIR not found#'
- '#Constant Pressidium\\WP\\CookieConsent\\PLUGIN_URL not found#'
- '#Constant Pressidium\\WP\\CookieConsent\\PLUGIN_FILE not found#'
dynamicConstantNames:
- PRESSIDIUM_PLATFORM