Todos for rails/rails

These are TODOs that are seen in the code

proper_block_detection.erb
          
            <%= @todo %>
          
      
task.rb
          
            namespace :<%= file_name %> do
<% actions.each do |action| -%>
  desc "TODO"
  task <%= action %>: :environment do
  end

<% end -%>
end

          
      
annotations.rake
          
            , :fixme, :todo for focus)"
task :notes do
  SourceAnnotationExtractor.enumerate "OPTIMIZE|FIXME|TODO
          
          
            ", tag: true
end

namespace :notes do
  ["OPTIMIZE", "FIXME", "TODO"].each do |annotation|
    # desc
          
      
notes_test.rb
          
             notes for certain file_types' do
        app_file "app/views/home/index.html.erb", "<% # TODO: note in
          
          
             erb %>"
        app_file "app/assets/javascripts/application.js", "// TODO: note in js
          
      
concerning.rb
          
             ways to separate small concerns
  #
  # == Using comments:
  #
  #   class Todo
  #     # Other todo
          
          
            :
  #
  # Noisy syntax.
  #
  #   class Todo
  #     # Other todo implementation
  #     # ...
  #
  #     module
          
      
%name%.gemspec
          
                 = ["<%= author %>"]
  s.email       = ["<%= email %>"]
  s.homepage    = "TODO"
  s.summary
          
          
                 = "TODO: Summary of <%= camelized_modules %>."
  s.description = "TODO: Description of
          
      
stream_event_loop.rb
          
            
        @todo = Queue.new

        @spawn_mutex = Mutex.new
      end

      def timer(interval, &block
          
          
            
      end

      def attach(io, stream)
        @todo << lambda do
          @map[io] = stream
          
      
inquiry.rb
          
            unless 1.respond_to?(:positive?) # TODO: Remove this file when we drop support to ruby < 2.3
class
          
      
capture_test.rb
          
            
    render :layout => "talk_from_action"
  end

  def proper_block_detection
    @todo = "some todo"
  end
          
          
            
  end

  def test_proper_block_detection
    get :proper_block_detection
    assert_equal "some todo
          
      
uri.rb
          
             do
    remove_method :unescape
    def unescape(str, escaped = /%[a-fA-F\d]{2}/)
      # TODO: Are
          
      
renderer.rb
          
            )
        if text =~ /^(TIP|IMPORTANT|CAUTION|WARNING|NOTE|INFO|TODO)[.:]/
          convert_notes
          
          
            |CAUTION|WARNING|NOTE|INFO|TODO)[.:](.*?)(\n(?=\n)|\Z)/m) do
            css_class = case
          
      
abstract_unit.rb
          
             set up by Railties
# TODO: Have these tests support other combinations of these values
          
      
streaming_template_renderer.rb
          
            require 'fiber'

module ActionView
  # == TODO
  #
  # * Support streaming from child templates
          
          
             logic as in ShowExceptions middleware.
      # TODO Once "exceptron" is in, refactor this piece to
          
      
source_annotation_extractor.rb
          
            }):?\s*(.*?)\s*%>/ }

    # Returns a representation of the annotation that looks like this:
    #
    #   [126] [TODO] This
          
          
             +options+.
  #
  #   SourceAnnotationExtractor.enumerate 'TODO|FIXME', dirs: %w(app lib), tag: true
          
      
collection_association.rb
          
             = "#{callback_name}_for_#{name}"

      # TODO : why do i need method_defined? I think its because of
          
      
Rakefile
          
            require 'rake/testtask'

#TODO: add qu back to the list after it support Rails
          
      
streams.rb
          
             decoration.
        #
        # TODO: Tests demonstrating this.
        def stream_handler
          
          
            
        # which decodes JSON and transmits to the client.
        #
        # TODO: Tests demonstrating this
          
      
i18n_railtie.rb
          
            
        reloader.execute_if_updated { require_unload_lock! }
        # TODO: remove the following line as soon as
          
      
abstract_unit.rb
          
             normal settings that will be set up by Railties
# TODO: Have these tests support other combinations of
          
          
            ::InheritableOptions.new(ActionController::Base.config).tap do |config|
      # VIEW TODO: View tests should not
          
      
view_test.rb
          
            

  def test_table_exists
    view_name = Ebook.table_name
    # TODO: switch this assertion around once
          
          
            
    view_name = Paperback.table_name
    # TODO: switch this assertion around once we changed #tables to
          
      
xml_mini.rb
          
             { |yaml| yaml.to_yaml }
    } unless defined?(FORMATTING)

    # TODO use regexp instead of Date.parse
          
          
            )[1,3]
      "#{left}#{middle.tr('_ ', '--')}#{right}"
    end

    # TODO: Add support for other
          
      
rendering.rb
          
            
    def _normalize_render(*args, &block)
      options = _normalize_args(*args, &block)
      #TODO
          
      
console_test.rb
          
             test_reload_should_fire_preparation_and_cleanup_callbacks
    load_environment
    a = b = c = nil

    # TODO: These
          
      
server.rb
          
            
      set_environment
    end

    # TODO: this is no longer required but we keep it for the moment to support older
          
      
Gemfile
          
            : false
  #TODO: add qu after it support Rails 5.1
  # gem 'qu-rails', github: "bkeepers/qu", branch
          
      
nested_model_forms.md
          
             (TODO) in the advanced section for more information on how to deal with the CRUD operations in your
          
          
             `accepts_nested_attributes_for` if you're using plain Ruby or some other API access. See (TODO) for more info and example.

          
      
