diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-27 15:08:51 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-27 15:08:51 +0000 |
commit | 1ea1db491c8bc90789acda45c9002aaa5c4dc498 (patch) | |
tree | 46d974fed38f2ea63e69bad9d43760c62611c958 /.overcommit.yml.example | |
parent | 22e9af3c8b8aedf7f46b786be968862b74a2d07e (diff) | |
download | gitlab-ce-1ea1db491c8bc90789acda45c9002aaa5c4dc498.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to '.overcommit.yml.example')
-rw-r--r-- | .overcommit.yml.example | 20 |
1 files changed, 20 insertions, 0 deletions
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 |