github.com/anycable/anycable-go@v1.5.1/lefthook.yml (about) 1 # EXAMPLE USAGE: 2 # 3 # Refer for explanation to following link: 4 # https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md 5 # 6 # pre-push: 7 # commands: 8 # packages-audit: 9 # tags: frontend security 10 # run: yarn audit 11 # gems-audit: 12 # tags: backend security 13 # run: bundle audit 14 # 15 # pre-commit: 16 # parallel: true 17 # commands: 18 # eslint: 19 # glob: "*.{js,ts,jsx,tsx}" 20 # run: yarn eslint {staged_files} 21 # rubocop: 22 # tags: backend style 23 # glob: "*.rb" 24 # exclude: "application.rb|routes.rb" 25 # run: bundle exec rubocop --force-exclusion {all_files} 26 # govet: 27 # tags: backend style 28 # files: git ls-files -m 29 # glob: "*.go" 30 # run: go vet {files} 31 # scripts: 32 # "hello.js": 33 # runner: node 34 # "any.go": 35 # runner: go run