Skip to content

Use the list of files supplied by pre-commit#17

Open
navaneeth-spotnana wants to merge 15 commits intomaltzj:masterfrom
Spotnana-Tech:master
Open

Use the list of files supplied by pre-commit#17
navaneeth-spotnana wants to merge 15 commits intomaltzj:masterfrom
Spotnana-Tech:master

Conversation

@navaneeth-spotnana
Copy link

pre-commit passes a list of files according the exclusion and other rules to the script. Currently format-code.sh doesn't respect the list, and creates its own list of files.

This was leading to unwanted files getting formatted, for example, when merging.

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.

4 participants