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>
This commit is contained in:
Tony Murray
2021-11-02 18:17:35 -05:00
committed by GitHub
parent e0443293a0
commit f4ee508f31
4 changed files with 29 additions and 2 deletions

View File

@@ -100,7 +100,14 @@ class DevCheckCommand extends LnmsCommand
}
if ($check == 'ci') {
$this->helper->setFlags(['ci' => true, 'fail-fast' => true]);
$this->helper->setFlags([
'ci' => true,
'fail-fast' => true,
// checked in lint workflow
'lint_skip_phpstan' => true,
'lint_skip_python' => true,
'lint_skip_bash' => true,
]);
$this->helper->duskHeadless();
$this->helper->enableSnmpsim();
$this->helper->enableDb();