Skip to content

Commit

Permalink
Update lefthook config.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcel-strzalka committed Sep 14, 2022
1 parent 2d06238 commit 95e344b
Showing 1 changed file with 9 additions and 35 deletions.
44 changes: 9 additions & 35 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,9 @@
# EXAMPLE USAGE:
#
# Refer for explanation to following link:
# https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md
#
# pre-push:
# commands:
# packages-audit:
# tags: frontend security
# run: yarn audit
# gems-audit:
# tags: backend security
# run: bundle audit
#
# pre-commit:
# parallel: true
# commands:
# eslint:
# glob: "*.{js,ts,jsx,tsx}"
# run: yarn eslint {staged_files}
# rubocop:
# tags: backend style
# glob: "*.rb"
# exclude: "application.rb|routes.rb"
# run: bundle exec rubocop --force-exclusion {all_files}
# govet:
# tags: backend style
# files: git ls-files -m
# glob: "*.go"
# run: go vet {files}
# scripts:
# "hello.js":
# runner: node
# "any.go":
# runner: go run
pre-commit:
parallel: true
commands:
audit:
run: brakeman --no-pager
rubocop:
files: git diff --name-only --staged
glob: "*.rb"
run: rubocop --force-exclusion {files}

0 comments on commit 95e344b

Please sign in to comment.