Codeminer42/cm42-central

View on GitHub
app/presenters/activity_presenter.rb

Summary

Maintainability
A
0 mins
Test Coverage

Complex method ActivityPresenter#noun (61.7)
Open

  def noun
    case subject_type
    when 'Project'
      "#{subject_type} '#{helpers.link_to subject.name, project_path(subject)}'"
    when 'Story'
Severity: Minor
Found in app/presenters/activity_presenter.rb by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

Complex method ActivityPresenter#predicate (38.4)
Open

  def predicate
    return '' unless action == 'update'
    changes = subject_changes.keys.reject { |key| IGNORED_FIELDS.include?(key) }.map do |key|
      case key
      when 'documents_attributes' then document_changes subject_changes[key]
Severity: Minor
Found in app/presenters/activity_presenter.rb by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

There are no issues that match your filters.

Category
Status