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

Add support for lint-staged #8

Merged
merged 1 commit into from
Oct 11, 2023
Merged

Add support for lint-staged #8

merged 1 commit into from
Oct 11, 2023

Conversation

dmason30
Copy link
Member

https://github.com/okonet/lint-staged passes in all staged files as paths to the configured commands,

The laravel (symfony) console throws an exception when you pass an argument to command where the signature for that comand has not been defined to accept arguments.

This adds a paths command to the translation:unused command but the command has no way of using these arguments as the command itself needs to scan all configured application directories to find out whether a language key is unused. If it ran only against staged files you would end up with false positives.

@dmason30 dmason30 merged commit 7e076f9 into main Oct 11, 2023
7 checks passed
@dmason30 dmason30 deleted the lint-staged branch October 11, 2023 14:46
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.

1 participant