wahanegi/vibereport

View on GitHub
app/services/api/v1/response_flow_from_email.rb

Summary

Maintainability
A
0 mins
Test Coverage

Method has too many lines. [13/10]
Wontfix

  def steps
    steps = %w[emotion-selection-web]
    case last_step
    when 'emotion-entry'
      steps << 'emotion-entry'

Checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

You can set literals you want to fold with CountAsOne. Available are: 'array', 'hash', and 'heredoc'. Each literal will be counted as one line regardless of its actual size.

NOTE: The ExcludedMethods configuration is deprecated and only kept for backwards compatibility. Please use IgnoredMethods instead.

Example: CountAsOne: ['array', 'heredoc']

def m
  array = [       # +1
    1,
    2
  ]

  hash = {        # +3
    key: 'value'
  }

  <<~HEREDOC      # +1
    Heredoc
    content.
  HEREDOC
end               # 5 points

There are no issues that match your filters.

Category
Status