CI and Mega-Linter as QA tool - PHPCS #91
llaville
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Mega-Linter v4 was added in the CI as QA tool to avoid technical debt since v3.10 (2021-08-28)
Even if this repository is huge, I try to improve each days the CI.
Today I would like to talk about one of the cool feature of Mega-Linter
linter.cli_lint_modeand ability to override it at runtime by configuration !Mega-Linter use
filemode by default that means it's calls the linter for each file to scan.This introduces a performance problem.
For example, with this repository, the first following screenshot represent
filemodeAnd the next one represent result after switching to
projectmode (PHP_PHPCS_CLI_LINT_MODE: project)Look at the
phpcshighlighted line in summary table and compare the elapsed time.I suggest as strategy to use always first (as possible : depending of linter) the
projectmode that is much more performant.Beta Was this translation helpful? Give feedback.
All reactions