Skip to content

Commit d5e3721

Browse files
authored
tools: print more instructions on clang-format check failed (#846)
PR-URL: #846 Reviewed-By: Michael Dawson <[email protected]>
1 parent d9e11ff commit d5e3721

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/clang-format.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ function main(args) {
3333
console.error(clangFormatOutput);
3434
const fixCmd = '"npm run lint:fix"';
3535
console.error(`
36-
ERROR: please run ${fixCmd} to format changes in your commit`);
36+
ERROR: please run ${fixCmd} to format changes in your commit
37+
Note that when running the command locally, please keep your local
38+
master branch and working branch up to date with nodejs/node-addon-api
39+
to exclude un-related complains.
40+
Or you can run "env CLANG_FORMAT_START=upstream/master ${fixCmd}".`);
3741
return 1;
3842
}
3943
}

0 commit comments

Comments
 (0)