Skip to content

Commit

Permalink
OTWO-6189 Removed Rubocop Directive
Browse files Browse the repository at this point in the history
  • Loading branch information
rapbhan committed Sep 23, 2020
1 parent abf60fa commit 4323830
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/ohloh_scm/validation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def validate

def validate_server_connection; end

# rubocop:disable Metrics/AbcSize
def validate_attributes
@errors = []
@errors << url_errors
Expand All @@ -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."
Expand All @@ -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?
Expand Down

0 comments on commit 4323830

Please sign in to comment.