Skip to content

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
@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.

2 participants