From 4323830a277d40c7bd9b147694cba4461223f1be Mon Sep 17 00:00:00 2001 From: Paddy Date: Wed, 23 Sep 2020 12:54:02 +0530 Subject: [PATCH] OTWO-6189 Removed Rubocop Directive --- lib/ohloh_scm/validation.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/ohloh_scm/validation.rb b/lib/ohloh_scm/validation.rb index cb0d9b4e..676168be 100644 --- a/lib/ohloh_scm/validation.rb +++ b/lib/ohloh_scm/validation.rb @@ -22,7 +22,6 @@ def validate def validate_server_connection; end - # rubocop:disable Metrics/AbcSize def validate_attributes @errors = [] @errors << url_errors @@ -31,9 +30,7 @@ def validate_attributes @errors << password_errors if scm.password @errors.compact! end - # rubocop:enable Metrics/AbcSize - # rubocop:disable Metrics/AbcSize def url_errors error = if scm.url.nil? || scm.url.empty? "The URL can't be blank." @@ -45,7 +42,6 @@ def url_errors [:url, error] if error end - # rubocop:enable Metrics/AbcSize def branch_name_errors if scm.branch_name.to_s.empty?