SpeciesFileGroup/taxonworks

View on GitHub

Showing 927 of 12,584 total issues

Avoid more than 3 levels of block nesting.
Open

                  s.variety = variety unless variety.nil?

This cop checks for excessive nesting of conditional and looping constructs.

You can configure if blocks are considered using the CountBlocks option. When set to false (the default) blocks are not counted towards the nesting level. Set to true to count blocks as well.

The maximum level of nesting allowed is configurable.

Avoid more than 3 levels of block nesting.
Open

                d_value[:min] = o.continuous_value if d_value[:min] > o.continuous_value
Severity: Minor
Found in lib/tools/interactive_key.rb by rubocop

This cop checks for excessive nesting of conditional and looping constructs.

You can configure if blocks are considered using the CountBlocks option. When set to false (the default) blocks are not counted towards the nesting level. Set to true to count blocks as well.

The maximum level of nesting allowed is configurable.

Avoid more than 3 levels of block nesting.
Open

                                      if o.total == 1
                                        'paratype'
                                      else
                                        'paratypes'
                                      end

This cop checks for excessive nesting of conditional and looping constructs.

You can configure if blocks are considered using the CountBlocks option. When set to false (the default) blocks are not counted towards the nesting level. Set to true to count blocks as well.

The maximum level of nesting allowed is configurable.

Avoid more than 3 levels of block nesting.
Open

            if intg.nil?
              intg = digits[0]
            end
Severity: Minor
Found in lib/utilities/geo.rb by rubocop

This cop checks for excessive nesting of conditional and looping constructs.

You can configure if blocks are considered using the CountBlocks option. When set to false (the default) blocks are not counted towards the nesting level. Set to true to count blocks as well.

The maximum level of nesting allowed is configurable.

Avoid more than 3 levels of block nesting.
Open

            if intg.length > 0  # have full case nn.mm
              sig = intg.length + mantissa.length
            else  # mantissa might have "leading" zeros
              decimal_lead_zeros = digits[1].length
              mantissa = digits[1].sub(/^[0]+/, '')
Severity: Minor
Found in lib/utilities/geo.rb by rubocop

This cop checks for excessive nesting of conditional and looping constructs.

You can configure if blocks are considered using the CountBlocks option. When set to false (the default) blocks are not counted towards the nesting level. Set to true to count blocks as well.

The maximum level of nesting allowed is configurable.

Avoid more than 3 levels of block nesting.
Open

            if digit_string[index + 1].to_i >= 5
              result = (result.to_i + 1).to_s # round if necessary
            end
Severity: Minor
Found in lib/utilities/geo.rb by rubocop

This cop checks for excessive nesting of conditional and looping constructs.

You can configure if blocks are considered using the CountBlocks option. When set to false (the default) blocks are not counted towards the nesting level. Set to true to count blocks as well.

The maximum level of nesting allowed is configurable.

Avoid more than 3 levels of block nesting.
Open

            if decimal_position < sig_digits
              result.insert(decimal_position, decimal_point)
            end
Severity: Minor
Found in lib/utilities/geo.rb by rubocop

This cop checks for excessive nesting of conditional and looping constructs.

You can configure if blocks are considered using the CountBlocks option. When set to false (the default) blocks are not counted towards the nesting level. Set to true to count blocks as well.

The maximum level of nesting allowed is configurable.

Severity
Category
Status
Source
Language