mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user