mirror of
https://github.com/electron/electron.git
synced 2026-02-19 03:14:51 -05:00
ci: add pipeline segment to run clang-tidy (#49072)
* ci: add pipeline segment to run clang-tidy * chore: set -header-filter='' for clang-tidy Breaking change in `clang-tidy` 22.0.0: > clang-tidy now displays warnings from all non-system headers by default. > Previously, users had to explicitly opt-in to header warnings using > -header-filter=’.*’. To disable warnings from non-system, set > -header-filter to an empty string.
This commit is contained in:
@@ -118,7 +118,7 @@ async function runClangTidy (
|
||||
fix: boolean = false
|
||||
): Promise<boolean> {
|
||||
const cmd = path.resolve(LLVM_BIN, 'clang-tidy');
|
||||
const args = [`-p=${outDir}`];
|
||||
const args = [`-p=${outDir}`, "-header-filter=''"];
|
||||
|
||||
if (!process.env.CI) args.push('--use-color');
|
||||
if (fix) args.push('--fix');
|
||||
|
||||
Reference in New Issue
Block a user