From ab93bf19f2414cb8a12eb064874aa89e0d14ecf8 Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Tue, 14 Jan 2025 16:09:32 +0300 Subject: [PATCH] chore: update config template with new jobs --- internal/templates/config.tmpl | 41 ++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/internal/templates/config.tmpl b/internal/templates/config.tmpl index f6e5dfe5..e18689ee 100644 --- a/internal/templates/config.tmpl +++ b/internal/templates/config.tmpl @@ -1,35 +1,42 @@ # EXAMPLE USAGE: # # Refer for explanation to following link: -# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md +# https://evilmartians.github.io/lefthook/configuration/ # # pre-push: -# commands: -# packages-audit: -# tags: frontend security +# jobs: +# - name: packages audit +# tags: +# - frontend +# - security # run: yarn audit -# gems-audit: -# tags: backend security +# +# - name: gems audit +# tags: +# - backend +# - security # run: bundle audit # # pre-commit: # parallel: true -# commands: -# eslint: +# jobs: +# - run: yarn eslint {staged_files} # glob: "*.{js,ts,jsx,tsx}" -# run: yarn eslint {staged_files} -# rubocop: -# tags: backend style +# +# - name: rubocop # glob: "*.rb" -# exclude: '(^|/)(application|routes)\.rb$' +# exclude: +# - config/application.rb +# - config/routes.rb # run: bundle exec rubocop --force-exclusion {all_files} -# govet: -# tags: backend style +# +# - name: govet # files: git ls-files -m # glob: "*.go" # run: go vet {files} -# scripts: -# "hello.js": +# +# - script: "hello.js" # runner: node -# "any.go": +# +# - script: "hello.go" # runner: go run