Commit 450fd03e authored by Rémy Coutable's avatar Rémy Coutable

Always warn on bad commit messages instead of failing

parent 5e565772
...@@ -127,7 +127,7 @@ def warn_or_fail_commits(failed_linters, default_to_fail: true) ...@@ -127,7 +127,7 @@ def warn_or_fail_commits(failed_linters, default_to_fail: true)
Array(failed_linters).each do |linter| Array(failed_linters).each do |linter|
linter.problems.each do |problem_key, problem_desc| linter.problems.each do |problem_key, problem_desc|
case problem_key case problem_key
when :subject_above_warning when :subject_too_short, :subject_above_warning
warn_commit(linter.commit, problem_desc) warn_commit(linter.commit, problem_desc)
else else
self.__send__("#{level}_commit", linter.commit, problem_desc) # rubocop:disable GitlabSecurity/PublicSend self.__send__("#{level}_commit", linter.commit, problem_desc) # rubocop:disable GitlabSecurity/PublicSend
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment