Skip to content

chore: fixup linter commands#940

Merged
mhdawson merged 1 commit intonodejs:mainfrom
legendecas:fix-linter
Mar 22, 2021
Merged

chore: fixup linter commands#940
mhdawson merged 1 commit intonodejs:mainfrom
legendecas:fix-linter

Conversation

@legendecas
Copy link
Copy Markdown
Member

@legendecas legendecas commented Mar 19, 2021

This PR fixes following issues:

  1. tools/clang-format suggested an incorrect format (redundant quotes) of fix command;
  2. npm run lint and npm run lint:fix run the clang-format on a different set of changes: tools/clang-format (npm run lint) compares between two commits, while git-clang-format without commits argument (npm run lint:fix) compares workspace changes with HEAD. This makes pre-commit hooks hard to predict in various conditions.

Refs: #938 (comment)

Copy link
Copy Markdown
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mhdawson mhdawson merged commit 1916cb9 into nodejs:main Mar 22, 2021
@legendecas legendecas deleted the fix-linter branch March 26, 2021 06:27
deepakrkris pushed a commit to deepakrkris/node-addon-api that referenced this pull request Sep 23, 2021
deepakrkris pushed a commit to deepakrkris/node-addon-api that referenced this pull request Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants