TracksApp/tracks

View on GitHub

Showing 64 of 1,614 total issues

Avoid too many return statements within this method.
Open

      page.tag      { return ((@context_changed | @project_changed) && !@todo.hidden?) || @tag_was_removed || @todo_hidden_state_changed || @todo_deferred_state_changed }
Severity: Major
Found in app/helpers/todos_helper.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

          page.todo     { return !update_needs_to_remove_todo_from_container }
    Severity: Major
    Found in app/helpers/todos_helper.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

          return false
      Severity: Major
      Found in app/helpers/todos_helper.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                  return
        Severity: Major
        Found in app/controllers/users_controller.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                    return :overdue_by_more_than_one
          Severity: Major
          Found in app/helpers/date_label_helper.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                return project_container_id(todo)   if source_view_is_one_of(:todo, :tag, :project, :context) && @group_view_by == 'project'
            Severity: Major
            Found in app/helpers/todos_helper.rb - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                    page.search   { return true }
              Severity: Major
              Found in app/helpers/todos_helper.rb - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return todo_container_empty_id(todo)
                Severity: Major
                Found in app/helpers/todos_helper.rb - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                        page.tag      { return update_needs_to_remove_todo_from_container && !@tag_was_removed }
                  Severity: Major
                  Found in app/helpers/todos_helper.rb - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                        return context_container_empty_id(todo)
                    Severity: Major
                    Found in app/helpers/todos_helper.rb - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                            page.stats    { return !@todo.completed? }
                      Severity: Major
                      Found in app/helpers/todos_helper.rb - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return "deferred_pending_container-empty-d" if empty_criteria_met
                        Severity: Major
                        Found in app/helpers/todos_helper.rb - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                    return :overdue_by_one
                          Severity: Major
                          Found in app/helpers/date_label_helper.rb - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                return false
                            Severity: Major
                            Found in app/helpers/todos_helper.rb - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return "#{@new_due_id}_container-empty-d"
                              Severity: Major
                              Found in app/helpers/todos_helper.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return "deferred_pending_container-empty-d" if empty_criteria_met
                                Severity: Major
                                Found in app/helpers/todos_helper.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                        return current_user.todos.not_completed.where('todos.due > ?', due_this_month_date).count
                                  Severity: Major
                                  Found in app/controllers/todos_controller.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                        return 'context'
                                    Severity: Major
                                    Found in app/helpers/todos_helper.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                            page.project  { return show_todo_on_current_project_page }
                                      Severity: Major
                                      Found in app/helpers/todos_helper.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                            return "completed_container"        if todo.completed?
                                        Severity: Major
                                        Found in app/helpers/todos_helper.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language