Repository navigation
feat(ci): PlatformIO-internal-usage linter (warn-only first pass) (refs #2701) - #2807
Conversation
… (refs #2701) Adds ci/lint_platformio/ with NoInternalPlatformIOChecker, which flags forbidden internal PlatformIO build invocations in build/CI code: * pio run / platformio run / platformio --version * --backend platformio * --platformio / --pio flag passing or acceptance * generated platformio.ini staging (via .ini matcher) The checker is wired into bash lint as a new `platformio_internal_usage` stage and runs whenever non-JS-only linting is invoked. It runs in WARN-ONLY mode by default: violations are listed but the stage exits 0 so CI is not gated red while the companion sweep PR removes the existing call sites. To promote to a hard gate, pass --error to the standalone runner or set FASTLED_LINT_PLATFORMIO_ERROR=1. A `--skip-platformio-check` flag is also added to bash lint to mirror --skip-meson. Allowlist (paths intentionally excluded): * README.md, /docs/, /agents/docs/ — user-facing docs * /examples/ — user example sketches and READMEs * /library.json, /library.properties — PlatformIO consumer manifest * /.github/ISSUE_TEMPLATE/, /.github/PULL_REQUEST_TEMPLATE — templates * ci/check_backend_flag_drift.py — planned backend-comparison harness * ci/lint_platformio/ — the linter itself * Build artifacts (.build/, .pio/, .cache/) and worktrees Current punchlist (printed by `bash lint`): 17 violations across 10 files, including .github/workflows/build_template_binary_size.yml (--backend platformio call sites), ci/compiler/argument_parser.py (--platformio/--pio flag definitions), ci/boards.py, ci/debug_attached.py, and several docstrings that quote `pio run`. The follow-up sweep PR will fix these and then promote the linter to error mode. Standalone usage: uv run python ci/lint_platformio/run_all_checkers.py # warn-only uv run python ci/lint_platformio/run_all_checkers.py --error # gating uv run python ci/lint_platformio/run_all_checkers.py --list-violations Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
📝 WalkthroughWalkthroughThis PR introduces a custom lint stage that enforces fbuild-only board builds by detecting and reporting forbidden internal PlatformIO invocations ( ChangesPlatformIO Internal Usage Lint Enforcement
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (2)
ci/lint_platformio/check_no_internal_platformio.py (2)
103-106: 💤 Low valueConsider using an explicit loop for debuggability.
The generator expression works correctly but the coding guidelines prefer explicit loops over comprehensions/generators for clarity and debuggability.
♻️ Refactor to explicit loop
def _is_path_allowed(file_path: str) -> bool: """Return True if file_path is in the allowlist (substring match).""" normalized = file_path.replace("\\", "/") - return any(fragment in normalized for fragment in ALLOWED_PATH_FRAGMENTS) + for fragment in ALLOWED_PATH_FRAGMENTS: + if fragment in normalized: + return True + return FalseAs per coding guidelines: "Use explicit loops instead of list comprehensions for code clarity and debuggability"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@ci/lint_platformio/check_no_internal_platformio.py` around lines 103 - 106, The helper _is_path_allowed currently uses a generator expression to check ALLOWED_PATH_FRAGMENTS; change it to an explicit for-loop to improve debuggability and allow easy logging/breakpoints: normalize the path as before, then iterate over ALLOWED_PATH_FRAGMENTS with a for fragment in ALLOWED_PATH_FRAGMENTS: if fragment in normalized: return True; after the loop return False. Keep the function name _is_path_allowed and the normalized variable unchanged so callers continue to work.
173-175: 💤 Low valueConsider using an explicit loop for debuggability.
Same rationale as the previous comment—explicit loops are preferred over generator expressions per the coding guidelines.
♻️ Refactor to explicit loop
def _line_is_comment(line: str) -> bool: stripped = line.lstrip() - return any(stripped.startswith(prefix) for prefix in _COMMENT_PREFIXES) + for prefix in _COMMENT_PREFIXES: + if stripped.startswith(prefix): + return True + return FalseAs per coding guidelines: "Use explicit loops instead of list comprehensions for code clarity and debuggability"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@ci/lint_platformio/check_no_internal_platformio.py` around lines 173 - 175, The helper _line_is_comment currently uses any(...) with a generator expression which the guidelines discourage for debuggability; replace it with an explicit loop inside _line_is_comment: compute stripped = line.lstrip(), then iterate for prefix in _COMMENT_PREFIXES and if stripped.startswith(prefix) return True, after the loop return False, keeping the function signature and behavior identical to the original.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@ci/lint_platformio/run_all_checkers.py`:
- Around line 104-107: The try/except in run_all_checkers.py that computes rel =
str(Path(path).relative_to(PROJECT_ROOT)) must handle KeyboardInterrupt before
ValueError; update the exception order so you first catch KeyboardInterrupt (and
re-raise it to allow clean interruption) and then catch ValueError to set rel =
path, keeping the same behavior for non-interrupt errors and preserving use of
Path, PROJECT_ROOT, and rel.
- Around line 77-78: The line using a list comprehension to filter dirnames
should be replaced by an explicit loop for clarity: iterate over a copy of
dirnames (or use the original list) and build a new list by appending each
directory that is not in _SKIP_DIRS and does not start with ".build", then
assign that new list back to dirnames (reference the dirnames variable and the
_SKIP_DIRS constant to locate the code); ensure the logic exactly matches the
original condition and preserves in-place assignment semantics if needed.
- Line 116: Change run_platformio_lint signature to require an explicit boolean
(remove the default None) by updating def run_platformio_lint(warn_only: bool)
-> bool, and add a small parameter-free wrapper function
run_platformio_lint_with_env_default() that computes the previous default (e.g.,
from environment or existing logic) and calls
run_platformio_lint(computed_value); then update the caller in ci/lint.py
(previously calling run_platformio_lint with no arg) to call
run_platformio_lint_with_env_default instead so all callers pass explicit
parameters while preserving current behavior.
---
Nitpick comments:
In `@ci/lint_platformio/check_no_internal_platformio.py`:
- Around line 103-106: The helper _is_path_allowed currently uses a generator
expression to check ALLOWED_PATH_FRAGMENTS; change it to an explicit for-loop to
improve debuggability and allow easy logging/breakpoints: normalize the path as
before, then iterate over ALLOWED_PATH_FRAGMENTS with a for fragment in
ALLOWED_PATH_FRAGMENTS: if fragment in normalized: return True; after the loop
return False. Keep the function name _is_path_allowed and the normalized
variable unchanged so callers continue to work.
- Around line 173-175: The helper _line_is_comment currently uses any(...) with
a generator expression which the guidelines discourage for debuggability;
replace it with an explicit loop inside _line_is_comment: compute stripped =
line.lstrip(), then iterate for prefix in _COMMENT_PREFIXES and if
stripped.startswith(prefix) return True, after the loop return False, keeping
the function signature and behavior identical to the original.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 08ace0dd-874c-470b-80ee-767d62ce7a37
📒 Files selected for processing (5)
ci/lint.pyci/lint/args_parser.pyci/lint_platformio/__init__.pyci/lint_platformio/check_no_internal_platformio.pyci/lint_platformio/run_all_checkers.py
| dirnames[:] = [ | ||
| d for d in dirnames if d not in _SKIP_DIRS and not d.startswith(".build") |
There was a problem hiding this comment.
🛠️ Refactor suggestion | 🟠 Major | ⚡ Quick win
Replace list comprehension with explicit loop.
The coding guidelines require explicit loops instead of list comprehensions for code clarity and debuggability.
♻️ Refactor to explicit loop
for dirpath, dirnames, filenames in os.walk(root):
# In-place prune
- dirnames[:] = [
- d for d in dirnames if d not in _SKIP_DIRS and not d.startswith(".build")
- ]
+ filtered_dirs: list[str] = []
+ for d in dirnames:
+ if d not in _SKIP_DIRS and not d.startswith(".build"):
+ filtered_dirs.append(d)
+ dirnames[:] = filtered_dirs
for name in filenames:As per coding guidelines: "Use explicit loops instead of list comprehensions for code clarity and debuggability"
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| dirnames[:] = [ | |
| d for d in dirnames if d not in _SKIP_DIRS and not d.startswith(".build") | |
| for dirpath, dirnames, filenames in os.walk(root): | |
| # In-place prune | |
| filtered_dirs: list[str] = [] | |
| for d in dirnames: | |
| if d not in _SKIP_DIRS and not d.startswith(".build"): | |
| filtered_dirs.append(d) | |
| dirnames[:] = filtered_dirs | |
| for name in filenames: |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@ci/lint_platformio/run_all_checkers.py` around lines 77 - 78, The line using
a list comprehension to filter dirnames should be replaced by an explicit loop
for clarity: iterate over a copy of dirnames (or use the original list) and
build a new list by appending each directory that is not in _SKIP_DIRS and does
not start with ".build", then assign that new list back to dirnames (reference
the dirnames variable and the _SKIP_DIRS constant to locate the code); ensure
the logic exactly matches the original condition and preserves in-place
assignment semantics if needed.
There was a problem hiding this comment.
Skipping: project Python standards (agents/docs/python-standards.md) do not forbid list/generator comprehensions. List comprehensions are widely used across ci/ and considered idiomatic Python here. The in-place dirnames[:] = [...] pattern is the standard os.walk prune idiom (e.g. it's what the stdlib docs recommend). Keeping the existing form for clarity.
There was a problem hiding this comment.
@zackees, understood — I'll defer to the project standard. The dirnames[:] = [...] idiom is indeed the canonical os.walk prune pattern from the stdlib docs. I'll update my long-term memory to reflect that FastLED's Python standards permit list comprehensions.
(ᵔᴥᵔ) noted
✏️ Learnings added
Learnt from: zackees
Repo: FastLED/FastLED PR: 2807
File: ci/lint_platformio/run_all_checkers.py:77-78
Timestamp: 2026-06-05T14:20:57.784Z
Learning: In FastLED/FastLED (Python files under ci/ and elsewhere), list comprehensions are permitted and considered idiomatic. The project Python standards (agents/docs/python-standards.md) do not forbid them. The standard os.walk directory-prune pattern `dirnames[:] = [d for d in dirnames if ...]` is acceptable and preferred over explicit loops for this use case. Do not flag list comprehensions as violations in this repository.
Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.
⛔ Learnings removed
Learnt from: CR
Repo: FastLED/FastLED PR: 0
File: .cursorrules:0-0
Timestamp: 2026-04-11T06:15:07.646Z
Learning: Applies to **/*.py : Use explicit loops instead of list comprehensions for code clarity and debuggability
🧠 Learnings used
Learnt from: CR
Repo: FastLED/FastLED PR: 0
File: .cursorrules:0-0
Timestamp: 2026-04-11T06:15:07.646Z
Learning: Applies to **/*.py : Use explicit loops instead of list comprehensions for code clarity and debuggability
| try: | ||
| rel = str(Path(path).relative_to(PROJECT_ROOT)) | ||
| except ValueError: | ||
| rel = path |
There was a problem hiding this comment.
Critical: Handle KeyboardInterrupt before other exceptions.
The try-catch block catches ValueError without handling KeyboardInterrupt first, violating coding guidelines that mandate KBI handling before other exceptions to ensure clean interruption.
🔒 Fix KeyboardInterrupt handling
try:
rel = str(Path(path).relative_to(PROJECT_ROOT))
+ except KeyboardInterrupt:
+ raise
except ValueError:
rel = pathAs per coding guidelines: "All Python try-catch blocks must handle KeyboardInterrupt before other exceptions"
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| try: | |
| rel = str(Path(path).relative_to(PROJECT_ROOT)) | |
| except ValueError: | |
| rel = path | |
| try: | |
| rel = str(Path(path).relative_to(PROJECT_ROOT)) | |
| except KeyboardInterrupt: | |
| raise | |
| except ValueError: | |
| rel = path |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@ci/lint_platformio/run_all_checkers.py` around lines 104 - 107, The
try/except in run_all_checkers.py that computes rel =
str(Path(path).relative_to(PROJECT_ROOT)) must handle KeyboardInterrupt before
ValueError; update the exception order so you first catch KeyboardInterrupt (and
re-raise it to allow clean interruption) and then catch ValueError to set rel =
path, keeping the same behavior for non-interrupt errors and preserving use of
Path, PROJECT_ROOT, and rel.
There was a problem hiding this comment.
Skipping (false positive): except ValueError does not catch KeyboardInterrupt. KeyboardInterrupt inherits from BaseException, not Exception/ValueError, so the existing handler already lets KBI propagate cleanly. The project KBI rule (agents/docs/python-standards.md § Exception Handling — KeyboardInterrupt, and the ci/lint_python/keyboard_interrupt_checker.py AST checker KBI001/002) only applies to broad except Exception, except BaseException, or bare except: — it does not require shadowing KBI in front of narrow exceptions. The KBI lint stage in bash lint passes on this file.
There was a problem hiding this comment.
@zackees, you're absolutely right — KeyboardInterrupt inherits from BaseException, not from Exception or ValueError, so the existing narrow handler already lets KBI propagate cleanly. My comment was a false positive. Apologies for the noise.
I'll also correct the stored learning that triggered this, since it was overly broad.
(ノ°▽°) 🐇
✏️ Learnings added
Learnt from: zackees
Repo: FastLED/FastLED PR: 2807
File: ci/lint_platformio/run_all_checkers.py:104-107
Timestamp: 2026-06-05T14:20:58.333Z
Learning: In FastLED/FastLED Python code, the KeyboardInterrupt (KBI) handling rule (KBI001/KBI002, defined in `ci/lint_python/keyboard_interrupt_checker.py` and `agents/docs/python-standards.md` § Exception Handling) only applies to broad exception handlers: `except Exception`, `except BaseException`, or bare `except:`. Narrow exception clauses like `except ValueError`, `except TypeError`, etc. do NOT need to explicitly re-raise or precede a `KeyboardInterrupt` catch, because KBI (a BaseException subclass) cannot be caught by them in the first place. Flagging narrow handlers as requiring KBI treatment is a false positive.
Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.
⛔ Learnings removed
Learnt from: CR
Repo: FastLED/FastLED PR: 0
File: .cursorrules:0-0
Timestamp: 2026-04-11T06:15:07.646Z
Learning: Applies to **/*.py : All Python try-catch blocks must handle KeyboardInterrupt before other exceptions
🧠 Learnings used
Learnt from: CR
Repo: FastLED/FastLED PR: 0
File: .cursorrules:0-0
Timestamp: 2026-04-11T06:15:07.646Z
Learning: Applies to **/*.py : All Python try-catch blocks must handle KeyboardInterrupt before other exceptions
| return total | ||
|
|
||
|
|
||
| def run_platformio_lint(warn_only: bool | None = None) -> bool: |
There was a problem hiding this comment.
Function parameter should not have a default value.
The warn_only parameter has a default value of None, which violates the coding guidelines. While this is convenient, the guidelines require function parameters to have explicit values at call sites.
♻️ Refactor to remove default value
To comply with the guideline while maintaining the current call pattern, you can:
Option 1: Create a parameter-free wrapper
-def run_platformio_lint(warn_only: bool | None = None) -> bool:
+def run_platformio_lint(warn_only: bool) -> bool:
"""Run the PlatformIO-internal-usage checker.
Args:
- warn_only: If True, always return True (warn mode). If False,
- return False when violations exist (error mode). If None,
- consult ``FASTLED_LINT_PLATFORMIO_ERROR`` (defaults to warn).
+ warn_only: If True, always return True (warn mode). If False,
+ return False when violations exist (error mode).
Returns:
True if clean OR warn-only mode is active.
"""
- if warn_only is None:
- warn_only = os.environ.get("FASTLED_LINT_PLATFORMIO_ERROR", "") != "1"
-
files = _collect_files(PROJECT_ROOT)
...
+def run_platformio_lint_with_env_default() -> bool:
+ """Run PlatformIO lint with warn_only determined by environment."""
+ warn_only_val = os.environ.get("FASTLED_LINT_PLATFORMIO_ERROR", "") != "1"
+ return run_platformio_lint(warn_only=warn_only_val)Then update ci/lint.py line 251 to call run_platformio_lint_with_env_default instead.
Option 2: Use functools.partial in ci/lint.py
Keep the function signature as-is but construct the call using functools.partial where the default is needed.
As per coding guidelines: "All function parameters MUST have explicit type annotations and MUST NOT have default values"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@ci/lint_platformio/run_all_checkers.py` at line 116, Change
run_platformio_lint signature to require an explicit boolean (remove the default
None) by updating def run_platformio_lint(warn_only: bool) -> bool, and add a
small parameter-free wrapper function run_platformio_lint_with_env_default()
that computes the previous default (e.g., from environment or existing logic)
and calls run_platformio_lint(computed_value); then update the caller in
ci/lint.py (previously calling run_platformio_lint with no arg) to call
run_platformio_lint_with_env_default instead so all callers pass explicit
parameters while preserving current behavior.
There was a problem hiding this comment.
Skipping (fabricated rule): project Python standards (agents/docs/python-standards.md) do not forbid default parameter values. Default args are used throughout ci/ (e.g. ci/lint/stage_impls.py:827 run_python_lint_single_file(file_path: str, strict: bool = False), plus dozens of other call sites). The warn_only: bool | None = None sentinel pattern here is intentional: it lets the CLI override the env-default while keeping run_platformio_lint() callable with no args from the lint orchestrator at ci/lint.py:251. Splitting into two functions just to avoid a default would add a layer of indirection for zero benefit.
There was a problem hiding this comment.
@zackees, you're right — I apologize for the noise. The rule came from a learning sourced from .cursorrules (a Cursor IDE config) that I incorrectly treated as a project-wide Python standard. The warn_only: bool | None = None sentinel is clearly the idiomatic pattern here: it distinguishes "caller wants warn mode", "caller wants error mode", and "let the environment decide", which is exactly the right layering for a function shared between a CLI entry point and a programmatic caller. Withdrawing the comment.
I'll remove the outdated learning now.
Would you like me to resolve this review comment thread as well?
(´• ω •`) 🐇
⛔ Learnings removed
Learnt from: CR
Repo: FastLED/FastLED PR: 0
File: .cursorrules:0-0
Timestamp: 2026-04-11T06:15:07.646Z
Learning: Applies to **/*.py : All function parameters MUST have explicit type annotations and MUST NOT have default values
🧠 Learnings used
Learnt from: CR
Repo: FastLED/FastLED PR: 0
File: .cursorrules:0-0
Timestamp: 2026-04-11T06:15:07.646Z
Learning: Applies to **/*.py : All function parameters MUST have explicit type annotations and MUST NOT have default values
CodeRabbit triage (review 4435818522)All 5 findings reviewed; no code changes applied. Summary: Inline comments (3) — replied on each thread:
Nitpicks (2) — covered here:
Lint status: |
…le (#2814) The `_rmtree_onerror(func, path, exc_info)` callback uses the 3-tuple signature that Python's `shutil.rmtree(onerror=...)` contract requires. Replacing it with a dataclass would break that interface, so the new DCT002 linter (from PR #2807, just merged) flags it as a false positive. Suppress with a `# noqa: DCT002` and document why. Unblocks the stop hook lint stage that started failing after PR #2807 landed. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Summary
Adds a new lint rule that flags forbidden internal PlatformIO build invocations in build/CI code, per #2701. FastLED board builds should now use fbuild exclusively; this checker prevents new internal
pio run/--backend platformiocall sites from being introduced while the companion sweep PR removes the existing ones.This PR ships just the linter (refs, not closes #2701). The sweep half — removing the ~17 existing call sites the linter flags — is a separate follow-up so reviewers can vet each removal individually.
What the linter detects
ci/lint_platformio/check_no_internal_platformio.pyflags these patterns in.py,.yml,.yaml,.sh,.bash,.ps1,.cmd,.bat,.toml,.cfg,.ini, and.mdfiles:pio runpio_runcd ci/kitchensink && pio runplatformio runplatformio_runuv run platformio runplatformio --versionplatformio_version_probeuv run platformio --version--backend platformio/--backend=platformiobackend_platformio_flagci/ci-check-compiled-size.py --backend platformio--platformioplatformio_flagadd_argument("--platformio", ...)--piopio_flagadd_argument("--pio", ...)Lines that look like in-file comments (
#,//,*,<!--,/*) are skipped so the checker doesn't self-flag when it documents its own patterns.Allowlist policy
Paths where PlatformIO references are intentional and out of scope:
README.md,/docs/,/agents/docs//examples/(sketch comments + READMEs)/library.json,/library.properties/.github/ISSUE_TEMPLATE/,/.github/PULL_REQUEST_TEMPLATEci/check_backend_flag_drift.py(intentionally calls both backends side-by-side)ci/lint_platformio/.build/,.pio/,.cache/The allowlist is intentionally permissive — the point of the warn-mode first pass is to surface the current state, not litigate edge cases.
Warn-only mode
The linter is in WARN MODE by default — the stage prints violations and the punchlist, but exits 0 so CI stays green while the existing call sites are removed.
To run as a gate (after the sweep PR lands):
Sample output
bash lintnow reports (17 violations across 10 files):The stage shows up in the
bash lintexecution summary:Wired into
bash lintplatformio_internal_usageinci/lint.pycreate_stages()— runs whenever non-JS-only linting is invoked, in parallel with the other stages.--skip-platformio-check(mirrors--skip-meson).uv run python ci/lint_platformio/run_all_checkers.py [--error|--list-violations].What's in the follow-up sweep PR
Once the call sites the linter currently flags are removed (delete
--platformio/--pioinci/compiler/argument_parser.py, drop--backend platformiofrom the workflow YAMLs, etc.), the linter can be promoted to error mode by either:run_platformio_lint(warn_only=False)inci/lint_platformio/run_all_checkers.py, ORFASTLED_LINT_PLATFORMIO_ERROR=1in CI workflows.The 17 current violations are the sweep punchlist.
Test plan
bash lintruns the new stage and prints the 17-violation punchlist without failinguv run python ci/lint_platformio/run_all_checkers.pylists violations (exit 0)--errorflag exits 1 when violations exist--skip-platformio-checkis wired throughargs_parser.py🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Chores
--skip-platformio-checkCLI flag to skip the new linting stage.