diff --git a/lefthook.yml b/lefthook.yml index be90ea676c1..d7ba1648551 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -11,6 +11,9 @@ pre-commit: rubocop: glob: "*.rb" run: bundle exec rubocop --parallel --force-exclusion {staged_files} + syntax_tree: + glob: "*.{rb,rake}" + run: bundle exec stree check Gemfile {staged_files} prettier: glob: "*.js" include: "app/assets/javascripts|plugins/.+?/assets/javascripts"