Skip to content

Commit

Permalink
Add Rubocop, Brakeman, and RSpec commands to lefthook.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianoflorentino committed Mar 6, 2024
1 parent af1628c commit b7c7ded
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,28 @@ pre-push:
parallel: true
commands:
rubocop:
glob: "**/*.rb"
run: docker compose exec -it blackpearl /bin/sh -c "bundle exec rubocop"
description: "Run Rubocop"

brakeman:
glob: "**/*.rb"
run: docker compose exec -it blackpearl /bin/sh -c "bundle exec brakeman --no-page"
description: "Run Brakeman"

pre-commit:
commands:
rubocop:
glob: "**/*.rb"
run: docker compose exec -it blackpearl /bin/sh -c "bundle exec rubocop"
description: "Run Rubocop"

brakeman:
glob: "**/*.rb"
run: docker compose exec -it blackpearl /bin/sh -c "bundle exec brakeman --no-page"
description: "Run Brakeman"

rspec:
glob: "**/*.rb"
run: docker compose exec -it blackpearl /bin/sh -c "bundle exec rspec"
description: "Run RSpec"

ignore:
pattern:
- 'README.md'
- 'LICENSE'
- 'docs/**'
- '.github/**'
- '.*.yml'

0 comments on commit b7c7ded

Please sign in to comment.