mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Run rubocop with lefthook only on modified lines
Inspired and adapted from https://gist.github.com/skanev/9d4bec97d5a6825eaaf6 https://gist.github.com/MaxLap/ea4b6d1df81de3024562798b5501b9c8
This commit is contained in:
+1
-1
@@ -16,4 +16,4 @@ pre-commit:
|
||||
rubocop:
|
||||
files: git diff --name-only --staged
|
||||
glob: "*.rb"
|
||||
run: bundle exec rubocop --force-exclusion {files}
|
||||
run: bin/dirty-rubocop --uncommitted --force-exclusion {files}
|
||||
|
||||
Reference in New Issue
Block a user