We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abf60fa commit 4323830Copy full SHA for 4323830
lib/ohloh_scm/validation.rb
@@ -22,7 +22,6 @@ def validate
22
23
def validate_server_connection; end
24
25
- # rubocop:disable Metrics/AbcSize
26
def validate_attributes
27
@errors = []
28
@errors << url_errors
@@ -31,9 +30,7 @@ def validate_attributes
31
30
@errors << password_errors if scm.password
32
@errors.compact!
33
end
34
- # rubocop:enable Metrics/AbcSize
35
36
37
def url_errors
38
error = if scm.url.nil? || scm.url.empty?
39
"The URL can't be blank."
@@ -45,7 +42,6 @@ def url_errors
45
42
46
43
[:url, error] if error
47
44
48
49
50
def branch_name_errors
51
if scm.branch_name.to_s.empty?
0 commit comments