1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record
Ryuta Kamizono ea65d92f19
Enable Lint/UselessAssignment cop to avoid unused variable warnings (#34904)
* Enable `Lint/UselessAssignment` cop to avoid unused variable warnings

Since we've addressed the warning "assigned but unused variable"
frequently.

370537de05
3040446cec
5ed618e192
76ebafe594

And also, I've found the unused args in c1b14ad which raises no warnings
by the cop, it shows the value of the cop.
2019-01-09 18:09:01 +09:00
..
associations Merge pull request #34806 from bogdan/reuse-find-target 2018-12-27 19:40:10 +09:00
attribute_methods Merge pull request #30973 from k0kubun/prefer-block-parameter 2018-12-20 17:38:32 +09:00
coders
connection_adapters Enable Lint/UselessAssignment cop to avoid unused variable warnings (#34904) 2019-01-09 18:09:01 +09:00
database_configurations
fixture_set
locale
locking
migration
railties Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
relation Consolidate the duplicated code that building range predicate 2019-01-08 16:45:17 +09:00
scoping Module#{define_method,alias_method,undef_method,remove_method} become public since Ruby 2.5 2018-12-21 01:39:18 +09:00
tasks
type
type_caster
validations
aggregations.rb
association_relation.rb
associations.rb
attribute_assignment.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
attribute_decorators.rb
attribute_methods.rb
attributes.rb
autosave_association.rb
base.rb
callbacks.rb
collection_cache_key.rb
connection_handling.rb Raise helpful error when role doesn't exist 2018-12-21 11:10:10 -05:00
core.rb Merge pull request #33985 from eugeneius/attribute_methods_schema_cache 2019-01-03 15:03:06 +01:00
counter_cache.rb
database_configurations.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
define_callbacks.rb
dynamic_matchers.rb
enum.rb Module#{define_method,alias_method,undef_method,remove_method} become public since Ruby 2.5 2018-12-21 01:39:18 +09:00
errors.rb Rename error that occurs when writing on a read 2018-12-07 08:53:47 -05:00
explain.rb
explain_registry.rb
explain_subscriber.rb
fixtures.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
gem_version.rb
inheritance.rb
integration.rb Use the full link URL instead of bit.ly [ci skip] 2018-11-30 21:37:28 +09:00
internal_metadata.rb
legacy_yaml_adapter.rb
log_subscriber.rb
migration.rb Use high level API on migration_context instead of using low level API directly 2018-12-28 10:17:12 +09:00
model_schema.rb Make implicit order column configurable 2018-11-26 16:19:52 -08:00
nested_attributes.rb
no_touching.rb
null_relation.rb
persistence.rb Restore an ability that class level update without giving ids 2019-01-02 06:23:52 +09:00
query_cache.rb
querying.rb Improve ActiveRecord::Querying documentation [ci skip] 2018-11-28 14:50:25 -08:00
railtie.rb Merge pull request #33985 from eugeneius/attribute_methods_schema_cache 2019-01-03 15:03:06 +01:00
readonly_attributes.rb
reflection.rb
relation.rb #create_or_find_by/!: add more tests and fix docs (#34653) 2018-12-08 07:46:30 +09:00
result.rb
runtime_registry.rb
sanitization.rb
schema.rb Deprecate passing migrations_paths to connection.assume_migrated_upto_version 2018-12-28 09:21:09 +09:00
schema_dumper.rb
schema_migration.rb
scoping.rb
secure_token.rb
serialization.rb
statement_cache.rb
store.rb
suppressor.rb
table_metadata.rb
test_databases.rb
test_fixtures.rb Share the connection pool when there are multiple handlers 2019-01-03 16:32:46 -05:00
timestamp.rb Enable Lint/UselessAssignment cop to avoid unused variable warnings (#34904) 2019-01-09 18:09:01 +09:00
touch_later.rb
transactions.rb
translation.rb
type.rb Upgrade Rubocop to 0.61.1 and fix offenses 2018-12-10 19:22:56 -02:00
type_caster.rb
validations.rb
version.rb