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
-
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_mode
and ability to override it at runtime by configuration !Mega-Linter use
file
mode 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
file
modeAnd the next one represent result after switching to
project
mode (PHP_PHPCS_CLI_LINT_MODE: project
)Look at the
phpcs
highlighted line in summary table and compare the elapsed time.I suggest as strategy to use always first (as possible : depending of linter) the
project
mode that is much more performant.Beta Was this translation helpful? Give feedback.
All reactions