Skip to content

Commit 18e48e2

Browse files
justin808claude
andcommitted
fix: correct glob patterns to match Ruby files in subdirectories
The glob patterns '*.rb' only match files in the root directory. Changed to '**/*.rb' to properly match Ruby files in all subdirectories like lib/, spec/, etc. This ensures hooks run for files in subdirectories as intended. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 8bade7e commit 18e48e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lefthook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ pre-commit:
66
parallel: true
77
commands:
88
rubocop:
9-
glob: '*.rb'
9+
glob: '**/*.rb'
1010
run: bin/lefthook/rubocop-lint {staged_files}
1111

1212
rspec:
13-
glob: '*.rb'
13+
glob: '**/*.rb'
1414
run: bin/lefthook/rspec-affected {staged_files}
1515

1616
trailing-newlines:

0 commit comments

Comments
 (0)