From 0088b74100cd141b6f172376c7fb77868945b37f Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Tue, 18 Jun 2019 19:13:26 +0200 Subject: Fix static analysis --- danger/commit_messages/Dangerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/danger/commit_messages/Dangerfile b/danger/commit_messages/Dangerfile index 367f55d2fcc..ec494635f02 100644 --- a/danger/commit_messages/Dangerfile +++ b/danger/commit_messages/Dangerfile @@ -80,7 +80,7 @@ def unicode_emoji_regex ))x end -def lint_commit(commit) +def lint_commit(commit) # rubocop:disable Metrics/AbcSize # For now we'll ignore merge commits, as getting rid of those is a problem # separate from enforcing good commit messages. return false if commit.message.start_with?('Merge branch') @@ -115,7 +115,7 @@ def lint_commit(commit) end # Fail if a suggestion commit is used and squash is not enabled - if commit.message.start_with?('Apply suggestion to') && !gitlab.mr_json['squash'] # rubocop:disable Metrics/AbcSize + if commit.message.start_with?('Apply suggestion to') && !gitlab.mr_json['squash'] fail_commit( commit, 'If you are applying suggestions, squash needs to be enabled in the merge request' -- cgit v1.2.1