Files
librenms-librenms/phpstan-deprecated.neon
Tony Murray f4ee508f31 Run phpstan locally with lnms dev:check lint (#13458)
* Run phpstan locally with `lnms dev:check lint`
Separate result cache for deprecated functions so we don't break the cache every time.

* Skip phpstan flag
Skip all lints on ci except php lint (so we can check on multiple php versions)

* forgot default value

* fix up test cases

* Update LibreNMS/Util/CiHelper.php

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-11-03 00:17:35 +01:00

33 lines
691 B
Plaintext

includes:
- phpstan-baseline-deprecated.neon
- vendor/spaze/phpstan-disallowed-calls/extension.neon
parameters:
customRulesetUsed: true
reportUnmatchedIgnoredErrors: false
resultCachePath: %tmpDir%/resultCache-deprecated.php
paths:
- LibreNMS
- bootstrap
- cache
- html
- storage
- app
- config
- database
- doc
- includes
- licenses
- misc
- resources
- routes
- sql-schema
- tests
disallowedFunctionCalls:
-
function: 'db*()'
message: 'use Eloquent instead; https://laravel.com/docs/8.x/eloquent'