Skip to content

Commit

Permalink
[DX] Overcommit: Autocorrected files should be added to the commit au…
Browse files Browse the repository at this point in the history
…tomatically
  • Loading branch information
trinitytakei committed Aug 7, 2024
1 parent 12fe5cd commit bd9c860
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .overcommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,21 @@ PreCommit:
enabled: true
required: true
command: ['bundle', 'exec', 'rubocop', '-A']
stages: ['commit']
ErbLint:
enabled: true
required: true
command: ['bundle', 'exec', 'erblint', '--lint-all', '-a']
stages: ['commit']

PostCheckout:
AddCorrectedFiles:
enabled: true
required: true
description: 'Add files that were auto-corrected by PreCommit hooks'
required_executable: 'git'
run_in_background: false
command: ['git', 'add', '--update']

# PrePush:
# RSpec:
Expand Down

0 comments on commit bd9c860

Please sign in to comment.