From 1ea1db491c8bc90789acda45c9002aaa5c4dc498 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 27 Jan 2020 15:08:51 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- .overcommit.yml.example | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to '.overcommit.yml.example') diff --git a/.overcommit.yml.example b/.overcommit.yml.example index 9cd04825bc2..b957a8bbd2a 100644 --- a/.overcommit.yml.example +++ b/.overcommit.yml.example @@ -15,6 +15,13 @@ # # Uncomment the following lines to make the configuration take effect. +# Make sure to run `cd tooling/overcommit && make && cd -` +gemfile: 'tooling/overcommit/gems.rb' + +PostCheckout: + BundleInstall: + enabled: true + PreCommit: AuthorName: enabled: false @@ -35,6 +42,19 @@ PreCommit: # on_warn: fail # Treat all warnings as failures ScssLint: enabled: true + +CommitMsg: + TextWidth: + enabled: true + min_subject_width: 8 # three 2-letter words with 2 spaces + max_subject_width: 72 + quiet: false + + EmptyMessage: + enabled: true + required: true + description: 'Checking for empty commit message' + #PostCheckout: # ALL: # Special hook name that customizes all hooks of this type # quiet: true # Change all post-checkout hooks to only display output on failure -- cgit v1.2.3