YUCLing

#52338: docs: fix command for clang-tidy usage

Merged
Created: Jul 13, 2026, 10:53:08 PM
Merged: Jul 14, 2026, 3:37:24 PM
4 comments
Target: main

Description of Change

npm run needs an extra -- to make sure the arguments are passed to the script, instead of npm itself.

$ npm run --help
Run arbitrary package scripts

Usage:
npm run <command> [-- <args>]

The example command fails with:

$ npm run lint:clang-tidy --out-dir ../out/Testing
npm warn "../out/Testing" is being parsed as a normal command line argument.
npm warn Unknown cli config "--out-dir". This will stop working in the next major version of npm.

> @electron-ci/dev-root@0.0.0-development lint:clang-tidy
> ts-node ./script/run-clang-tidy.ts ../out/Testing

--out-dir is a required argument

Checklist

Release Notes

Notes: none

Backports

43-x-y
Merged
PR Number
#52347
Merged At
Jul 14, 2026, 4:03:52 PM
Released In
Not yet
Release Date
Not yet
44-x-y
Merged
PR Number
#52348
Merged At
Jul 14, 2026, 4:04:13 PM
Released In
Not yet
Release Date
Not yet

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron