cloudamatic/mu

View on GitHub
modules/mu/config/dnszone.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Method has too many lines. [245/200]
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" => {
Severity: Minor
Found in modules/mu/config/dnszone.rb by rubocop

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

      def self.records_primitive(need_target: true, default_type: nil, need_zone: false, embedded_type: nil)
        dns_records_primitive = {
          "type" => "array",
          "maxItems" => 100,
          "items" => {
Severity: Major
Found in modules/mu/config/dnszone.rb - About 4 hrs to fix

    There are no issues that match your filters.

    Category
    Status