Skip to content

Commit 7e076f9

Browse files
authored
Add support for lint-staged (#8)
1 parent b17f1b3 commit 7e076f9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Commands/UnusedCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
class UnusedCommand extends Command
1313
{
1414
public $signature = 'translation:unused
15+
{paths?* : This not used by this command but adds support for lint-staged. }
1516
{--b|generate-baseline : Generate a baseline file from the unused keys.}';
1617

1718
public $description = 'Finds unused language keys.';

tests/Commands/UnusedCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
config()->set('translation-linter.unused.filters', []);
2424

2525
withoutMockingConsoleOutput();
26-
expect(artisan('translation:unused'))
26+
expect(artisan('translation:unused "/this/argument/is/ignored" "/and/so/is/this"'))
2727
->toBe(1)
2828
->and(Artisan::output())
2929
->toMatchSnapshot();

0 commit comments

Comments
 (0)