Skip to content

Commit

Permalink
docs: avoid comma separated tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Dec 3, 2024
1 parent e4a4d96 commit 0181299
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -604,10 +604,14 @@ This option is good to specify in `lefthook-local.yml` when you want to skip som
pre-push:
commands:
packages-audit:
tags: frontend security
tags:
- frontend
- security
run: yarn audit
gems-audit:
tags: backend security
tags:
- backend
- security
run: bundle audit
```

Expand Down Expand Up @@ -747,7 +751,9 @@ Simply run `bundle exec rubocop` on all files with `.rb` extension excluding `ap
pre-commit:
commands:
rubocop:
tags: backend style
tags:
- backend
- style
glob: "*.rb"
exclude:
- config/application.rb
Expand Down Expand Up @@ -1012,10 +1018,14 @@ You can specify tags for commands and scripts. This is useful for [excluding](#e
pre-commit:
commands:
lint:
tags: frontend,js
tags:
- frontend
- js
run: yarn lint
test:
tags: backend,ruby
tags:
- backend
- ruby
run: bundle exec rspec
```

Expand Down Expand Up @@ -1069,7 +1079,9 @@ Provide a git command to list files.
pre-push:
commands:
stylelint:
tags: frontend style
tags:
- frontend
- style
files: git diff --name-only master
glob: "*.js"
run: yarn stylelint {files}
Expand Down

0 comments on commit 0181299

Please sign in to comment.