modules/mu/config/dnszone.rb
Method has too many lines. [245/200] Open
Open
def self.records_primitive(need_target: true, default_type: nil, need_zone: false, embedded_type: nil)
dns_records_primitive = {
"type" => "array",
"maxItems" => 100,
"items" => {
- Read upRead up
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Method records_primitive
has 245 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
def self.records_primitive(need_target: true, default_type: nil, need_zone: false, embedded_type: nil)
dns_records_primitive = {
"type" => "array",
"maxItems" => 100,
"items" => {