lib/merge_test_unit_helper.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method has too many lines. [41/10]
Open

  def self.included(base)
    base.class_eval do
      context "A #{@base_class}" do
        setup do
          should_create_extended_item = !(@base_class == 'WebLink')
Severity: Minor
Found in lib/merge_test_unit_helper.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.

Assignment Branch Condition size for included is too high. [33.54/15]
Open

  def self.included(base)
    base.class_eval do
      context "A #{@base_class}" do
        setup do
          should_create_extended_item = !(@base_class == 'WebLink')
Severity: Minor
Found in lib/merge_test_unit_helper.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Method included has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.included(base)
    base.class_eval do
      context "A #{@base_class}" do
        setup do
          should_create_extended_item = !(@base_class == 'WebLink')
Severity: Minor
Found in lib/merge_test_unit_helper.rb - About 1 hr to fix

    Block has too many lines. [39/25]
    Open

        base.class_eval do
          context "A #{@base_class}" do
            setup do
              should_create_extended_item = !(@base_class == 'WebLink')
              create_and_map_extended_field_to_type(
    Severity: Minor
    Found in lib/merge_test_unit_helper.rb by rubocop

    This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.

    Block has too many lines. [36/25]
    Open

          context "A #{@base_class}" do
            setup do
              should_create_extended_item = !(@base_class == 'WebLink')
              create_and_map_extended_field_to_type(
                label: 'First',
    Severity: Minor
    Found in lib/merge_test_unit_helper.rb by rubocop

    This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.

    There are no issues that match your filters.

    Category
    Status