gitlabhq/gitlabhq

View on GitHub
app/services/todo_service.rb

Summary

Maintainability
B
6 hrs
Test Coverage

Class TodoService has 42 methods (exceeds 20 allowed). Consider refactoring.
Open

class TodoService
  # When create an issue we should:
  #
  #  * create a todo for assignee if issue is assigned
  #  * create a todo for each mentioned user on issue
Severity: Minor
Found in app/services/todo_service.rb - About 5 hrs to fix

    Method attributes_for_todo has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      def attributes_for_todo(project, target, author, action, note = nil)
    Severity: Minor
    Found in app/services/todo_service.rb - About 35 mins to fix

      Method create_mention_todos has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        def create_mention_todos(parent, target, author, note = nil, skip_users = [])
      Severity: Minor
      Found in app/services/todo_service.rb - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status