Repository navigation
Expand file tree
/
Copy pathphpstan.neon
More file actions
39 lines (38 loc) · 1.43 KB
/
Copy pathphpstan.neon
File metadata and controls
39 lines (38 loc) · 1.43 KB
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
# SPDX-FileCopyrightText: 2026 Thomas Vincent <thomasvincent@gmail.com>
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This file is part of plugin_redfish, a plugin for Cacti.
# https://github.com/somethingwithproof/plugin_redfish
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
# Static analysis of the plugin classes against a Cacti core checkout.
# CACTI_PATH=/path/to/cacti phpstan analyse -c phpstan.neon
# Core is scanned for symbols only.
parameters:
level: 9
phpVersion: 80200
paths:
- lib
- setup.php
- include/operator.php
- include/unbooted-uninstall.php
scanDirectories:
- %env.CACTI_PATH%/lib
- %env.CACTI_PATH%/include
bootstrapFiles:
- tests/phpstan-bootstrap.php
excludePaths:
analyseAndScan:
- %env.CACTI_PATH%/include/vendor/*
- %env.CACTI_PATH%/include/fa/*
- %env.CACTI_PATH%/include/js/*
- %env.CACTI_PATH%/include/themes/*
treatPhpDocTypesAsCertain: false