TracksApp/tracks

View on GitHub

Showing 1,608 of 1,614 total issues

Stats::Actions#done_last30days_data has the variable name 'i'
Open

      created_count_array = Array.new(30) { |i| @actions_created_last30days.size / 30.0 }
      done_count_array    = Array.new(30) { |i| @actions_done_last30days.size / 30.0 }
      # TODO: make the strftime i18n proof
      time_labels         = Array.new(30) { |i| I18n.l(Time.zone.now - i.days, :format => :stats) }
Severity: Minor
Found in app/models/stats/actions.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

Stats::Actions#put_events_into_month_buckets has the variable name 'r'
Open

      convert_to_array(records.select { |x| x.send(date_method_on_todo) }, array_size) { |r| [difference_in_months(@today, r.send(date_method_on_todo))] }
Severity: Minor
Found in app/models/stats/actions.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

Stats::Actions#time_of_day_all_data has the variable name 'i'
Open

      @actions_creation_hour_array = Array.new(24) { |i| 0 }
      @actions_creation_hour.each { |r| @actions_creation_hour_array[r.created_at.hour] += 1 }

      # convert to hash to be able to fill in non-existing days
      @actions_completion_hour_array = Array.new(24) { |i| 0 }
Severity: Minor
Found in app/models/stats/actions.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

Stats::Actions#visible_running_time_data has the variable name 'i'
Open

      time_labels = Array.new(@count) { |i| "#{i}-#{i + 1}" }
Severity: Minor
Found in app/models/stats/actions.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

RecurringTodos::AbstractRecurrencePattern#find_xth_day_of_month has the parameter name 'x'
Open

    def find_xth_day_of_month(x, weekday, month, year)

An Uncommunicative Parameter Name is a parameter name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

TODO found
Open

      # TODO: make the strftime i18n proof
Severity: Minor
Found in app/models/stats/actions.rb by fixme

TODO found
Open

        # TODO: if there is still no match, start will be set to nil. if we ever

TODO found
Open

// TODO: clean these up after the migration to Bootstrap is complete

TODO found
Open

        // TODO: wrong method name. refactor to remove this method
Severity: Minor
Found in app/assets/javascripts/tracks.js.erb by fixme

FIXME found
Open

      # FIXME: These should also be used.
Severity: Minor
Found in app/models/stats/actions.rb by fixme

TODO found
Open

      # TODO: parameterize limit
Severity: Minor
Found in app/models/stats/tag_cloud_query.rb by fixme

TODO found
Open

  // TODO: remove when dropping the .bootstrap namespace

TODO found
Open

        /* TODO: blocking of dropdown */
Severity: Minor
Found in app/assets/javascripts/tracks.js.erb by fixme

TODO found
Open

    # TODO: test this for eager and not eager loading!!!
Severity: Minor
Found in app/models/project.rb by fixme

TODO found
Open

    # TODO: remove next line if 'project' supports group_view_by
Severity: Minor
Found in app/helpers/todos_helper.rb by fixme

HACK found
Open

    # HACK: This is something of a hack to use the correct operator for Pg
Severity: Minor
Found in lib/common.rb by fixme

TODO found
Open

    # TODO: refactor to remove outer hash from includes param
Severity: Minor
Found in lib/done_todos.rb by fixme

TODO found
Open

/* TODO: make this generic for all pages with lists */
Severity: Minor
Found in app/views/projects/create.js.erb by fixme

TODO found
Open

          # TODO: I think this will work, but can't figure out how to test it
Severity: Minor
Found in app/controllers/todos_controller.rb by fixme

TODO found
Open

      # New todo - TODO: Filter on current project in project view
Severity: Minor
Found in app/controllers/todos_controller.rb by fixme
Severity
Category
Status
Source
Language