Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fixup linter commands #940

Merged
merged 1 commit into from
Mar 22, 2021
Merged

chore: fixup linter commands #940

merged 1 commit into from
Mar 22, 2021

Conversation

legendecas
Copy link
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
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