mirror of
https://github.com/snipe/snipe-it.git
synced 2024-09-19 15:27:39 -07:00
Psalm and phpstan configs
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
219d92dcfb
commit
32be88d796
22
phpstan.neon
Normal file
22
phpstan.neon
Normal file
|
@ -0,0 +1,22 @@
|
|||
parameters:
|
||||
paths:
|
||||
- app
|
||||
- resources/views
|
||||
- resources/lang
|
||||
- database/migrations
|
||||
- config
|
||||
|
||||
level: 4
|
||||
|
||||
ignoreErrors:
|
||||
- '#Class, interface or enum named #'
|
||||
- '#Call to an undefined static method App\\Models\\.*::where.*\(\)#'
|
||||
- '#Call to an undefined static method App\\Models\\.*::firstOr.*\(\)#'
|
||||
- '#Call to an undefined static method App\\Models\\.*::find.*\(\)#'
|
||||
- '#Call to an undefined static method App\\Models\\.*::get.*\(\)#'
|
||||
- '#Call to an undefined static method App\\Models\\.*::has.*\(\)#'
|
||||
- '#Call to static method info\(\) on an unknown class Log#'
|
||||
- '#Call to static method debug\(\) on an unknown class Log#'
|
||||
- '#Call to static method getSchemaBuilder\(\) on an unknown class DB#'
|
||||
- '#Call to static method call\(\) on an unknown class Artisan.#'
|
||||
|
18
psalm.xml
Normal file
18
psalm.xml
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
errorLevel="7"
|
||||
resolveFromConfigFile="true"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
||||
findUnusedBaselineEntry="true"
|
||||
>
|
||||
<projectFiles>
|
||||
<directory name="app" />
|
||||
<directory name="database/factories" />
|
||||
<directory name="database/seeders" />
|
||||
<ignoreFiles>
|
||||
<directory name="vendor" />
|
||||
</ignoreFiles>
|
||||
</projectFiles>
|
||||
</psalm>
|
Loading…
Reference in a new issue