cache_helper.rb
          
             ]
        else
          name
        end
      end

      # TODO: Create an object that has caching read
          
          
             write_fragment_for(name, options) #:nodoc:
        # VIEW TODO: Make #capture usable outside of ERB
          
      
relation.rb
          
            .org/active_record_querying.html#running-explain].
    def explain
      #TODO: Fix for binds
          
          
             a single object
    #   Todo.destroy(1)
    #
    #   # Destroy multiple objects
    #   todos
          
      
plugin_generator.rb
          
            
        default = "TODO: Write your name"
        if skip_git?
          @author = default
        else
          
          
            
        default = "TODO: Write your email address"
        if skip_git?
          @email = default
          
      
template_test.rb
          
            

  # TODO: This is currently handled inside ERB. The case of explicitly
  # lying about encodings via
          
      
helper.rb
          
            /strip'

require 'support/config'
require 'support/connection'

# TODO: Move all these random hacks into
          
      
column_attributes_test.rb
          
            
      end

      def test_add_column_without_limit
        # TODO: limit: nil should work with all adapters
          
      
sanitization.rb
          
             (#{provided} for #{expected}) in: #{statement}"
        end
      end
    end

    # TODO: Deprecate
          
      
plugin_generator_test.rb
          
             user.name`.chomp rescue "TODO: Write your name"
    email = `git config user.email`.chomp rescue
          
          
             "TODO: Write your email address"

    run_generator
    assert_file "bukkits.gemspec" do |contents
          
      
main.css
          
             0;
}

#mainCol div.todo {
  background: #fff9d8 url(../images/tab_yellow.gif) no-repeat left top;
  border: none
          
          
            ;
  padding: 1em 1em 0.25em 48px;
  margin: 0.25em 0 1.5em 0;
}

.note code, .info code, .todo code
          
      
routing.rb
          
             = old_controller
        end
      end

      # ROUTES TODO: These assertions should really work in
          
      
test_test.rb
          
            

      assert_successful_test_run('models/user_test.rb')
    end

    # TODO: would be nice if we could detect the schema
          
      
finder_methods.rb
          
            
    end

    def find_nth(index, offset = nil)
      # TODO: once the offset argument is removed we
          
          
             find_nth_with_limit(index, limit)
      # TODO: once the offset argument is removed from find_nth
          
      
command_line.md
          
             FIXME, OPTIMIZE or TODO. The search is done in files with extension `.builder`, `.rb`, `.rake`, `.yml
          
          
            /rails notes
(in /home/foobar/commandsapp)
app/controllers/admin/users_controller.rb:
  * [ 20] [TODO
          
      
errors.rb
          
            : 'TODO')  # => ActiveRecord::ImmutableRelation
  #   relation.limit
          
      
request.rb
          
            

    def body_stream #:nodoc:
      get_header('rack.input')
    end

    # TODO This should be broken
          
      
app_generator.rb
          
            }, *args, &block)
          end
        RUBY
      end

      # TODO: Remove once this is fully in
          
      
abstract_unit.rb
          
            /core_ext/kernel/reporting'

# These are the normal settings that will be set up by Railties
# TODO: Have
          
      
4_1_release_notes.md
          
            , low-ceremony way to separate responsibilities within a class:

```ruby
class Todo < ActiveRecord::Base
          
          
            ::Concern`, then mixing it in to the
`Todo` class.

See its
[documentation](http://api.rubyonrails
          
      
render_test.rb
          
            , exception.cause.name
  end

  # TODO: The reason for this test is unclear, improve documentation
  def
          
          
            (:partial => "test/layout_for_partial", :locals => { :name => "Josh" })
  end

  # TODO: The reason
          
      
finder_test.rb
          
            .limit(1).second # TODO: currently failing
    assert_equal nil, Topic.limit(1).second_to_last
  end
          
          
            
    # assert_equal nil, Topic.limit(1).third # TODO: currently failing
    assert_equal nil, Topic.limit
          
      
autosave_association.rb
          
            )
              # TODO: remove the following line as soon as the return value of
              # callbacks is ignored
          
      
locking_test.rb
          
            (model)
    end
end


# TODO: test against the generated SQL since testing locking behavior itself
# is
          
      
numeric_ext_test.rb
          
            .seconds.in_milliseconds
  end

  # TODO: Remove positive and negative tests when we drop support to
          
      
association_basics.md
          
             id
end

class Todo < ApplicationRecord
  belongs_to :user, primary_key: 'guid'
end
```

When we
          
          
             execute `@user.todos.create` then the `@todo` record will have its
`user_id` value as the `guid` value
          
      
migration_test.rb
          
            

    # TODO: set world_population >= 2**62 to cover 64-bit platforms and test
    # is_a?(Bignum
          
      
fixtures.rb
          
            ) # TODO: Should be an AR::Base type class, or any?
          @model_class = class_name
        else
          
      
base_test.rb
          
            .rating
  end

  # TODO: extend defaults tests to other databases!
  if current_adapter
          
      
routing_test.rb
          
            /01234012340123401234fffff/todos/1', list_todo_path(:list_id => '01234012340123401234fffff', :id => '1')

    get '/lists
          
          
            ::UrlGenerationError){ list_todo_path(:list_id => '2', :id => '1') }
  end

  def test_redirect_argument_error