mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 04:58:29 +02:00
Fix rubocop
This commit is contained in:
parent
46dd0920a9
commit
d88364a926
1 changed files with 10 additions and 0 deletions
|
@ -84,6 +84,9 @@ class Epp::Domain < Domain
|
||||||
) if type.to_sym == :admin
|
) if type.to_sym == :admin
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# rubocop: disable Metrics/PerceivedComplexity
|
||||||
|
# rubocop: disable Metrics/CyclomaticComplexity
|
||||||
|
# rubocop: disable Metrics/MethodLength
|
||||||
def attrs_from(frame, current_user, action = nil)
|
def attrs_from(frame, current_user, action = nil)
|
||||||
at = {}.with_indifferent_access
|
at = {}.with_indifferent_access
|
||||||
|
|
||||||
|
@ -122,6 +125,9 @@ class Epp::Domain < Domain
|
||||||
|
|
||||||
at
|
at
|
||||||
end
|
end
|
||||||
|
# rubocop: enable Metrics/PerceivedComplexity
|
||||||
|
# rubocop: enable Metrics/CyclomaticComplexity
|
||||||
|
# rubocop: enable Metrics/MethodLength
|
||||||
|
|
||||||
def nameservers_attrs(frame, action)
|
def nameservers_attrs(frame, action)
|
||||||
ns_list = nameservers_from(frame)
|
ns_list = nameservers_from(frame)
|
||||||
|
@ -211,6 +217,8 @@ class Epp::Domain < Domain
|
||||||
res
|
res
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# rubocop: disable Metrics/PerceivedComplexity
|
||||||
|
# rubocop: disable Metrics/CyclomaticComplexity
|
||||||
def dnskeys_attrs(frame, action)
|
def dnskeys_attrs(frame, action)
|
||||||
if frame.css('dsData').any? && !Setting.ds_data_allowed
|
if frame.css('dsData').any? && !Setting.ds_data_allowed
|
||||||
errors.add(:base, :ds_data_not_allowed)
|
errors.add(:base, :ds_data_not_allowed)
|
||||||
|
@ -244,6 +252,8 @@ class Epp::Domain < Domain
|
||||||
return dnskeys_list
|
return dnskeys_list
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
# rubocop: enable Metrics/PerceivedComplexity
|
||||||
|
# rubocop: enable Metrics/CyclomaticComplexity
|
||||||
|
|
||||||
def key_data_from(frame, res)
|
def key_data_from(frame, res)
|
||||||
frame.xpath('keyData').each do |x|
|
frame.xpath('keyData').each do |x|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue