Skip to content

Commit

Permalink
Add support for lint-staged (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmason30 authored Oct 11, 2023
1 parent b17f1b3 commit 7e076f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Commands/UnusedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
class UnusedCommand extends Command
{
public $signature = 'translation:unused
{paths?* : This not used by this command but adds support for lint-staged. }
{--b|generate-baseline : Generate a baseline file from the unused keys.}';

public $description = 'Finds unused language keys.';
Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/UnusedCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
config()->set('translation-linter.unused.filters', []);

withoutMockingConsoleOutput();
expect(artisan('translation:unused'))
expect(artisan('translation:unused "/this/argument/is/ignored" "/and/so/is/this"'))
->toBe(1)
->and(Artisan::output())
->toMatchSnapshot();
Expand Down

0 comments on commit 7e076f9

Please sign in to comment.