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')
- 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.
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')
- Read upRead up
- Exclude checks
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')
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(
- Read upRead up
- Exclude checks
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',
- Read upRead up
- Exclude checks
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.