Browse Source

lefthook

main
pvincent 2 months ago
parent
commit
04a959e3e9
  1. 9
      .lefthook.yml
  2. 2
      .vscode/settings.json

9
.lefthook.yml

@ -0,0 +1,9 @@
pre-push:
parallel: true
commands:
audit:
run: brakeman --no-pager
fail_text: please fix the security issues provided by brakeman
minitest:
run: rails test
fail_text: Test-Driven development requires all tests must turn green before pushing

2
.vscode/settings.json

@ -44,4 +44,4 @@
"vscode-erb-beautify.keepBlankLines": 1,
"inlineFold.unfoldOnLineSelect": true,
"inlineFold.regex": "(class=|className=|class:\\s*)(({(`|))|(['\"`]))(.*?)(\\2|(\\4)})",
}
}
Loading…
Cancel
Save