From dc80853250e3127394e70a5b83593e9ec775dd41 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Wed, 19 Apr 2023 08:37:53 -0600 Subject: [PATCH] Enable all cops, but explicitly opt each file out (#5608) The idea here being that we can go in and opt each file in as we work on it --- .rubocop.yml | 26 +++++++++---------- .rubocop_todo.yml | 7 ----- Gemfile | 1 + Rakefile | 1 + examples/mongoid_test.rb | 1 + gemfiles/bson_master.gemfile | 1 + gemfiles/bson_min.gemfile | 1 + gemfiles/driver_master.gemfile | 1 + gemfiles/driver_master_jruby.gemfile | 1 + gemfiles/driver_min.gemfile | 1 + gemfiles/driver_min_jruby.gemfile | 1 + gemfiles/driver_oldstable.gemfile | 1 + gemfiles/driver_oldstable_jruby.gemfile | 1 + gemfiles/driver_stable.gemfile | 1 + gemfiles/driver_stable_jruby.gemfile | 1 + gemfiles/i18n-1.0.gemfile | 1 + gemfiles/rails-5.2.gemfile | 1 + gemfiles/rails-6.0.gemfile | 1 + gemfiles/rails-6.1.gemfile | 1 + gemfiles/rails-7.0.gemfile | 1 + gemfiles/rails-master.gemfile | 1 + gemfiles/standard.rb | 1 + lib/mongoid.rb | 1 + lib/mongoid/association.rb | 1 + lib/mongoid/association/accessors.rb | 1 + lib/mongoid/association/bindable.rb | 1 + lib/mongoid/association/builders.rb | 1 + lib/mongoid/association/constrainable.rb | 1 + lib/mongoid/association/depending.rb | 1 + lib/mongoid/association/eager.rb | 1 + lib/mongoid/association/eager_loadable.rb | 1 + lib/mongoid/association/embedded.rb | 1 + lib/mongoid/association/embedded/batchable.rb | 1 + lib/mongoid/association/embedded/cyclic.rb | 1 + lib/mongoid/association/embedded/eager.rb | 1 + .../association/embedded/embedded_in.rb | 1 + .../embedded/embedded_in/binding.rb | 1 + .../embedded/embedded_in/buildable.rb | 1 + .../association/embedded/embedded_in/proxy.rb | 1 + .../association/embedded/embeds_many.rb | 1 + .../embedded/embeds_many/binding.rb | 1 + .../embedded/embeds_many/buildable.rb | 1 + .../association/embedded/embeds_many/proxy.rb | 1 + .../association/embedded/embeds_one.rb | 1 + .../embedded/embeds_one/binding.rb | 1 + .../embedded/embeds_one/buildable.rb | 1 + .../association/embedded/embeds_one/proxy.rb | 1 + lib/mongoid/association/macros.rb | 1 + lib/mongoid/association/many.rb | 1 + lib/mongoid/association/marshalable.rb | 1 + lib/mongoid/association/nested.rb | 1 + lib/mongoid/association/nested/many.rb | 1 + .../association/nested/nested_buildable.rb | 1 + lib/mongoid/association/nested/one.rb | 1 + lib/mongoid/association/one.rb | 1 + lib/mongoid/association/options.rb | 1 + lib/mongoid/association/proxy.rb | 1 + lib/mongoid/association/referenced.rb | 1 + .../association/referenced/auto_save.rb | 1 + .../association/referenced/belongs_to.rb | 1 + .../referenced/belongs_to/binding.rb | 1 + .../referenced/belongs_to/buildable.rb | 1 + .../referenced/belongs_to/eager.rb | 1 + .../referenced/belongs_to/proxy.rb | 1 + .../association/referenced/counter_cache.rb | 1 + .../referenced/has_and_belongs_to_many.rb | 1 + .../has_and_belongs_to_many/binding.rb | 1 + .../has_and_belongs_to_many/buildable.rb | 1 + .../has_and_belongs_to_many/eager.rb | 1 + .../has_and_belongs_to_many/proxy.rb | 1 + .../association/referenced/has_many.rb | 1 + .../referenced/has_many/binding.rb | 1 + .../referenced/has_many/buildable.rb | 1 + .../association/referenced/has_many/eager.rb | 1 + .../referenced/has_many/enumerable.rb | 1 + .../association/referenced/has_many/proxy.rb | 1 + lib/mongoid/association/referenced/has_one.rb | 1 + .../association/referenced/has_one/binding.rb | 1 + .../referenced/has_one/buildable.rb | 1 + .../association/referenced/has_one/eager.rb | 1 + .../association/referenced/has_one/proxy.rb | 1 + .../association/referenced/syncable.rb | 1 + lib/mongoid/association/reflections.rb | 1 + lib/mongoid/association/relatable.rb | 1 + lib/mongoid/atomic.rb | 1 + lib/mongoid/atomic/modifiers.rb | 1 + lib/mongoid/atomic/paths.rb | 1 + lib/mongoid/atomic/paths/embedded.rb | 1 + lib/mongoid/atomic/paths/embedded/many.rb | 1 + lib/mongoid/atomic/paths/embedded/one.rb | 1 + lib/mongoid/atomic/paths/root.rb | 1 + lib/mongoid/attributes.rb | 1 + lib/mongoid/attributes/dynamic.rb | 1 + lib/mongoid/attributes/nested.rb | 1 + lib/mongoid/attributes/processing.rb | 1 + lib/mongoid/attributes/projector.rb | 1 + lib/mongoid/attributes/readonly.rb | 1 + lib/mongoid/cacheable.rb | 1 + lib/mongoid/changeable.rb | 1 + lib/mongoid/clients.rb | 1 + lib/mongoid/clients/factory.rb | 1 + lib/mongoid/clients/options.rb | 1 + lib/mongoid/clients/sessions.rb | 1 + lib/mongoid/clients/storage_options.rb | 1 + lib/mongoid/clients/validators.rb | 1 + lib/mongoid/clients/validators/storage.rb | 1 + lib/mongoid/collection_configurable.rb | 1 + lib/mongoid/composable.rb | 1 + lib/mongoid/config.rb | 1 + lib/mongoid/config/defaults.rb | 1 + lib/mongoid/config/encryption.rb | 1 + lib/mongoid/config/environment.rb | 1 + lib/mongoid/config/introspection.rb | 1 + lib/mongoid/config/options.rb | 1 + lib/mongoid/config/validators.rb | 1 + .../config/validators/async_query_executor.rb | 1 + lib/mongoid/config/validators/client.rb | 1 + lib/mongoid/config/validators/option.rb | 1 + lib/mongoid/contextual.rb | 1 + lib/mongoid/contextual/aggregable.rb | 1 + lib/mongoid/contextual/aggregable/memory.rb | 1 + lib/mongoid/contextual/aggregable/mongo.rb | 1 + lib/mongoid/contextual/aggregable/none.rb | 1 + lib/mongoid/contextual/atomic.rb | 1 + lib/mongoid/contextual/command.rb | 1 + lib/mongoid/contextual/geo_near.rb | 1 + lib/mongoid/contextual/map_reduce.rb | 1 + lib/mongoid/contextual/memory.rb | 1 + lib/mongoid/contextual/mongo.rb | 1 + .../contextual/mongo/documents_loader.rb | 1 + lib/mongoid/contextual/none.rb | 1 + lib/mongoid/contextual/queryable.rb | 1 + lib/mongoid/copyable.rb | 1 + lib/mongoid/criteria.rb | 1 + lib/mongoid/criteria/findable.rb | 1 + lib/mongoid/criteria/includable.rb | 1 + lib/mongoid/criteria/inspectable.rb | 1 + lib/mongoid/criteria/marshalable.rb | 1 + lib/mongoid/criteria/modifiable.rb | 1 + lib/mongoid/criteria/options.rb | 1 + lib/mongoid/criteria/permission.rb | 1 + lib/mongoid/criteria/queryable.rb | 1 + lib/mongoid/criteria/queryable/aggregable.rb | 1 + lib/mongoid/criteria/queryable/expandable.rb | 1 + lib/mongoid/criteria/queryable/extensions.rb | 1 + .../criteria/queryable/extensions/array.rb | 1 + .../queryable/extensions/big_decimal.rb | 1 + .../criteria/queryable/extensions/boolean.rb | 1 + .../criteria/queryable/extensions/date.rb | 1 + .../queryable/extensions/date_time.rb | 1 + .../criteria/queryable/extensions/hash.rb | 1 + .../queryable/extensions/nil_class.rb | 1 + .../criteria/queryable/extensions/numeric.rb | 1 + .../criteria/queryable/extensions/object.rb | 1 + .../criteria/queryable/extensions/range.rb | 1 + .../criteria/queryable/extensions/regexp.rb | 1 + .../criteria/queryable/extensions/set.rb | 1 + .../criteria/queryable/extensions/string.rb | 1 + .../criteria/queryable/extensions/symbol.rb | 1 + .../criteria/queryable/extensions/time.rb | 1 + .../queryable/extensions/time_with_zone.rb | 1 + lib/mongoid/criteria/queryable/key.rb | 1 + lib/mongoid/criteria/queryable/macroable.rb | 1 + lib/mongoid/criteria/queryable/mergeable.rb | 1 + lib/mongoid/criteria/queryable/optional.rb | 1 + lib/mongoid/criteria/queryable/options.rb | 1 + lib/mongoid/criteria/queryable/pipeline.rb | 1 + lib/mongoid/criteria/queryable/selectable.rb | 1 + lib/mongoid/criteria/queryable/selector.rb | 1 + lib/mongoid/criteria/queryable/smash.rb | 1 + lib/mongoid/criteria/queryable/storable.rb | 1 + lib/mongoid/criteria/scopable.rb | 1 + lib/mongoid/criteria/translator.rb | 1 + lib/mongoid/deprecable.rb | 1 + lib/mongoid/deprecation.rb | 1 + lib/mongoid/document.rb | 1 + lib/mongoid/encryptable.rb | 1 + lib/mongoid/equality.rb | 1 + lib/mongoid/errors.rb | 1 + lib/mongoid/errors/ambiguous_relationship.rb | 1 + lib/mongoid/errors/attribute_not_loaded.rb | 1 + lib/mongoid/errors/callback.rb | 1 + .../errors/create_collection_failure.rb | 1 + .../errors/criteria_argument_required.rb | 1 + lib/mongoid/errors/delete_restriction.rb | 1 + lib/mongoid/errors/document_not_destroyed.rb | 1 + lib/mongoid/errors/document_not_found.rb | 1 + lib/mongoid/errors/drop_collection_failure.rb | 1 + lib/mongoid/errors/empty_config_file.rb | 1 + lib/mongoid/errors/immutable_attribute.rb | 1 + .../in_memory_collation_not_supported.rb | 1 + .../errors/invalid_async_query_executor.rb | 1 + .../invalid_auto_encryption_configuration.rb | 1 + lib/mongoid/errors/invalid_collection.rb | 1 + lib/mongoid/errors/invalid_config_file.rb | 1 + lib/mongoid/errors/invalid_config_option.rb | 1 + .../errors/invalid_dependent_strategy.rb | 1 + .../invalid_discriminator_key_target.rb | 1 + .../errors/invalid_dot_dollar_assignment.rb | 1 + .../errors/invalid_elem_match_operator.rb | 1 + .../invalid_estimated_count_criteria.rb | 1 + .../errors/invalid_estimated_count_scoping.rb | 1 + .../errors/invalid_expression_operator.rb | 1 + lib/mongoid/errors/invalid_field.rb | 1 + lib/mongoid/errors/invalid_field_operator.rb | 1 + lib/mongoid/errors/invalid_field_option.rb | 1 + lib/mongoid/errors/invalid_field_type.rb | 1 + lib/mongoid/errors/invalid_find.rb | 1 + .../invalid_global_executor_concurrency.rb | 1 + lib/mongoid/errors/invalid_includes.rb | 1 + lib/mongoid/errors/invalid_index.rb | 1 + lib/mongoid/errors/invalid_options.rb | 1 + lib/mongoid/errors/invalid_path.rb | 1 + .../errors/invalid_persistence_option.rb | 1 + lib/mongoid/errors/invalid_query.rb | 1 + lib/mongoid/errors/invalid_relation.rb | 1 + lib/mongoid/errors/invalid_relation_option.rb | 1 + lib/mongoid/errors/invalid_scope.rb | 1 + lib/mongoid/errors/invalid_session_nesting.rb | 1 + .../invalid_set_polymorphic_relation.rb | 1 + lib/mongoid/errors/invalid_storage_options.rb | 1 + lib/mongoid/errors/invalid_storage_parent.rb | 1 + lib/mongoid/errors/invalid_time.rb | 1 + .../errors/invalid_transaction_nesting.rb | 1 + lib/mongoid/errors/inverse_not_found.rb | 1 + .../errors/mixed_client_configuration.rb | 1 + lib/mongoid/errors/mixed_relations.rb | 1 + lib/mongoid/errors/mongoid_error.rb | 1 + .../nested_attributes_metadata_not_found.rb | 1 + lib/mongoid/errors/no_client_config.rb | 1 + lib/mongoid/errors/no_client_database.rb | 1 + lib/mongoid/errors/no_client_hosts.rb | 1 + lib/mongoid/errors/no_clients_config.rb | 1 + lib/mongoid/errors/no_default_client.rb | 1 + lib/mongoid/errors/no_environment.rb | 1 + lib/mongoid/errors/no_map_reduce_output.rb | 1 + lib/mongoid/errors/no_metadata.rb | 1 + lib/mongoid/errors/no_parent.rb | 1 + lib/mongoid/errors/readonly_attribute.rb | 1 + lib/mongoid/errors/readonly_document.rb | 1 + lib/mongoid/errors/rollback.rb | 1 + lib/mongoid/errors/scope_overwrite.rb | 1 + lib/mongoid/errors/sessions_not_supported.rb | 1 + .../too_many_nested_attribute_records.rb | 1 + lib/mongoid/errors/transaction_error.rb | 1 + .../errors/transactions_not_supported.rb | 1 + lib/mongoid/errors/unknown_attribute.rb | 1 + lib/mongoid/errors/unknown_model.rb | 1 + lib/mongoid/errors/unsaved_document.rb | 1 + lib/mongoid/errors/unsupported_javascript.rb | 1 + lib/mongoid/errors/validations.rb | 1 + lib/mongoid/evolvable.rb | 1 + lib/mongoid/extensions.rb | 1 + lib/mongoid/extensions/array.rb | 1 + lib/mongoid/extensions/big_decimal.rb | 1 + lib/mongoid/extensions/binary.rb | 1 + lib/mongoid/extensions/boolean.rb | 1 + lib/mongoid/extensions/date.rb | 1 + lib/mongoid/extensions/date_time.rb | 1 + lib/mongoid/extensions/decimal128.rb | 1 + lib/mongoid/extensions/false_class.rb | 1 + lib/mongoid/extensions/float.rb | 1 + lib/mongoid/extensions/hash.rb | 1 + lib/mongoid/extensions/integer.rb | 1 + lib/mongoid/extensions/module.rb | 1 + lib/mongoid/extensions/nil_class.rb | 1 + lib/mongoid/extensions/object.rb | 1 + lib/mongoid/extensions/object_id.rb | 1 + lib/mongoid/extensions/range.rb | 1 + lib/mongoid/extensions/raw_value.rb | 1 + lib/mongoid/extensions/regexp.rb | 1 + lib/mongoid/extensions/set.rb | 1 + lib/mongoid/extensions/string.rb | 1 + lib/mongoid/extensions/symbol.rb | 1 + lib/mongoid/extensions/time.rb | 1 + lib/mongoid/extensions/time_with_zone.rb | 1 + lib/mongoid/extensions/true_class.rb | 1 + lib/mongoid/factory.rb | 1 + lib/mongoid/fields.rb | 1 + lib/mongoid/fields/encrypted.rb | 1 + lib/mongoid/fields/foreign_key.rb | 1 + lib/mongoid/fields/localized.rb | 1 + lib/mongoid/fields/standard.rb | 1 + lib/mongoid/fields/validators.rb | 1 + lib/mongoid/fields/validators/macro.rb | 1 + lib/mongoid/findable.rb | 1 + lib/mongoid/indexable.rb | 1 + lib/mongoid/indexable/specification.rb | 1 + lib/mongoid/indexable/validators/options.rb | 1 + lib/mongoid/inspectable.rb | 1 + lib/mongoid/interceptable.rb | 1 + lib/mongoid/loadable.rb | 1 + lib/mongoid/loggable.rb | 1 + lib/mongoid/matchable.rb | 1 + lib/mongoid/matcher.rb | 1 + lib/mongoid/matcher/all.rb | 1 + lib/mongoid/matcher/and.rb | 1 + lib/mongoid/matcher/bits.rb | 1 + lib/mongoid/matcher/bits_all_clear.rb | 1 + lib/mongoid/matcher/bits_all_set.rb | 1 + lib/mongoid/matcher/bits_any_clear.rb | 1 + lib/mongoid/matcher/bits_any_set.rb | 1 + lib/mongoid/matcher/elem_match.rb | 1 + lib/mongoid/matcher/elem_match_expression.rb | 1 + lib/mongoid/matcher/eq.rb | 1 + lib/mongoid/matcher/eq_impl.rb | 1 + lib/mongoid/matcher/eq_impl_with_regexp.rb | 1 + lib/mongoid/matcher/exists.rb | 1 + lib/mongoid/matcher/expression.rb | 1 + lib/mongoid/matcher/expression_operator.rb | 1 + lib/mongoid/matcher/field_expression.rb | 1 + lib/mongoid/matcher/field_operator.rb | 1 + lib/mongoid/matcher/gt.rb | 1 + lib/mongoid/matcher/gte.rb | 1 + lib/mongoid/matcher/in.rb | 1 + lib/mongoid/matcher/lt.rb | 1 + lib/mongoid/matcher/lte.rb | 1 + lib/mongoid/matcher/mod.rb | 1 + lib/mongoid/matcher/ne.rb | 1 + lib/mongoid/matcher/nin.rb | 1 + lib/mongoid/matcher/nor.rb | 1 + lib/mongoid/matcher/not.rb | 1 + lib/mongoid/matcher/or.rb | 1 + lib/mongoid/matcher/regex.rb | 1 + lib/mongoid/matcher/size.rb | 1 + lib/mongoid/matcher/type.rb | 1 + lib/mongoid/persistable.rb | 1 + lib/mongoid/persistable/creatable.rb | 1 + lib/mongoid/persistable/deletable.rb | 1 + lib/mongoid/persistable/destroyable.rb | 1 + lib/mongoid/persistable/incrementable.rb | 1 + lib/mongoid/persistable/logical.rb | 1 + lib/mongoid/persistable/maxable.rb | 1 + lib/mongoid/persistable/minable.rb | 1 + lib/mongoid/persistable/multipliable.rb | 1 + lib/mongoid/persistable/poppable.rb | 1 + lib/mongoid/persistable/pullable.rb | 1 + lib/mongoid/persistable/pushable.rb | 1 + lib/mongoid/persistable/renamable.rb | 1 + lib/mongoid/persistable/savable.rb | 1 + lib/mongoid/persistable/settable.rb | 1 + lib/mongoid/persistable/unsettable.rb | 1 + lib/mongoid/persistable/updatable.rb | 1 + lib/mongoid/persistable/upsertable.rb | 1 + lib/mongoid/persistence_context.rb | 1 + lib/mongoid/positional.rb | 1 + lib/mongoid/query_cache.rb | 1 + lib/mongoid/railtie.rb | 1 + lib/mongoid/railties/console_sandbox.rb | 1 + lib/mongoid/railties/controller_runtime.rb | 1 + lib/mongoid/railties/database.rake | 1 + lib/mongoid/reloadable.rb | 1 + lib/mongoid/scopable.rb | 1 + lib/mongoid/selectable.rb | 1 + lib/mongoid/serializable.rb | 1 + lib/mongoid/shardable.rb | 1 + lib/mongoid/stateful.rb | 1 + lib/mongoid/stringified_symbol.rb | 1 + lib/mongoid/tasks/database.rake | 1 + lib/mongoid/tasks/database.rb | 1 + lib/mongoid/tasks/encryption.rake | 1 + lib/mongoid/tasks/encryption.rb | 1 + lib/mongoid/threaded.rb | 1 + lib/mongoid/threaded/lifecycle.rb | 1 + lib/mongoid/timestamps.rb | 1 + lib/mongoid/timestamps/created.rb | 1 + lib/mongoid/timestamps/created/short.rb | 1 + lib/mongoid/timestamps/short.rb | 1 + lib/mongoid/timestamps/timeless.rb | 1 + lib/mongoid/timestamps/updated.rb | 1 + lib/mongoid/timestamps/updated/short.rb | 1 + lib/mongoid/touchable.rb | 1 + lib/mongoid/traversable.rb | 1 + lib/mongoid/utils.rb | 1 + lib/mongoid/validatable.rb | 1 + lib/mongoid/validatable/associated.rb | 1 + lib/mongoid/validatable/format.rb | 1 + lib/mongoid/validatable/length.rb | 1 + lib/mongoid/validatable/localizable.rb | 1 + lib/mongoid/validatable/macros.rb | 1 + lib/mongoid/validatable/presence.rb | 1 + lib/mongoid/validatable/queryable.rb | 1 + lib/mongoid/validatable/uniqueness.rb | 1 + lib/mongoid/version.rb | 1 + lib/mongoid/warnings.rb | 1 + .../mongoid/config/config_generator.rb | 1 + .../mongoid/config/templates/mongoid.rb | 1 + .../mongoid/model/model_generator.rb | 1 + lib/rails/generators/mongoid_generator.rb | 1 + lib/rails/mongoid.rb | 1 + mongoid.gemspec | 1 + perf/benchmark.rb | 1 + perf/benchmark_ips.rb | 1 + perf/benchmark_ips_iteration_cases.rb | 1 + perf/gc_suite.rb | 1 + perf/models.rb | 1 + perf/profile.rb | 1 + spec/integration/app_spec.rb | 1 + .../associations/belongs_to_spec.rb | 1 + .../associations/embedded_dirty_spec.rb | 1 + .../integration/associations/embedded_spec.rb | 1 + .../associations/embeds_many_spec.rb | 1 + .../associations/embeds_one_spec.rb | 1 + .../associations/foreign_key_spec.rb | 1 + .../associations/foreign_key_spec_models.rb | 1 + .../has_and_belongs_to_many_spec.rb | 1 + .../integration/associations/has_many_spec.rb | 1 + spec/integration/associations/has_one_spec.rb | 1 + .../nested_attributes_assignment_spec.rb | 1 + .../associations/reverse_population_spec.rb | 1 + .../reverse_population_spec_models.rb | 1 + .../associations/scope_option_spec.rb | 1 + spec/integration/atomic/modifiers_spec.rb | 1 + spec/integration/bson_regexp_raw_spec.rb | 1 + spec/integration/callbacks_models.rb | 1 + spec/integration/callbacks_spec.rb | 1 + spec/integration/contextual/empty_spec.rb | 1 + spec/integration/criteria/alias_query_spec.rb | 1 + spec/integration/criteria/date_field_spec.rb | 1 + .../criteria/default_scope_spec.rb | 1 + spec/integration/criteria/logical_spec.rb | 1 + spec/integration/criteria/range_spec.rb | 1 + spec/integration/criteria/raw_value_spec.rb | 1 + .../criteria/time_with_zone_spec.rb | 1 + spec/integration/discriminator_key_spec.rb | 1 + spec/integration/discriminator_value_spec.rb | 1 + spec/integration/document_spec.rb | 1 + spec/integration/dots_and_dollars_spec.rb | 1 + spec/integration/encryption_spec.rb | 1 + spec/integration/i18n_fallbacks_spec.rb | 1 + spec/integration/matcher_examples_spec.rb | 1 + spec/integration/matcher_operator_spec.rb | 1 + spec/integration/matcher_spec.rb | 1 + .../persistence/range_field_spec.rb | 1 + spec/integration/server_query_spec.rb | 1 + spec/integration/shardable_spec.rb | 1 + .../stringified_symbol_field_spec.rb | 1 + spec/lite_spec_helper.rb | 1 + spec/mongoid/association/accessors_spec.rb | 1 + spec/mongoid/association/auto_save_spec.rb | 1 + spec/mongoid/association/builders_spec.rb | 1 + .../mongoid/association/constrainable_spec.rb | 1 + .../mongoid/association/counter_cache_spec.rb | 1 + spec/mongoid/association/depending_spec.rb | 1 + spec/mongoid/association/eager_spec.rb | 1 + .../association/embedded/cyclic_spec.rb | 1 + .../association/embedded/dirty_spec.rb | 1 + .../embedded/embedded_in/binding_spec.rb | 1 + .../embedded/embedded_in/buildable_spec.rb | 1 + .../embedded/embedded_in/proxy_spec.rb | 1 + .../association/embedded/embedded_in_spec.rb | 1 + .../embedded/embeds_many/binding_spec.rb | 1 + .../embedded/embeds_many/buildable_spec.rb | 1 + .../embedded/embeds_many/proxy_spec.rb | 1 + .../embedded/embeds_many_models.rb | 1 + .../embedded/embeds_many_query_spec.rb | 1 + .../association/embedded/embeds_many_spec.rb | 1 + .../embedded/embeds_one/binding_spec.rb | 1 + .../embedded/embeds_one/buildable_spec.rb | 1 + .../embedded/embeds_one/proxy_spec.rb | 1 + .../embedded/embeds_one_dnl_models.rb | 1 + .../association/embedded/embeds_one_models.rb | 1 + .../embedded/embeds_one_query_spec.rb | 1 + .../association/embedded/embeds_one_spec.rb | 1 + spec/mongoid/association/macros_spec.rb | 1 + spec/mongoid/association/nested/many_spec.rb | 1 + spec/mongoid/association/nested/one_spec.rb | 1 + spec/mongoid/association/options_spec.rb | 1 + spec/mongoid/association/polymorphic_spec.rb | 1 + .../referenced/belongs_to/binding_spec.rb | 1 + .../referenced/belongs_to/buildable_spec.rb | 1 + .../referenced/belongs_to/eager_spec.rb | 1 + .../referenced/belongs_to/proxy_spec.rb | 1 + .../referenced/belongs_to_models.rb | 1 + .../referenced/belongs_to_query_spec.rb | 1 + .../association/referenced/belongs_to_spec.rb | 1 + .../has_and_belongs_to_many/binding_spec.rb | 1 + .../has_and_belongs_to_many/buildable_spec.rb | 1 + .../has_and_belongs_to_many/eager_spec.rb | 1 + .../proxy_persistence_spec.rb | 1 + .../has_and_belongs_to_many/proxy_spec.rb | 1 + .../has_and_belongs_to_many_models.rb | 1 + .../has_and_belongs_to_many_query_spec.rb | 1 + .../has_and_belongs_to_many_spec.rb | 1 + .../referenced/has_many/binding_spec.rb | 1 + .../referenced/has_many/buildable_spec.rb | 1 + .../referenced/has_many/eager_spec.rb | 1 + .../referenced/has_many/enumerable_spec.rb | 1 + .../referenced/has_many/proxy_query_spec.rb | 1 + .../referenced/has_many/proxy_spec.rb | 1 + .../association/referenced/has_many_models.rb | 1 + .../referenced/has_many_query_spec.rb | 1 + .../association/referenced/has_many_spec.rb | 1 + .../referenced/has_one/binding_spec.rb | 1 + .../referenced/has_one/buildable_spec.rb | 1 + .../referenced/has_one/eager_spec.rb | 1 + .../referenced/has_one/proxy_spec.rb | 1 + .../association/referenced/has_one_models.rb | 1 + .../referenced/has_one_query_spec.rb | 1 + .../association/referenced/has_one_spec.rb | 1 + spec/mongoid/association/reflections_spec.rb | 1 + spec/mongoid/association/syncable_spec.rb | 1 + spec/mongoid/association_spec.rb | 1 + spec/mongoid/atomic/modifiers_spec.rb | 1 + .../atomic/paths/embedded/many_spec.rb | 1 + .../mongoid/atomic/paths/embedded/one_spec.rb | 1 + spec/mongoid/atomic/paths/root_spec.rb | 1 + spec/mongoid/atomic/paths_spec.rb | 1 + spec/mongoid/atomic_spec.rb | 1 + spec/mongoid/attributes/dynamic_spec.rb | 1 + spec/mongoid/attributes/nested_spec.rb | 1 + spec/mongoid/attributes/nested_spec_models.rb | 1 + spec/mongoid/attributes/projector_spec.rb | 1 + spec/mongoid/attributes/readonly_spec.rb | 1 + spec/mongoid/attributes_spec.rb | 1 + spec/mongoid/cacheable_spec.rb | 1 + spec/mongoid/changeable_spec.rb | 1 + spec/mongoid/clients/factory_spec.rb | 1 + spec/mongoid/clients/options_spec.rb | 1 + spec/mongoid/clients/sessions_spec.rb | 1 + spec/mongoid/clients/transactions_spec.rb | 1 + .../clients/transactions_spec_models.rb | 1 + spec/mongoid/clients_spec.rb | 1 + spec/mongoid/collection_configurable_spec.rb | 1 + spec/mongoid/composable_spec.rb | 1 + spec/mongoid/config/defaults_spec.rb | 1 + spec/mongoid/config/encryption_spec.rb | 1 + spec/mongoid/config/environment_spec.rb | 1 + spec/mongoid/config/introspection_spec.rb | 1 + spec/mongoid/config/options_spec.rb | 1 + spec/mongoid/config_spec.rb | 1 + .../contextual/aggregable/memory_spec.rb | 1 + .../aggregable/memory_table_spec.rb | 1 + .../contextual/aggregable/mongo_spec.rb | 1 + .../contextual/aggregable/none_spec.rb | 1 + spec/mongoid/contextual/atomic_spec.rb | 1 + spec/mongoid/contextual/geo_near_spec.rb | 1 + spec/mongoid/contextual/map_reduce_spec.rb | 1 + spec/mongoid/contextual/memory_spec.rb | 1 + .../contextual/mongo/documents_loader_spec.rb | 1 + spec/mongoid/contextual/mongo_spec.rb | 1 + spec/mongoid/contextual/none_spec.rb | 1 + spec/mongoid/copyable_spec.rb | 1 + spec/mongoid/copyable_spec_models.rb | 1 + spec/mongoid/criteria/findable_spec.rb | 1 + spec/mongoid/criteria/includable_spec.rb | 1 + .../criteria/includable_spec_models.rb | 1 + spec/mongoid/criteria/inspectable_spec.rb | 1 + spec/mongoid/criteria/marshalable_spec.rb | 1 + spec/mongoid/criteria/modifiable_spec.rb | 1 + spec/mongoid/criteria/options_spec.rb | 1 + .../criteria/queryable/aggregable_spec.rb | 1 + .../criteria/queryable/expandable_spec.rb | 1 + .../queryable/extensions/array_spec.rb | 1 + .../queryable/extensions/big_decimal_spec.rb | 1 + .../queryable/extensions/boolean_spec.rb | 1 + .../queryable/extensions/date_spec.rb | 1 + .../queryable/extensions/date_time_spec.rb | 1 + .../queryable/extensions/float_spec.rb | 1 + .../queryable/extensions/hash_spec.rb | 1 + .../queryable/extensions/integer_spec.rb | 1 + .../queryable/extensions/nil_class_spec.rb | 1 + .../queryable/extensions/numeric_spec.rb | 1 + .../queryable/extensions/object_spec.rb | 1 + .../queryable/extensions/range_spec.rb | 1 + .../queryable/extensions/regexp_raw_spec.rb | 1 + .../queryable/extensions/regexp_spec.rb | 1 + .../criteria/queryable/extensions/set_spec.rb | 1 + .../queryable/extensions/string_spec.rb | 1 + .../queryable/extensions/symbol_spec.rb | 1 + .../queryable/extensions/time_spec.rb | 1 + .../extensions/time_with_zone_spec.rb | 1 + spec/mongoid/criteria/queryable/key_spec.rb | 1 + .../criteria/queryable/mergeable_spec.rb | 1 + .../criteria/queryable/optional_spec.rb | 1 + .../criteria/queryable/options_spec.rb | 1 + .../criteria/queryable/pipeline_spec.rb | 1 + .../criteria/queryable/queryable_spec.rb | 1 + .../queryable/selectable_logical_spec.rb | 1 + .../queryable/selectable_shared_examples.rb | 1 + .../criteria/queryable/selectable_spec.rb | 1 + .../queryable/selectable_where_spec.rb | 1 + .../criteria/queryable/selector_spec.rb | 1 + spec/mongoid/criteria/queryable/smash_spec.rb | 1 + .../criteria/queryable/storable_spec.rb | 1 + spec/mongoid/criteria/scopable_spec.rb | 1 + spec/mongoid/criteria/translator_spec.rb | 1 + spec/mongoid/criteria_projection_spec.rb | 1 + spec/mongoid/criteria_spec.rb | 1 + spec/mongoid/document_fields_spec.rb | 1 + .../document_persistence_context_spec.rb | 1 + spec/mongoid/document_query_spec.rb | 1 + spec/mongoid/document_spec.rb | 1 + spec/mongoid/equality_spec.rb | 1 + .../errors/ambiguous_relationship_spec.rb | 1 + .../errors/attribute_not_loaded_spec.rb | 1 + spec/mongoid/errors/callback_spec.rb | 1 + .../mongoid/errors/delete_restriction_spec.rb | 1 + .../errors/document_not_destroyed_spec.rb | 1 + .../mongoid/errors/document_not_found_spec.rb | 1 + .../mongoid/errors/invalid_collection_spec.rb | 1 + .../errors/invalid_config_file_spec.rb | 1 + .../errors/invalid_config_option_spec.rb | 1 + .../errors/invalid_field_option_spec.rb | 1 + spec/mongoid/errors/invalid_field_spec.rb | 1 + .../mongoid/errors/invalid_field_type_spec.rb | 1 + spec/mongoid/errors/invalid_find_spec.rb | 1 + spec/mongoid/errors/invalid_includes_spec.rb | 1 + spec/mongoid/errors/invalid_index_spec.rb | 1 + spec/mongoid/errors/invalid_options_spec.rb | 1 + spec/mongoid/errors/invalid_path_spec.rb | 1 + spec/mongoid/errors/invalid_relation_spec.rb | 1 + spec/mongoid/errors/invalid_scope_spec.rb | 1 + .../invalid_set_polymorphic_relation_spec.rb | 1 + .../errors/invalid_storage_options_spec.rb | 1 + spec/mongoid/errors/invalid_time_spec.rb | 1 + spec/mongoid/errors/inverse_not_found_spec.rb | 1 + .../errors/mixed_client_configuration_spec.rb | 1 + spec/mongoid/errors/mixed_relations_spec.rb | 1 + spec/mongoid/errors/mongoid_error_spec.rb | 1 + ...sted_attributes_metadata_not_found_spec.rb | 1 + spec/mongoid/errors/no_client_config_spec.rb | 1 + .../mongoid/errors/no_client_database_spec.rb | 1 + spec/mongoid/errors/no_client_hosts_spec.rb | 1 + spec/mongoid/errors/no_clients_config_spec.rb | 1 + spec/mongoid/errors/no_environment_spec.rb | 1 + .../errors/no_map_reduce_output_spec.rb | 1 + spec/mongoid/errors/no_metadata_spec.rb | 1 + spec/mongoid/errors/no_parent_spec.rb | 1 + .../mongoid/errors/readonly_attribute_spec.rb | 1 + spec/mongoid/errors/readonly_document_spec.rb | 1 + spec/mongoid/errors/scope_overwrite_spec.rb | 1 + .../too_many_nested_attribute_records_spec.rb | 1 + spec/mongoid/errors/unknown_attribute_spec.rb | 1 + spec/mongoid/errors/unsaved_document_spec.rb | 1 + .../errors/unsupported_javascript_spec.rb | 1 + spec/mongoid/errors/validations_spec.rb | 1 + spec/mongoid/extensions/array_spec.rb | 1 + spec/mongoid/extensions/big_decimal_spec.rb | 1 + spec/mongoid/extensions/binary_spec.rb | 1 + spec/mongoid/extensions/boolean_spec.rb | 1 + .../extensions/date_class_mongoize_spec.rb | 1 + spec/mongoid/extensions/date_spec.rb | 1 + spec/mongoid/extensions/date_time_spec.rb | 1 + spec/mongoid/extensions/decimal128_spec.rb | 1 + spec/mongoid/extensions/false_class_spec.rb | 1 + spec/mongoid/extensions/float_spec.rb | 1 + spec/mongoid/extensions/hash_spec.rb | 1 + spec/mongoid/extensions/integer_spec.rb | 1 + spec/mongoid/extensions/module_spec.rb | 1 + spec/mongoid/extensions/nil_class_spec.rb | 1 + spec/mongoid/extensions/object_id_spec.rb | 1 + spec/mongoid/extensions/object_spec.rb | 1 + spec/mongoid/extensions/range_spec.rb | 1 + spec/mongoid/extensions/raw_value_spec.rb | 1 + spec/mongoid/extensions/regexp_spec.rb | 1 + spec/mongoid/extensions/set_spec.rb | 1 + spec/mongoid/extensions/string_spec.rb | 1 + .../extensions/stringified_symbol_spec.rb | 1 + spec/mongoid/extensions/symbol_spec.rb | 1 + spec/mongoid/extensions/time_spec.rb | 1 + .../mongoid/extensions/time_with_zone_spec.rb | 1 + spec/mongoid/extensions/true_class_spec.rb | 1 + spec/mongoid/factory_spec.rb | 1 + spec/mongoid/fields/foreign_key_spec.rb | 1 + spec/mongoid/fields/localized_spec.rb | 1 + spec/mongoid/fields/standard_spec.rb | 1 + spec/mongoid/fields_spec.rb | 1 + spec/mongoid/findable_spec.rb | 1 + spec/mongoid/indexable/specification_spec.rb | 1 + spec/mongoid/indexable_spec.rb | 1 + spec/mongoid/inspectable_spec.rb | 1 + spec/mongoid/interceptable_spec.rb | 1 + spec/mongoid/interceptable_spec_models.rb | 1 + spec/mongoid/loading_spec.rb | 1 + spec/mongoid/loggable_spec.rb | 1 + .../mongoid/matcher/extract_attribute_spec.rb | 1 + spec/mongoid/mongoizable_spec.rb | 1 + spec/mongoid/persistable/creatable_spec.rb | 1 + spec/mongoid/persistable/deletable_spec.rb | 1 + spec/mongoid/persistable/destroyable_spec.rb | 1 + .../mongoid/persistable/incrementable_spec.rb | 1 + spec/mongoid/persistable/logical_spec.rb | 1 + spec/mongoid/persistable/maxable_spec.rb | 1 + spec/mongoid/persistable/minable_spec.rb | 1 + spec/mongoid/persistable/multipliable_spec.rb | 1 + spec/mongoid/persistable/poppable_spec.rb | 1 + spec/mongoid/persistable/pullable_spec.rb | 1 + spec/mongoid/persistable/pushable_spec.rb | 1 + spec/mongoid/persistable/renamable_spec.rb | 1 + spec/mongoid/persistable/savable_spec.rb | 1 + spec/mongoid/persistable/settable_spec.rb | 1 + spec/mongoid/persistable/unsettable_spec.rb | 1 + spec/mongoid/persistable/updatable_spec.rb | 1 + spec/mongoid/persistable/upsertable_spec.rb | 1 + spec/mongoid/persistable_spec.rb | 1 + spec/mongoid/persistence_context_spec.rb | 1 + spec/mongoid/positional_spec.rb | 1 + spec/mongoid/query_cache_middleware_spec.rb | 1 + spec/mongoid/query_cache_spec.rb | 1 + spec/mongoid/railties/console_sandbox_spec.rb | 1 + spec/mongoid/relations/proxy_spec.rb | 1 + spec/mongoid/reloadable_spec.rb | 1 + spec/mongoid/scopable_spec.rb | 1 + spec/mongoid/selectable_spec.rb | 1 + spec/mongoid/serializable_spec.rb | 1 + spec/mongoid/shardable_models.rb | 1 + spec/mongoid/shardable_spec.rb | 1 + spec/mongoid/stateful_spec.rb | 1 + spec/mongoid/tasks/database_rake_spec.rb | 1 + spec/mongoid/tasks/database_spec.rb | 1 + spec/mongoid/tasks/encryption_spec.rb | 1 + spec/mongoid/threaded_spec.rb | 1 + spec/mongoid/timestamps/created/short_spec.rb | 1 + spec/mongoid/timestamps/created_spec.rb | 1 + spec/mongoid/timestamps/timeless_spec.rb | 1 + spec/mongoid/timestamps/updated/short_spec.rb | 1 + spec/mongoid/timestamps/updated_spec.rb | 1 + spec/mongoid/timestamps_spec.rb | 1 + spec/mongoid/timestamps_spec_models.rb | 1 + spec/mongoid/touchable_spec.rb | 1 + spec/mongoid/touchable_spec_models.rb | 1 + spec/mongoid/traversable_spec.rb | 1 + spec/mongoid/validatable/associated_spec.rb | 1 + spec/mongoid/validatable/format_spec.rb | 1 + spec/mongoid/validatable/length_spec.rb | 1 + spec/mongoid/validatable/numericality_spec.rb | 1 + spec/mongoid/validatable/presence_spec.rb | 1 + spec/mongoid/validatable/uniqueness_spec.rb | 1 + spec/mongoid/validatable_spec.rb | 1 + spec/mongoid/warnings_spec.rb | 1 + spec/mongoid_spec.rb | 1 + .../controller_runtime_spec.rb | 1 + spec/rails/mongoid_spec.rb | 1 + spec/spec_helper.rb | 1 + spec/support/authorization.rb | 1 + spec/support/client_registry.rb | 1 + spec/support/constraints.rb | 1 + spec/support/crypt.rb | 1 + spec/support/crypt/models.rb | 1 + spec/support/expectations.rb | 1 + spec/support/feature_sandbox.rb | 1 + spec/support/helpers.rb | 1 + spec/support/immutable_ids.rb | 1 + spec/support/macros.rb | 1 + spec/support/models/account.rb | 1 + spec/support/models/acolyte.rb | 1 + spec/support/models/actor.rb | 1 + spec/support/models/actress.rb | 1 + spec/support/models/address.rb | 1 + spec/support/models/address_component.rb | 1 + spec/support/models/address_number.rb | 1 + spec/support/models/agency.rb | 1 + spec/support/models/agent.rb | 1 + spec/support/models/album.rb | 1 + spec/support/models/alert.rb | 1 + spec/support/models/animal.rb | 1 + spec/support/models/answer.rb | 1 + spec/support/models/appointment.rb | 1 + spec/support/models/armrest.rb | 1 + spec/support/models/array_field.rb | 1 + spec/support/models/article.rb | 1 + spec/support/models/artist.rb | 1 + spec/support/models/artwork.rb | 1 + spec/support/models/audible_sound.rb | 1 + spec/support/models/audio.rb | 1 + spec/support/models/augmentation.rb | 1 + spec/support/models/author.rb | 1 + spec/support/models/baby.rb | 1 + spec/support/models/band.rb | 1 + spec/support/models/bar.rb | 1 + spec/support/models/basic.rb | 1 + spec/support/models/bed.rb | 1 + spec/support/models/big_palette.rb | 1 + spec/support/models/birthday.rb | 1 + spec/support/models/bolt.rb | 1 + spec/support/models/bomb.rb | 1 + spec/support/models/book.rb | 1 + spec/support/models/breed.rb | 1 + spec/support/models/browser.rb | 1 + spec/support/models/building.rb | 1 + spec/support/models/building_address.rb | 1 + spec/support/models/bus.rb | 1 + spec/support/models/business.rb | 1 + spec/support/models/callback_test.rb | 1 + spec/support/models/canvas.rb | 1 + spec/support/models/car.rb | 1 + spec/support/models/cat.rb | 1 + spec/support/models/catalog.rb | 1 + spec/support/models/category.rb | 1 + spec/support/models/child.rb | 1 + spec/support/models/child_doc.rb | 1 + spec/support/models/church.rb | 1 + spec/support/models/circle.rb | 1 + spec/support/models/circuit.rb | 1 + spec/support/models/circus.rb | 1 + spec/support/models/code.rb | 1 + spec/support/models/coding.rb | 1 + spec/support/models/coding/pull_request.rb | 1 + spec/support/models/comment.rb | 1 + spec/support/models/company.rb | 1 + spec/support/models/consumption_period.rb | 1 + spec/support/models/contextable_item.rb | 1 + spec/support/models/contractor.rb | 1 + spec/support/models/cookie.rb | 1 + spec/support/models/country_code.rb | 1 + spec/support/models/courier_job.rb | 1 + spec/support/models/cover.rb | 1 + spec/support/models/crate.rb | 1 + spec/support/models/customer.rb | 1 + spec/support/models/customer_address.rb | 1 + spec/support/models/deed.rb | 1 + spec/support/models/definition.rb | 1 + spec/support/models/delegating_patient.rb | 1 + spec/support/models/description.rb | 1 + spec/support/models/dictionary.rb | 1 + spec/support/models/division.rb | 1 + spec/support/models/doctor.rb | 1 + spec/support/models/dog.rb | 1 + spec/support/models/dokument.rb | 1 + spec/support/models/draft.rb | 1 + spec/support/models/dragon.rb | 1 + spec/support/models/driver.rb | 1 + spec/support/models/drug.rb | 1 + spec/support/models/dungeon.rb | 1 + spec/support/models/edit.rb | 1 + spec/support/models/email.rb | 1 + spec/support/models/employer.rb | 1 + spec/support/models/entry.rb | 1 + spec/support/models/eraser.rb | 1 + spec/support/models/even.rb | 1 + spec/support/models/event.rb | 1 + spec/support/models/exhibition.rb | 1 + spec/support/models/exhibitor.rb | 1 + spec/support/models/explosion.rb | 1 + spec/support/models/eye.rb | 1 + spec/support/models/eye_bowl.rb | 1 + spec/support/models/face.rb | 1 + spec/support/models/fanatic.rb | 1 + spec/support/models/favorite.rb | 1 + spec/support/models/filesystem.rb | 1 + spec/support/models/fire_hydrant.rb | 1 + spec/support/models/firefox.rb | 1 + spec/support/models/fish.rb | 1 + spec/support/models/folder.rb | 1 + spec/support/models/folder_item.rb | 1 + spec/support/models/fruits.rb | 1 + spec/support/models/game.rb | 1 + spec/support/models/ghost.rb | 1 + spec/support/models/guitar.rb | 1 + spec/support/models/hole.rb | 1 + spec/support/models/home.rb | 1 + spec/support/models/house.rb | 1 + spec/support/models/html_writer.rb | 1 + spec/support/models/id_key.rb | 1 + spec/support/models/idnodef.rb | 1 + spec/support/models/image.rb | 1 + spec/support/models/implant.rb | 1 + spec/support/models/instrument.rb | 1 + spec/support/models/item.rb | 1 + spec/support/models/jar.rb | 1 + spec/support/models/kaleidoscope.rb | 1 + spec/support/models/kangaroo.rb | 1 + spec/support/models/label.rb | 1 + spec/support/models/language.rb | 1 + spec/support/models/lat_lng.rb | 1 + spec/support/models/league.rb | 1 + spec/support/models/learner.rb | 1 + spec/support/models/line_item.rb | 1 + spec/support/models/location.rb | 1 + spec/support/models/login.rb | 1 + spec/support/models/manufacturer.rb | 1 + spec/support/models/meat.rb | 1 + spec/support/models/membership.rb | 1 + spec/support/models/message.rb | 1 + spec/support/models/minim.rb | 1 + spec/support/models/mixed_drink.rb | 1 + spec/support/models/mop.rb | 1 + spec/support/models/movie.rb | 1 + spec/support/models/my_hash.rb | 1 + spec/support/models/name.rb | 1 + spec/support/models/name_only.rb | 1 + spec/support/models/node.rb | 1 + spec/support/models/note.rb | 1 + spec/support/models/nut.rb | 1 + spec/support/models/odd.rb | 1 + spec/support/models/order.rb | 1 + spec/support/models/ordered_post.rb | 1 + spec/support/models/ordered_preference.rb | 1 + spec/support/models/oscar.rb | 1 + spec/support/models/other_owner_object.rb | 1 + spec/support/models/override.rb | 1 + spec/support/models/ownable.rb | 1 + spec/support/models/owner.rb | 1 + spec/support/models/pack.rb | 1 + spec/support/models/page.rb | 1 + spec/support/models/page_question.rb | 1 + spec/support/models/palette.rb | 1 + spec/support/models/parent.rb | 1 + spec/support/models/parent_doc.rb | 1 + spec/support/models/passport.rb | 1 + spec/support/models/patient.rb | 1 + spec/support/models/pdf_writer.rb | 1 + spec/support/models/pencil.rb | 1 + spec/support/models/person.rb | 1 + spec/support/models/pet.rb | 1 + spec/support/models/pet_owner.rb | 1 + spec/support/models/phone.rb | 1 + spec/support/models/piano.rb | 1 + spec/support/models/pizza.rb | 1 + spec/support/models/player.rb | 1 + spec/support/models/post.rb | 1 + spec/support/models/post_genre.rb | 1 + spec/support/models/powerup.rb | 1 + spec/support/models/preference.rb | 1 + spec/support/models/princess.rb | 1 + spec/support/models/product.rb | 1 + spec/support/models/profile.rb | 1 + spec/support/models/pronunciation.rb | 1 + spec/support/models/pub.rb | 1 + spec/support/models/publication.rb | 1 + .../models/publication/encyclopedia.rb | 1 + spec/support/models/publication/review.rb | 1 + spec/support/models/purchase.rb | 1 + spec/support/models/purchased_item.rb | 1 + spec/support/models/question.rb | 1 + spec/support/models/quiz.rb | 1 + spec/support/models/rating.rb | 1 + spec/support/models/record.rb | 1 + spec/support/models/registry.rb | 1 + spec/support/models/role.rb | 1 + spec/support/models/root_category.rb | 1 + .../sandbox/app/models/app_models_message.rb | 1 + .../sandbox/lib/models/lib_models_message.rb | 1 + .../support/models/sandbox/sandbox_message.rb | 1 + spec/support/models/sandbox/sandbox_user.rb | 1 + .../models/sandbox/subdir/sandbox_comment.rb | 1 + spec/support/models/sandwich.rb | 1 + spec/support/models/scheduler.rb | 1 + spec/support/models/school.rb | 1 + spec/support/models/scribe.rb | 1 + spec/support/models/sealer.rb | 1 + spec/support/models/seat.rb | 1 + spec/support/models/seo.rb | 1 + spec/support/models/series.rb | 1 + spec/support/models/server.rb | 1 + spec/support/models/service.rb | 1 + spec/support/models/shape.rb | 1 + spec/support/models/shelf.rb | 1 + spec/support/models/shield.rb | 1 + spec/support/models/shipment_address.rb | 1 + spec/support/models/shipping_container.rb | 1 + spec/support/models/shipping_pack.rb | 1 + spec/support/models/shirt.rb | 1 + spec/support/models/shop.rb | 1 + spec/support/models/short_agent.rb | 1 + spec/support/models/short_quiz.rb | 1 + spec/support/models/simple.rb | 1 + spec/support/models/slave.rb | 1 + spec/support/models/song.rb | 1 + spec/support/models/sound.rb | 1 + spec/support/models/spacer.rb | 1 + spec/support/models/square.rb | 1 + spec/support/models/staff.rb | 1 + spec/support/models/store_as_dup_test1.rb | 1 + spec/support/models/store_as_dup_test2.rb | 1 + spec/support/models/store_as_dup_test3.rb | 1 + spec/support/models/store_as_dup_test4.rb | 1 + spec/support/models/strategy.rb | 1 + spec/support/models/student.rb | 1 + spec/support/models/sub_item.rb | 1 + spec/support/models/subscription.rb | 1 + spec/support/models/survey.rb | 1 + spec/support/models/symptom.rb | 1 + spec/support/models/system_role.rb | 1 + spec/support/models/tag.rb | 1 + spec/support/models/target.rb | 1 + spec/support/models/template.rb | 1 + spec/support/models/thing.rb | 1 + spec/support/models/threadlocker.rb | 1 + spec/support/models/title.rb | 1 + spec/support/models/tool.rb | 1 + spec/support/models/topping.rb | 1 + spec/support/models/toy.rb | 1 + spec/support/models/track.rb | 1 + spec/support/models/translation.rb | 1 + spec/support/models/tree.rb | 1 + spec/support/models/truck.rb | 1 + spec/support/models/updatable.rb | 1 + spec/support/models/user.rb | 1 + spec/support/models/user_account.rb | 1 + spec/support/models/validation_callback.rb | 1 + spec/support/models/vehicle.rb | 1 + spec/support/models/version.rb | 1 + spec/support/models/vertex.rb | 1 + spec/support/models/vet_visit.rb | 1 + spec/support/models/video.rb | 1 + spec/support/models/video_game.rb | 1 + spec/support/models/washer.rb | 1 + spec/support/models/weapon.rb | 1 + spec/support/models/wiki_page.rb | 1 + spec/support/models/word.rb | 1 + spec/support/models/word_origin.rb | 1 + spec/support/models/writer.rb | 1 + spec/support/rails_mock.rb | 1 + spec/support/shared/time.rb | 1 + spec/support/sinatra_mock.rb | 1 + spec/support/spec_config.rb | 1 + 1008 files changed, 1019 insertions(+), 20 deletions(-) delete mode 100644 .rubocop_todo.yml diff --git a/.rubocop.yml b/.rubocop.yml index c6eaa7b16..8835ae10f 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,3 @@ -inherit_from: .rubocop_todo.yml - require: - rubocop-performance - rubocop-rails @@ -10,46 +8,48 @@ AllCops: TargetRubyVersion: 2.6 NewCops: enable Exclude: - - 'spec/shared/lib/mrss/**/*' + - 'spec/shared/**/*' - 'vendor/**/*' + - 'tmp/**/*' + - 'test-apps/**/*' # ----------------------------------- # TODO: Enable and fix the cops below # ----------------------------------- Gemspec: - Enabled: false + Enabled: true Layout: - Enabled: false + Enabled: true Lint: - Enabled: false + Enabled: true Metrics: - Enabled: false + Enabled: true Naming: - Enabled: false + Enabled: true Performance: - Enabled: false + Enabled: true Rake: - Enabled: false + Enabled: true Rails: - Enabled: false + Enabled: true RSpec: - Enabled: false + Enabled: true Security: Exclude: - 'spec/**/*' Style: - Enabled: false + Enabled: true # -------------------------------------- # Cops below this line set intentionally diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml deleted file mode 100644 index d9a84fd5e..000000000 --- a/.rubocop_todo.yml +++ /dev/null @@ -1,7 +0,0 @@ -# This configuration was generated by -# `rubocop --auto-gen-config` -# on 2023-02-10 19:24:10 UTC using RuboCop version 1.45.1. -# The point is for the user to remove these configuration records -# one by one as the offenses are removed from the code base. -# Note that changes in the inspected code, or installation of new -# versions of RuboCop, may require this file to be generated again. diff --git a/Gemfile b/Gemfile index 689178411..0b1537eea 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source 'https://rubygems.org' gemspec diff --git a/Rakefile b/Rakefile index dac321af7..c7e009300 100644 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "bundler" require "bundler/gem_tasks" diff --git a/examples/mongoid_test.rb b/examples/mongoid_test.rb index 3e035bcaa..76013f7af 100644 --- a/examples/mongoid_test.rb +++ b/examples/mongoid_test.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'mongoid' require 'mongoid/support/query_counter' diff --git a/gemfiles/bson_master.gemfile b/gemfiles/bson_master.gemfile index d4ac2e899..42076310d 100644 --- a/gemfiles/bson_master.gemfile +++ b/gemfiles/bson_master.gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source "https://rubygems.org" gemspec path: '..' diff --git a/gemfiles/bson_min.gemfile b/gemfiles/bson_min.gemfile index 14ff0a2da..a17fb792e 100644 --- a/gemfiles/bson_min.gemfile +++ b/gemfiles/bson_min.gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source "https://rubygems.org" gemspec path: '..' diff --git a/gemfiles/driver_master.gemfile b/gemfiles/driver_master.gemfile index b4103f835..062262798 100644 --- a/gemfiles/driver_master.gemfile +++ b/gemfiles/driver_master.gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source "https://rubygems.org" gem 'bson', git: "https://github.com/mongodb/bson-ruby", branch: '4-stable' diff --git a/gemfiles/driver_master_jruby.gemfile b/gemfiles/driver_master_jruby.gemfile index 13aed62c9..d2c0b1e58 100644 --- a/gemfiles/driver_master_jruby.gemfile +++ b/gemfiles/driver_master_jruby.gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source "https://rubygems.org" # Due to https://github.com/jruby/jruby/issues/5292 / diff --git a/gemfiles/driver_min.gemfile b/gemfiles/driver_min.gemfile index 44a4006c7..f28c5be54 100644 --- a/gemfiles/driver_min.gemfile +++ b/gemfiles/driver_min.gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source "https://rubygems.org" gem 'mongo', git: "https://github.com/mongodb/mongo-ruby-driver", branch: '2.18-stable' diff --git a/gemfiles/driver_min_jruby.gemfile b/gemfiles/driver_min_jruby.gemfile index 39917b473..db9f8bd07 100644 --- a/gemfiles/driver_min_jruby.gemfile +++ b/gemfiles/driver_min_jruby.gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source "https://rubygems.org" # Due to https://github.com/jruby/jruby/issues/5292 / diff --git a/gemfiles/driver_oldstable.gemfile b/gemfiles/driver_oldstable.gemfile index 44a4006c7..f28c5be54 100644 --- a/gemfiles/driver_oldstable.gemfile +++ b/gemfiles/driver_oldstable.gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source "https://rubygems.org" gem 'mongo', git: "https://github.com/mongodb/mongo-ruby-driver", branch: '2.18-stable' diff --git a/gemfiles/driver_oldstable_jruby.gemfile b/gemfiles/driver_oldstable_jruby.gemfile index 39917b473..db9f8bd07 100644 --- a/gemfiles/driver_oldstable_jruby.gemfile +++ b/gemfiles/driver_oldstable_jruby.gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source "https://rubygems.org" # Due to https://github.com/jruby/jruby/issues/5292 / diff --git a/gemfiles/driver_stable.gemfile b/gemfiles/driver_stable.gemfile index 44a4006c7..f28c5be54 100644 --- a/gemfiles/driver_stable.gemfile +++ b/gemfiles/driver_stable.gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source "https://rubygems.org" gem 'mongo', git: "https://github.com/mongodb/mongo-ruby-driver", branch: '2.18-stable' diff --git a/gemfiles/driver_stable_jruby.gemfile b/gemfiles/driver_stable_jruby.gemfile index 39917b473..db9f8bd07 100644 --- a/gemfiles/driver_stable_jruby.gemfile +++ b/gemfiles/driver_stable_jruby.gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source "https://rubygems.org" # Due to https://github.com/jruby/jruby/issues/5292 / diff --git a/gemfiles/i18n-1.0.gemfile b/gemfiles/i18n-1.0.gemfile index 6f79c007f..d41c5ef6d 100644 --- a/gemfiles/i18n-1.0.gemfile +++ b/gemfiles/i18n-1.0.gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source "https://rubygems.org" gem 'actionpack' diff --git a/gemfiles/rails-5.2.gemfile b/gemfiles/rails-5.2.gemfile index 43e7a9602..b3d7c2f23 100644 --- a/gemfiles/rails-5.2.gemfile +++ b/gemfiles/rails-5.2.gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source 'https://rubygems.org' gem 'actionpack', '~> 5.2' diff --git a/gemfiles/rails-6.0.gemfile b/gemfiles/rails-6.0.gemfile index f72b12e8e..c8962320a 100644 --- a/gemfiles/rails-6.0.gemfile +++ b/gemfiles/rails-6.0.gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source 'https://rubygems.org' gem 'actionpack', '~> 6.0' diff --git a/gemfiles/rails-6.1.gemfile b/gemfiles/rails-6.1.gemfile index a9b0b7092..06a654ecd 100644 --- a/gemfiles/rails-6.1.gemfile +++ b/gemfiles/rails-6.1.gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source 'https://rubygems.org' gem 'actionpack', '~> 6.1' diff --git a/gemfiles/rails-7.0.gemfile b/gemfiles/rails-7.0.gemfile index 1a65f9c9c..c5bf14c39 100644 --- a/gemfiles/rails-7.0.gemfile +++ b/gemfiles/rails-7.0.gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source 'https://rubygems.org' gem 'actionpack', '~> 7.0' diff --git a/gemfiles/rails-master.gemfile b/gemfiles/rails-master.gemfile index 4f8f8676e..3dc51cbd1 100644 --- a/gemfiles/rails-master.gemfile +++ b/gemfiles/rails-master.gemfile @@ -1,3 +1,4 @@ +# rubocop:todo all source 'https://rubygems.org' gem 'actionpack', git: 'https://github.com/rails/rails' diff --git a/gemfiles/standard.rb b/gemfiles/standard.rb index d41ddcfd4..1d95fe9b0 100644 --- a/gemfiles/standard.rb +++ b/gemfiles/standard.rb @@ -1,3 +1,4 @@ +# rubocop:todo all def standard_dependencies gem 'rake' diff --git a/lib/mongoid.rb b/lib/mongoid.rb index f28d91880..09b00a006 100644 --- a/lib/mongoid.rb +++ b/lib/mongoid.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "forwardable" require "time" diff --git a/lib/mongoid/association.rb b/lib/mongoid/association.rb index 0f7a7c758..c5a5c9746 100644 --- a/lib/mongoid/association.rb +++ b/lib/mongoid/association.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'mongoid/association/accessors' require 'mongoid/association/builders' diff --git a/lib/mongoid/association/accessors.rb b/lib/mongoid/association/accessors.rb index e0e4bd672..da7d4328d 100644 --- a/lib/mongoid/association/accessors.rb +++ b/lib/mongoid/association/accessors.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/bindable.rb b/lib/mongoid/association/bindable.rb index d578102bf..5a3814829 100644 --- a/lib/mongoid/association/bindable.rb +++ b/lib/mongoid/association/bindable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/builders.rb b/lib/mongoid/association/builders.rb index aaf018c78..7a5a7b2c8 100644 --- a/lib/mongoid/association/builders.rb +++ b/lib/mongoid/association/builders.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/constrainable.rb b/lib/mongoid/association/constrainable.rb index 1ea56c7ea..9862882d7 100644 --- a/lib/mongoid/association/constrainable.rb +++ b/lib/mongoid/association/constrainable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/depending.rb b/lib/mongoid/association/depending.rb index 519a2f8ec..510a921f9 100644 --- a/lib/mongoid/association/depending.rb +++ b/lib/mongoid/association/depending.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/eager.rb b/lib/mongoid/association/eager.rb index ca04afbae..3e9ec78fd 100644 --- a/lib/mongoid/association/eager.rb +++ b/lib/mongoid/association/eager.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/eager_loadable.rb b/lib/mongoid/association/eager_loadable.rb index 1d92b6714..6a5cc2e82 100644 --- a/lib/mongoid/association/eager_loadable.rb +++ b/lib/mongoid/association/eager_loadable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/association/eager" diff --git a/lib/mongoid/association/embedded.rb b/lib/mongoid/association/embedded.rb index c22850527..142cc1148 100644 --- a/lib/mongoid/association/embedded.rb +++ b/lib/mongoid/association/embedded.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'mongoid/association/embedded/cyclic' require 'mongoid/association/embedded/eager' diff --git a/lib/mongoid/association/embedded/batchable.rb b/lib/mongoid/association/embedded/batchable.rb index ee30ca2de..ef9535897 100644 --- a/lib/mongoid/association/embedded/batchable.rb +++ b/lib/mongoid/association/embedded/batchable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/embedded/cyclic.rb b/lib/mongoid/association/embedded/cyclic.rb index 4adcf6c52..1b922de1c 100644 --- a/lib/mongoid/association/embedded/cyclic.rb +++ b/lib/mongoid/association/embedded/cyclic.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/embedded/eager.rb b/lib/mongoid/association/embedded/eager.rb index 9ddbb207f..376213f54 100644 --- a/lib/mongoid/association/embedded/eager.rb +++ b/lib/mongoid/association/embedded/eager.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/embedded/embedded_in.rb b/lib/mongoid/association/embedded/embedded_in.rb index bcd129ae1..39f1e86f6 100644 --- a/lib/mongoid/association/embedded/embedded_in.rb +++ b/lib/mongoid/association/embedded/embedded_in.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'mongoid/association/embedded/embedded_in/binding' require 'mongoid/association/embedded/embedded_in/buildable' diff --git a/lib/mongoid/association/embedded/embedded_in/binding.rb b/lib/mongoid/association/embedded/embedded_in/binding.rb index c4bb3799e..a799bf2e6 100644 --- a/lib/mongoid/association/embedded/embedded_in/binding.rb +++ b/lib/mongoid/association/embedded/embedded_in/binding.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/embedded/embedded_in/buildable.rb b/lib/mongoid/association/embedded/embedded_in/buildable.rb index 15c67bc1b..e82dfae3e 100644 --- a/lib/mongoid/association/embedded/embedded_in/buildable.rb +++ b/lib/mongoid/association/embedded/embedded_in/buildable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/embedded/embedded_in/proxy.rb b/lib/mongoid/association/embedded/embedded_in/proxy.rb index 57bd272a1..fe9d85b5b 100644 --- a/lib/mongoid/association/embedded/embedded_in/proxy.rb +++ b/lib/mongoid/association/embedded/embedded_in/proxy.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/embedded/embeds_many.rb b/lib/mongoid/association/embedded/embeds_many.rb index 1cfacacf7..d38280e4f 100644 --- a/lib/mongoid/association/embedded/embeds_many.rb +++ b/lib/mongoid/association/embedded/embeds_many.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'mongoid/association/embedded/embeds_many/binding' require 'mongoid/association/embedded/embeds_many/buildable' diff --git a/lib/mongoid/association/embedded/embeds_many/binding.rb b/lib/mongoid/association/embedded/embeds_many/binding.rb index eeeef2596..c178486a8 100644 --- a/lib/mongoid/association/embedded/embeds_many/binding.rb +++ b/lib/mongoid/association/embedded/embeds_many/binding.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/embedded/embeds_many/buildable.rb b/lib/mongoid/association/embedded/embeds_many/buildable.rb index 9c4b179c1..0059ee9eb 100644 --- a/lib/mongoid/association/embedded/embeds_many/buildable.rb +++ b/lib/mongoid/association/embedded/embeds_many/buildable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/embedded/embeds_many/proxy.rb b/lib/mongoid/association/embedded/embeds_many/proxy.rb index 1e53d5b31..8629fe55e 100644 --- a/lib/mongoid/association/embedded/embeds_many/proxy.rb +++ b/lib/mongoid/association/embedded/embeds_many/proxy.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'mongoid/association/embedded/batchable' diff --git a/lib/mongoid/association/embedded/embeds_one.rb b/lib/mongoid/association/embedded/embeds_one.rb index bdfb80367..acfe8496a 100644 --- a/lib/mongoid/association/embedded/embeds_one.rb +++ b/lib/mongoid/association/embedded/embeds_one.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'mongoid/association/embedded/embeds_one/binding' require 'mongoid/association/embedded/embeds_one/buildable' diff --git a/lib/mongoid/association/embedded/embeds_one/binding.rb b/lib/mongoid/association/embedded/embeds_one/binding.rb index 0850ffc89..9b719721a 100644 --- a/lib/mongoid/association/embedded/embeds_one/binding.rb +++ b/lib/mongoid/association/embedded/embeds_one/binding.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/embedded/embeds_one/buildable.rb b/lib/mongoid/association/embedded/embeds_one/buildable.rb index 6ace79de0..1e96ebc56 100644 --- a/lib/mongoid/association/embedded/embeds_one/buildable.rb +++ b/lib/mongoid/association/embedded/embeds_one/buildable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/embedded/embeds_one/proxy.rb b/lib/mongoid/association/embedded/embeds_one/proxy.rb index 89eadaead..72a839d36 100644 --- a/lib/mongoid/association/embedded/embeds_one/proxy.rb +++ b/lib/mongoid/association/embedded/embeds_one/proxy.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/macros.rb b/lib/mongoid/association/macros.rb index 230528a26..f1e67dc70 100644 --- a/lib/mongoid/association/macros.rb +++ b/lib/mongoid/association/macros.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/many.rb b/lib/mongoid/association/many.rb index 67d492e5c..82f53a8e2 100644 --- a/lib/mongoid/association/many.rb +++ b/lib/mongoid/association/many.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/marshalable.rb b/lib/mongoid/association/marshalable.rb index 4a0e27ddd..fd49d5f6a 100644 --- a/lib/mongoid/association/marshalable.rb +++ b/lib/mongoid/association/marshalable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/nested.rb b/lib/mongoid/association/nested.rb index 8df57ccab..9855c0fb7 100644 --- a/lib/mongoid/association/nested.rb +++ b/lib/mongoid/association/nested.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'mongoid/association/nested/nested_buildable' require 'mongoid/association/nested/many' diff --git a/lib/mongoid/association/nested/many.rb b/lib/mongoid/association/nested/many.rb index 5cfac9658..6b4f52e91 100644 --- a/lib/mongoid/association/nested/many.rb +++ b/lib/mongoid/association/nested/many.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/nested/nested_buildable.rb b/lib/mongoid/association/nested/nested_buildable.rb index 6bb7e9f36..7311aa988 100644 --- a/lib/mongoid/association/nested/nested_buildable.rb +++ b/lib/mongoid/association/nested/nested_buildable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/nested/one.rb b/lib/mongoid/association/nested/one.rb index b26031458..cef45efef 100644 --- a/lib/mongoid/association/nested/one.rb +++ b/lib/mongoid/association/nested/one.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/one.rb b/lib/mongoid/association/one.rb index b43f45a01..6e89f3c64 100644 --- a/lib/mongoid/association/one.rb +++ b/lib/mongoid/association/one.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/options.rb b/lib/mongoid/association/options.rb index 884ef4f8b..caa2b2437 100644 --- a/lib/mongoid/association/options.rb +++ b/lib/mongoid/association/options.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/proxy.rb b/lib/mongoid/association/proxy.rb index 7c9b1a1a8..ba2a25a70 100644 --- a/lib/mongoid/association/proxy.rb +++ b/lib/mongoid/association/proxy.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/association/marshalable" diff --git a/lib/mongoid/association/referenced.rb b/lib/mongoid/association/referenced.rb index a726f2d7a..bebdf2144 100644 --- a/lib/mongoid/association/referenced.rb +++ b/lib/mongoid/association/referenced.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'mongoid/association/referenced/auto_save' require 'mongoid/association/referenced/counter_cache' diff --git a/lib/mongoid/association/referenced/auto_save.rb b/lib/mongoid/association/referenced/auto_save.rb index 920e05de3..aa1a49e64 100644 --- a/lib/mongoid/association/referenced/auto_save.rb +++ b/lib/mongoid/association/referenced/auto_save.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/belongs_to.rb b/lib/mongoid/association/referenced/belongs_to.rb index a40af16c5..244c306e6 100644 --- a/lib/mongoid/association/referenced/belongs_to.rb +++ b/lib/mongoid/association/referenced/belongs_to.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'mongoid/association/referenced/belongs_to/binding' require 'mongoid/association/referenced/belongs_to/buildable' diff --git a/lib/mongoid/association/referenced/belongs_to/binding.rb b/lib/mongoid/association/referenced/belongs_to/binding.rb index 2ac07ab4d..9c2a8402f 100644 --- a/lib/mongoid/association/referenced/belongs_to/binding.rb +++ b/lib/mongoid/association/referenced/belongs_to/binding.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/belongs_to/buildable.rb b/lib/mongoid/association/referenced/belongs_to/buildable.rb index e59b40d1f..a18466747 100644 --- a/lib/mongoid/association/referenced/belongs_to/buildable.rb +++ b/lib/mongoid/association/referenced/belongs_to/buildable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/belongs_to/eager.rb b/lib/mongoid/association/referenced/belongs_to/eager.rb index 275793152..85e7aab08 100644 --- a/lib/mongoid/association/referenced/belongs_to/eager.rb +++ b/lib/mongoid/association/referenced/belongs_to/eager.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/belongs_to/proxy.rb b/lib/mongoid/association/referenced/belongs_to/proxy.rb index 9d126bb43..40edddcf0 100644 --- a/lib/mongoid/association/referenced/belongs_to/proxy.rb +++ b/lib/mongoid/association/referenced/belongs_to/proxy.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/counter_cache.rb b/lib/mongoid/association/referenced/counter_cache.rb index e1d3e9bef..f778d9ce3 100644 --- a/lib/mongoid/association/referenced/counter_cache.rb +++ b/lib/mongoid/association/referenced/counter_cache.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/has_and_belongs_to_many.rb b/lib/mongoid/association/referenced/has_and_belongs_to_many.rb index 986f13489..44572cb95 100644 --- a/lib/mongoid/association/referenced/has_and_belongs_to_many.rb +++ b/lib/mongoid/association/referenced/has_and_belongs_to_many.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'mongoid/association/referenced/has_and_belongs_to_many/binding' require 'mongoid/association/referenced/has_and_belongs_to_many/buildable' diff --git a/lib/mongoid/association/referenced/has_and_belongs_to_many/binding.rb b/lib/mongoid/association/referenced/has_and_belongs_to_many/binding.rb index f4cc2996c..aee21f782 100644 --- a/lib/mongoid/association/referenced/has_and_belongs_to_many/binding.rb +++ b/lib/mongoid/association/referenced/has_and_belongs_to_many/binding.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/has_and_belongs_to_many/buildable.rb b/lib/mongoid/association/referenced/has_and_belongs_to_many/buildable.rb index e333403bb..7b6aaeef5 100644 --- a/lib/mongoid/association/referenced/has_and_belongs_to_many/buildable.rb +++ b/lib/mongoid/association/referenced/has_and_belongs_to_many/buildable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/has_and_belongs_to_many/eager.rb b/lib/mongoid/association/referenced/has_and_belongs_to_many/eager.rb index afadf125f..7f0e91d23 100644 --- a/lib/mongoid/association/referenced/has_and_belongs_to_many/eager.rb +++ b/lib/mongoid/association/referenced/has_and_belongs_to_many/eager.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/has_and_belongs_to_many/proxy.rb b/lib/mongoid/association/referenced/has_and_belongs_to_many/proxy.rb index d63eaae3d..907c2625c 100644 --- a/lib/mongoid/association/referenced/has_and_belongs_to_many/proxy.rb +++ b/lib/mongoid/association/referenced/has_and_belongs_to_many/proxy.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/has_many.rb b/lib/mongoid/association/referenced/has_many.rb index dcccb465b..40d112510 100644 --- a/lib/mongoid/association/referenced/has_many.rb +++ b/lib/mongoid/association/referenced/has_many.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'mongoid/association/referenced/has_many/binding' require 'mongoid/association/referenced/has_many/buildable' diff --git a/lib/mongoid/association/referenced/has_many/binding.rb b/lib/mongoid/association/referenced/has_many/binding.rb index 3fd6f2c29..043394c47 100644 --- a/lib/mongoid/association/referenced/has_many/binding.rb +++ b/lib/mongoid/association/referenced/has_many/binding.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/has_many/buildable.rb b/lib/mongoid/association/referenced/has_many/buildable.rb index 23419d05b..5d19a471c 100644 --- a/lib/mongoid/association/referenced/has_many/buildable.rb +++ b/lib/mongoid/association/referenced/has_many/buildable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/has_many/eager.rb b/lib/mongoid/association/referenced/has_many/eager.rb index ab4ba7424..2f82e2b01 100644 --- a/lib/mongoid/association/referenced/has_many/eager.rb +++ b/lib/mongoid/association/referenced/has_many/eager.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/has_many/enumerable.rb b/lib/mongoid/association/referenced/has_many/enumerable.rb index 139e09fc8..131a09568 100644 --- a/lib/mongoid/association/referenced/has_many/enumerable.rb +++ b/lib/mongoid/association/referenced/has_many/enumerable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/has_many/proxy.rb b/lib/mongoid/association/referenced/has_many/proxy.rb index 88aa25890..fdee24a3f 100644 --- a/lib/mongoid/association/referenced/has_many/proxy.rb +++ b/lib/mongoid/association/referenced/has_many/proxy.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/has_one.rb b/lib/mongoid/association/referenced/has_one.rb index a1f33e309..de3d0ab4b 100644 --- a/lib/mongoid/association/referenced/has_one.rb +++ b/lib/mongoid/association/referenced/has_one.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'mongoid/association/referenced/has_one/binding' require 'mongoid/association/referenced/has_one/buildable' diff --git a/lib/mongoid/association/referenced/has_one/binding.rb b/lib/mongoid/association/referenced/has_one/binding.rb index 2ee6e0923..0f9a8f251 100644 --- a/lib/mongoid/association/referenced/has_one/binding.rb +++ b/lib/mongoid/association/referenced/has_one/binding.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/has_one/buildable.rb b/lib/mongoid/association/referenced/has_one/buildable.rb index f23e3b2f3..9bdfd437e 100644 --- a/lib/mongoid/association/referenced/has_one/buildable.rb +++ b/lib/mongoid/association/referenced/has_one/buildable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/has_one/eager.rb b/lib/mongoid/association/referenced/has_one/eager.rb index d67f3c8dd..8f620b6f0 100644 --- a/lib/mongoid/association/referenced/has_one/eager.rb +++ b/lib/mongoid/association/referenced/has_one/eager.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/has_one/proxy.rb b/lib/mongoid/association/referenced/has_one/proxy.rb index 28c4dc7d7..a5b464d52 100644 --- a/lib/mongoid/association/referenced/has_one/proxy.rb +++ b/lib/mongoid/association/referenced/has_one/proxy.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/referenced/syncable.rb b/lib/mongoid/association/referenced/syncable.rb index 8c3b8c2ec..bab64eb02 100644 --- a/lib/mongoid/association/referenced/syncable.rb +++ b/lib/mongoid/association/referenced/syncable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/reflections.rb b/lib/mongoid/association/reflections.rb index eff0aae3b..6112392b4 100644 --- a/lib/mongoid/association/reflections.rb +++ b/lib/mongoid/association/reflections.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Association diff --git a/lib/mongoid/association/relatable.rb b/lib/mongoid/association/relatable.rb index 253f9e116..e019aa90c 100644 --- a/lib/mongoid/association/relatable.rb +++ b/lib/mongoid/association/relatable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'mongoid/association/constrainable' require 'mongoid/association/options' diff --git a/lib/mongoid/atomic.rb b/lib/mongoid/atomic.rb index 7eb55d9d7..e13557b6d 100644 --- a/lib/mongoid/atomic.rb +++ b/lib/mongoid/atomic.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/atomic/modifiers" require "mongoid/atomic/paths" diff --git a/lib/mongoid/atomic/modifiers.rb b/lib/mongoid/atomic/modifiers.rb index 1ccc4b840..d905e937b 100644 --- a/lib/mongoid/atomic/modifiers.rb +++ b/lib/mongoid/atomic/modifiers.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Atomic diff --git a/lib/mongoid/atomic/paths.rb b/lib/mongoid/atomic/paths.rb index 433dcdaf9..47a4a5922 100644 --- a/lib/mongoid/atomic/paths.rb +++ b/lib/mongoid/atomic/paths.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/atomic/paths/embedded" require "mongoid/atomic/paths/root" diff --git a/lib/mongoid/atomic/paths/embedded.rb b/lib/mongoid/atomic/paths/embedded.rb index 94a85436b..9ea335e1b 100644 --- a/lib/mongoid/atomic/paths/embedded.rb +++ b/lib/mongoid/atomic/paths/embedded.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/atomic/paths/embedded/one" require "mongoid/atomic/paths/embedded/many" diff --git a/lib/mongoid/atomic/paths/embedded/many.rb b/lib/mongoid/atomic/paths/embedded/many.rb index 293053381..2bd7ae7e2 100644 --- a/lib/mongoid/atomic/paths/embedded/many.rb +++ b/lib/mongoid/atomic/paths/embedded/many.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Atomic diff --git a/lib/mongoid/atomic/paths/embedded/one.rb b/lib/mongoid/atomic/paths/embedded/one.rb index 90e0f6640..b470668cb 100644 --- a/lib/mongoid/atomic/paths/embedded/one.rb +++ b/lib/mongoid/atomic/paths/embedded/one.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Atomic diff --git a/lib/mongoid/atomic/paths/root.rb b/lib/mongoid/atomic/paths/root.rb index 21b8cc55e..04ac3c0fc 100644 --- a/lib/mongoid/atomic/paths/root.rb +++ b/lib/mongoid/atomic/paths/root.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Atomic diff --git a/lib/mongoid/attributes.rb b/lib/mongoid/attributes.rb index 448475095..888d2c8fd 100644 --- a/lib/mongoid/attributes.rb +++ b/lib/mongoid/attributes.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "active_model/attribute_methods" require "mongoid/attributes/dynamic" diff --git a/lib/mongoid/attributes/dynamic.rb b/lib/mongoid/attributes/dynamic.rb index d80335410..294b418a0 100644 --- a/lib/mongoid/attributes/dynamic.rb +++ b/lib/mongoid/attributes/dynamic.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Attributes diff --git a/lib/mongoid/attributes/nested.rb b/lib/mongoid/attributes/nested.rb index 0db400dde..75eca7e54 100644 --- a/lib/mongoid/attributes/nested.rb +++ b/lib/mongoid/attributes/nested.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Attributes diff --git a/lib/mongoid/attributes/processing.rb b/lib/mongoid/attributes/processing.rb index 1c1de40e2..5b77dc88b 100644 --- a/lib/mongoid/attributes/processing.rb +++ b/lib/mongoid/attributes/processing.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Attributes diff --git a/lib/mongoid/attributes/projector.rb b/lib/mongoid/attributes/projector.rb index f54d257b4..5d19881ea 100644 --- a/lib/mongoid/attributes/projector.rb +++ b/lib/mongoid/attributes/projector.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Attributes diff --git a/lib/mongoid/attributes/readonly.rb b/lib/mongoid/attributes/readonly.rb index 30f94d985..77db040bd 100644 --- a/lib/mongoid/attributes/readonly.rb +++ b/lib/mongoid/attributes/readonly.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Attributes diff --git a/lib/mongoid/cacheable.rb b/lib/mongoid/cacheable.rb index c819cc7b5..71bba22a2 100644 --- a/lib/mongoid/cacheable.rb +++ b/lib/mongoid/cacheable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/changeable.rb b/lib/mongoid/changeable.rb index f9562c979..768aa7063 100644 --- a/lib/mongoid/changeable.rb +++ b/lib/mongoid/changeable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/clients.rb b/lib/mongoid/clients.rb index 71f660d0b..9c64a32b6 100644 --- a/lib/mongoid/clients.rb +++ b/lib/mongoid/clients.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/clients/factory" require "mongoid/clients/validators" diff --git a/lib/mongoid/clients/factory.rb b/lib/mongoid/clients/factory.rb index 379c33a15..21b7f9b5f 100644 --- a/lib/mongoid/clients/factory.rb +++ b/lib/mongoid/clients/factory.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Clients diff --git a/lib/mongoid/clients/options.rb b/lib/mongoid/clients/options.rb index 692ca9896..db5eaa812 100644 --- a/lib/mongoid/clients/options.rb +++ b/lib/mongoid/clients/options.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Clients diff --git a/lib/mongoid/clients/sessions.rb b/lib/mongoid/clients/sessions.rb index cc3d98b66..5414b416a 100644 --- a/lib/mongoid/clients/sessions.rb +++ b/lib/mongoid/clients/sessions.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Clients diff --git a/lib/mongoid/clients/storage_options.rb b/lib/mongoid/clients/storage_options.rb index a54657dbb..58fad35f2 100644 --- a/lib/mongoid/clients/storage_options.rb +++ b/lib/mongoid/clients/storage_options.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Clients diff --git a/lib/mongoid/clients/validators.rb b/lib/mongoid/clients/validators.rb index 7e941b667..ac5389cae 100644 --- a/lib/mongoid/clients/validators.rb +++ b/lib/mongoid/clients/validators.rb @@ -1,3 +1,4 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/clients/validators/storage" diff --git a/lib/mongoid/clients/validators/storage.rb b/lib/mongoid/clients/validators/storage.rb index bf1fa5198..6c3f237cf 100644 --- a/lib/mongoid/clients/validators/storage.rb +++ b/lib/mongoid/clients/validators/storage.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Clients diff --git a/lib/mongoid/collection_configurable.rb b/lib/mongoid/collection_configurable.rb index 23ff4a5a0..d5d45876a 100644 --- a/lib/mongoid/collection_configurable.rb +++ b/lib/mongoid/collection_configurable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/composable.rb b/lib/mongoid/composable.rb index b789d331d..4afb69c24 100644 --- a/lib/mongoid/composable.rb +++ b/lib/mongoid/composable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/changeable" require "mongoid/collection_configurable" diff --git a/lib/mongoid/config.rb b/lib/mongoid/config.rb index 518f00f64..fe558f2f6 100644 --- a/lib/mongoid/config.rb +++ b/lib/mongoid/config.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/config/defaults" require "mongoid/config/environment" diff --git a/lib/mongoid/config/defaults.rb b/lib/mongoid/config/defaults.rb index 88415543c..22b12dcc6 100644 --- a/lib/mongoid/config/defaults.rb +++ b/lib/mongoid/config/defaults.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Config diff --git a/lib/mongoid/config/encryption.rb b/lib/mongoid/config/encryption.rb index 0ed20d007..699085682 100644 --- a/lib/mongoid/config/encryption.rb +++ b/lib/mongoid/config/encryption.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'mongoid/extensions/boolean' require 'mongoid/stringified_symbol' diff --git a/lib/mongoid/config/environment.rb b/lib/mongoid/config/environment.rb index 0aaa1edde..430087da7 100644 --- a/lib/mongoid/config/environment.rb +++ b/lib/mongoid/config/environment.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Config diff --git a/lib/mongoid/config/introspection.rb b/lib/mongoid/config/introspection.rb index f792fc33e..366b05acc 100644 --- a/lib/mongoid/config/introspection.rb +++ b/lib/mongoid/config/introspection.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Config diff --git a/lib/mongoid/config/options.rb b/lib/mongoid/config/options.rb index 9082323d4..6987d3d38 100644 --- a/lib/mongoid/config/options.rb +++ b/lib/mongoid/config/options.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Config diff --git a/lib/mongoid/config/validators.rb b/lib/mongoid/config/validators.rb index 3675bea76..557657c71 100644 --- a/lib/mongoid/config/validators.rb +++ b/lib/mongoid/config/validators.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/config/validators/async_query_executor" require "mongoid/config/validators/option" diff --git a/lib/mongoid/config/validators/async_query_executor.rb b/lib/mongoid/config/validators/async_query_executor.rb index b1721b5af..7930b447b 100644 --- a/lib/mongoid/config/validators/async_query_executor.rb +++ b/lib/mongoid/config/validators/async_query_executor.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Config diff --git a/lib/mongoid/config/validators/client.rb b/lib/mongoid/config/validators/client.rb index 0d5501334..4e05cf75c 100644 --- a/lib/mongoid/config/validators/client.rb +++ b/lib/mongoid/config/validators/client.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Config diff --git a/lib/mongoid/config/validators/option.rb b/lib/mongoid/config/validators/option.rb index ff8cff5f3..b52418b85 100644 --- a/lib/mongoid/config/validators/option.rb +++ b/lib/mongoid/config/validators/option.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Config diff --git a/lib/mongoid/contextual.rb b/lib/mongoid/contextual.rb index 648ccae1f..d40023253 100644 --- a/lib/mongoid/contextual.rb +++ b/lib/mongoid/contextual.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/contextual/queryable" require "mongoid/contextual/mongo" diff --git a/lib/mongoid/contextual/aggregable.rb b/lib/mongoid/contextual/aggregable.rb index dd5247985..30380bbf3 100644 --- a/lib/mongoid/contextual/aggregable.rb +++ b/lib/mongoid/contextual/aggregable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Contextual diff --git a/lib/mongoid/contextual/aggregable/memory.rb b/lib/mongoid/contextual/aggregable/memory.rb index 451e84222..7e328fae9 100644 --- a/lib/mongoid/contextual/aggregable/memory.rb +++ b/lib/mongoid/contextual/aggregable/memory.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Contextual diff --git a/lib/mongoid/contextual/aggregable/mongo.rb b/lib/mongoid/contextual/aggregable/mongo.rb index 1ebba5702..1b050281f 100644 --- a/lib/mongoid/contextual/aggregable/mongo.rb +++ b/lib/mongoid/contextual/aggregable/mongo.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/contextual/aggregable" diff --git a/lib/mongoid/contextual/aggregable/none.rb b/lib/mongoid/contextual/aggregable/none.rb index befb53660..13d410fae 100644 --- a/lib/mongoid/contextual/aggregable/none.rb +++ b/lib/mongoid/contextual/aggregable/none.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/contextual/aggregable" diff --git a/lib/mongoid/contextual/atomic.rb b/lib/mongoid/contextual/atomic.rb index b953bceff..e0b74f64c 100644 --- a/lib/mongoid/contextual/atomic.rb +++ b/lib/mongoid/contextual/atomic.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Contextual diff --git a/lib/mongoid/contextual/command.rb b/lib/mongoid/contextual/command.rb index 3aaae5db3..a39f1bed9 100644 --- a/lib/mongoid/contextual/command.rb +++ b/lib/mongoid/contextual/command.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Contextual diff --git a/lib/mongoid/contextual/geo_near.rb b/lib/mongoid/contextual/geo_near.rb index a49c352cc..beef602ef 100644 --- a/lib/mongoid/contextual/geo_near.rb +++ b/lib/mongoid/contextual/geo_near.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Contextual diff --git a/lib/mongoid/contextual/map_reduce.rb b/lib/mongoid/contextual/map_reduce.rb index 0fe37f9e0..d9a23054b 100644 --- a/lib/mongoid/contextual/map_reduce.rb +++ b/lib/mongoid/contextual/map_reduce.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Contextual diff --git a/lib/mongoid/contextual/memory.rb b/lib/mongoid/contextual/memory.rb index 046dba532..0260416e2 100644 --- a/lib/mongoid/contextual/memory.rb +++ b/lib/mongoid/contextual/memory.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/contextual/aggregable/memory" require "mongoid/association/eager_loadable" diff --git a/lib/mongoid/contextual/mongo.rb b/lib/mongoid/contextual/mongo.rb index 72ddb5d98..76dd214d4 100644 --- a/lib/mongoid/contextual/mongo.rb +++ b/lib/mongoid/contextual/mongo.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/contextual/mongo/documents_loader" require "mongoid/contextual/atomic" diff --git a/lib/mongoid/contextual/mongo/documents_loader.rb b/lib/mongoid/contextual/mongo/documents_loader.rb index 0ed7efea2..e5809d63c 100644 --- a/lib/mongoid/contextual/mongo/documents_loader.rb +++ b/lib/mongoid/contextual/mongo/documents_loader.rb @@ -1,3 +1,4 @@ +# rubocop:todo all require "mongoid/association/eager_loadable" module Mongoid diff --git a/lib/mongoid/contextual/none.rb b/lib/mongoid/contextual/none.rb index 1fa680065..ba3fe0ea4 100644 --- a/lib/mongoid/contextual/none.rb +++ b/lib/mongoid/contextual/none.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/contextual/aggregable/none" diff --git a/lib/mongoid/contextual/queryable.rb b/lib/mongoid/contextual/queryable.rb index 9580be6c1..8dada6cfa 100644 --- a/lib/mongoid/contextual/queryable.rb +++ b/lib/mongoid/contextual/queryable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Contextual diff --git a/lib/mongoid/copyable.rb b/lib/mongoid/copyable.rb index 834fbbe8c..f95362bf3 100644 --- a/lib/mongoid/copyable.rb +++ b/lib/mongoid/copyable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/criteria.rb b/lib/mongoid/criteria.rb index 27182e18e..e90a7c751 100644 --- a/lib/mongoid/criteria.rb +++ b/lib/mongoid/criteria.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/criteria/findable" require "mongoid/criteria/includable" diff --git a/lib/mongoid/criteria/findable.rb b/lib/mongoid/criteria/findable.rb index eaefb4183..c7ddc62bc 100644 --- a/lib/mongoid/criteria/findable.rb +++ b/lib/mongoid/criteria/findable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/includable.rb b/lib/mongoid/criteria/includable.rb index e948a6787..1b6d3607b 100644 --- a/lib/mongoid/criteria/includable.rb +++ b/lib/mongoid/criteria/includable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/inspectable.rb b/lib/mongoid/criteria/inspectable.rb index e545a53bc..73f7ebcc4 100644 --- a/lib/mongoid/criteria/inspectable.rb +++ b/lib/mongoid/criteria/inspectable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/marshalable.rb b/lib/mongoid/criteria/marshalable.rb index 34253e636..1c8d9bbe1 100644 --- a/lib/mongoid/criteria/marshalable.rb +++ b/lib/mongoid/criteria/marshalable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/modifiable.rb b/lib/mongoid/criteria/modifiable.rb index 2725053e1..65774bb44 100644 --- a/lib/mongoid/criteria/modifiable.rb +++ b/lib/mongoid/criteria/modifiable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/options.rb b/lib/mongoid/criteria/options.rb index 1c71a99ed..58aaa1d3d 100644 --- a/lib/mongoid/criteria/options.rb +++ b/lib/mongoid/criteria/options.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/permission.rb b/lib/mongoid/criteria/permission.rb index 39777f71d..7d9b7abc6 100644 --- a/lib/mongoid/criteria/permission.rb +++ b/lib/mongoid/criteria/permission.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable.rb b/lib/mongoid/criteria/queryable.rb index d02662dc6..1aa7179f1 100644 --- a/lib/mongoid/criteria/queryable.rb +++ b/lib/mongoid/criteria/queryable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/criteria/queryable/expandable" require "mongoid/criteria/queryable/extensions" diff --git a/lib/mongoid/criteria/queryable/aggregable.rb b/lib/mongoid/criteria/queryable/aggregable.rb index e32bed2a9..a570c3cb1 100644 --- a/lib/mongoid/criteria/queryable/aggregable.rb +++ b/lib/mongoid/criteria/queryable/aggregable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/expandable.rb b/lib/mongoid/criteria/queryable/expandable.rb index 7a6ae0fb5..19767c458 100644 --- a/lib/mongoid/criteria/queryable/expandable.rb +++ b/lib/mongoid/criteria/queryable/expandable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/extensions.rb b/lib/mongoid/criteria/queryable/extensions.rb index 489bf3a76..6cb87e56e 100644 --- a/lib/mongoid/criteria/queryable/extensions.rb +++ b/lib/mongoid/criteria/queryable/extensions.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all if defined?(ActiveSupport) unless defined?(ActiveSupport::TimeWithZone) diff --git a/lib/mongoid/criteria/queryable/extensions/array.rb b/lib/mongoid/criteria/queryable/extensions/array.rb index 4cb20971a..4884e5481 100644 --- a/lib/mongoid/criteria/queryable/extensions/array.rb +++ b/lib/mongoid/criteria/queryable/extensions/array.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/extensions/big_decimal.rb b/lib/mongoid/criteria/queryable/extensions/big_decimal.rb index ba6a16e7e..c21e95383 100644 --- a/lib/mongoid/criteria/queryable/extensions/big_decimal.rb +++ b/lib/mongoid/criteria/queryable/extensions/big_decimal.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "bigdecimal" diff --git a/lib/mongoid/criteria/queryable/extensions/boolean.rb b/lib/mongoid/criteria/queryable/extensions/boolean.rb index 4313e6b34..49b936254 100644 --- a/lib/mongoid/criteria/queryable/extensions/boolean.rb +++ b/lib/mongoid/criteria/queryable/extensions/boolean.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/extensions/date.rb b/lib/mongoid/criteria/queryable/extensions/date.rb index 2701c09cf..fc9d5d4eb 100644 --- a/lib/mongoid/criteria/queryable/extensions/date.rb +++ b/lib/mongoid/criteria/queryable/extensions/date.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/extensions/date_time.rb b/lib/mongoid/criteria/queryable/extensions/date_time.rb index 964839188..dc08112b2 100644 --- a/lib/mongoid/criteria/queryable/extensions/date_time.rb +++ b/lib/mongoid/criteria/queryable/extensions/date_time.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/extensions/hash.rb b/lib/mongoid/criteria/queryable/extensions/hash.rb index 507e6cc06..001c895ed 100644 --- a/lib/mongoid/criteria/queryable/extensions/hash.rb +++ b/lib/mongoid/criteria/queryable/extensions/hash.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/extensions/nil_class.rb b/lib/mongoid/criteria/queryable/extensions/nil_class.rb index 5e53115c3..736864e4a 100644 --- a/lib/mongoid/criteria/queryable/extensions/nil_class.rb +++ b/lib/mongoid/criteria/queryable/extensions/nil_class.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/extensions/numeric.rb b/lib/mongoid/criteria/queryable/extensions/numeric.rb index b895b26a2..45fa32d14 100644 --- a/lib/mongoid/criteria/queryable/extensions/numeric.rb +++ b/lib/mongoid/criteria/queryable/extensions/numeric.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/extensions/object.rb b/lib/mongoid/criteria/queryable/extensions/object.rb index 3710e0e06..e64895a1f 100644 --- a/lib/mongoid/criteria/queryable/extensions/object.rb +++ b/lib/mongoid/criteria/queryable/extensions/object.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/extensions/range.rb b/lib/mongoid/criteria/queryable/extensions/range.rb index 10865ae22..5ad06fbbb 100644 --- a/lib/mongoid/criteria/queryable/extensions/range.rb +++ b/lib/mongoid/criteria/queryable/extensions/range.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/extensions/regexp.rb b/lib/mongoid/criteria/queryable/extensions/regexp.rb index 3b823d472..ff11e4066 100644 --- a/lib/mongoid/criteria/queryable/extensions/regexp.rb +++ b/lib/mongoid/criteria/queryable/extensions/regexp.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/extensions/set.rb b/lib/mongoid/criteria/queryable/extensions/set.rb index 4c31c1830..b45e821f6 100644 --- a/lib/mongoid/criteria/queryable/extensions/set.rb +++ b/lib/mongoid/criteria/queryable/extensions/set.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "set" diff --git a/lib/mongoid/criteria/queryable/extensions/string.rb b/lib/mongoid/criteria/queryable/extensions/string.rb index f27769e1d..452680fe4 100644 --- a/lib/mongoid/criteria/queryable/extensions/string.rb +++ b/lib/mongoid/criteria/queryable/extensions/string.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/extensions/symbol.rb b/lib/mongoid/criteria/queryable/extensions/symbol.rb index 5fb7ceb83..89fadbd1e 100644 --- a/lib/mongoid/criteria/queryable/extensions/symbol.rb +++ b/lib/mongoid/criteria/queryable/extensions/symbol.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/extensions/time.rb b/lib/mongoid/criteria/queryable/extensions/time.rb index 463ba6b8e..0be5d369a 100644 --- a/lib/mongoid/criteria/queryable/extensions/time.rb +++ b/lib/mongoid/criteria/queryable/extensions/time.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/extensions/time_with_zone.rb b/lib/mongoid/criteria/queryable/extensions/time_with_zone.rb index 23c81751a..dd99e1609 100644 --- a/lib/mongoid/criteria/queryable/extensions/time_with_zone.rb +++ b/lib/mongoid/criteria/queryable/extensions/time_with_zone.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/key.rb b/lib/mongoid/criteria/queryable/key.rb index 1f0ab40b1..d9e49085a 100644 --- a/lib/mongoid/criteria/queryable/key.rb +++ b/lib/mongoid/criteria/queryable/key.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/macroable.rb b/lib/mongoid/criteria/queryable/macroable.rb index acb76d797..2c6636141 100644 --- a/lib/mongoid/criteria/queryable/macroable.rb +++ b/lib/mongoid/criteria/queryable/macroable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/mergeable.rb b/lib/mongoid/criteria/queryable/mergeable.rb index 3d96d0b23..15a317fdd 100644 --- a/lib/mongoid/criteria/queryable/mergeable.rb +++ b/lib/mongoid/criteria/queryable/mergeable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/optional.rb b/lib/mongoid/criteria/queryable/optional.rb index 8477e8e15..45a7c8d18 100644 --- a/lib/mongoid/criteria/queryable/optional.rb +++ b/lib/mongoid/criteria/queryable/optional.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/options.rb b/lib/mongoid/criteria/queryable/options.rb index 8bd61d441..1fd9fff9d 100644 --- a/lib/mongoid/criteria/queryable/options.rb +++ b/lib/mongoid/criteria/queryable/options.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/pipeline.rb b/lib/mongoid/criteria/queryable/pipeline.rb index 71945bad1..ddf93363f 100644 --- a/lib/mongoid/criteria/queryable/pipeline.rb +++ b/lib/mongoid/criteria/queryable/pipeline.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/selectable.rb b/lib/mongoid/criteria/queryable/selectable.rb index 146015e53..3a4373baa 100644 --- a/lib/mongoid/criteria/queryable/selectable.rb +++ b/lib/mongoid/criteria/queryable/selectable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/selector.rb b/lib/mongoid/criteria/queryable/selector.rb index 8d1e12dec..41add4c61 100644 --- a/lib/mongoid/criteria/queryable/selector.rb +++ b/lib/mongoid/criteria/queryable/selector.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/smash.rb b/lib/mongoid/criteria/queryable/smash.rb index f7cfc4d11..707476812 100644 --- a/lib/mongoid/criteria/queryable/smash.rb +++ b/lib/mongoid/criteria/queryable/smash.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/queryable/storable.rb b/lib/mongoid/criteria/queryable/storable.rb index 08bf4dc38..bdc2fdbe0 100644 --- a/lib/mongoid/criteria/queryable/storable.rb +++ b/lib/mongoid/criteria/queryable/storable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/scopable.rb b/lib/mongoid/criteria/scopable.rb index a79fe53ec..9dbda6a33 100644 --- a/lib/mongoid/criteria/scopable.rb +++ b/lib/mongoid/criteria/scopable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/criteria/translator.rb b/lib/mongoid/criteria/translator.rb index 25a32426e..d6e8d88c1 100644 --- a/lib/mongoid/criteria/translator.rb +++ b/lib/mongoid/criteria/translator.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Criteria diff --git a/lib/mongoid/deprecable.rb b/lib/mongoid/deprecable.rb index e1c3c0ebd..327bd72b7 100644 --- a/lib/mongoid/deprecable.rb +++ b/lib/mongoid/deprecable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/deprecation" diff --git a/lib/mongoid/deprecation.rb b/lib/mongoid/deprecation.rb index fd80d2818..9d3fa449e 100644 --- a/lib/mongoid/deprecation.rb +++ b/lib/mongoid/deprecation.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/document.rb b/lib/mongoid/document.rb index 8a0b17db1..7f5658875 100644 --- a/lib/mongoid/document.rb +++ b/lib/mongoid/document.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/positional" require "mongoid/evolvable" diff --git a/lib/mongoid/encryptable.rb b/lib/mongoid/encryptable.rb index cf2c632d1..5a6c33857 100644 --- a/lib/mongoid/encryptable.rb +++ b/lib/mongoid/encryptable.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid # This module is used to extend Mongoid::Document # to add encryption functionality. diff --git a/lib/mongoid/equality.rb b/lib/mongoid/equality.rb index f79446b91..16bcbce48 100644 --- a/lib/mongoid/equality.rb +++ b/lib/mongoid/equality.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/errors.rb b/lib/mongoid/errors.rb index 6fad487d8..70f1f988e 100644 --- a/lib/mongoid/errors.rb +++ b/lib/mongoid/errors.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/errors/mongoid_error" require "mongoid/errors/ambiguous_relationship" diff --git a/lib/mongoid/errors/ambiguous_relationship.rb b/lib/mongoid/errors/ambiguous_relationship.rb index a26b5b041..d513da661 100644 --- a/lib/mongoid/errors/ambiguous_relationship.rb +++ b/lib/mongoid/errors/ambiguous_relationship.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/attribute_not_loaded.rb b/lib/mongoid/errors/attribute_not_loaded.rb index 1e439a8eb..d657f2bcd 100644 --- a/lib/mongoid/errors/attribute_not_loaded.rb +++ b/lib/mongoid/errors/attribute_not_loaded.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/callback.rb b/lib/mongoid/errors/callback.rb index 60cac40fa..60271d1c4 100644 --- a/lib/mongoid/errors/callback.rb +++ b/lib/mongoid/errors/callback.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/create_collection_failure.rb b/lib/mongoid/errors/create_collection_failure.rb index 873bb3831..42c8aac74 100644 --- a/lib/mongoid/errors/create_collection_failure.rb +++ b/lib/mongoid/errors/create_collection_failure.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/criteria_argument_required.rb b/lib/mongoid/errors/criteria_argument_required.rb index db1f47a05..27590109c 100644 --- a/lib/mongoid/errors/criteria_argument_required.rb +++ b/lib/mongoid/errors/criteria_argument_required.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/delete_restriction.rb b/lib/mongoid/errors/delete_restriction.rb index 91b897c82..a164eab4a 100644 --- a/lib/mongoid/errors/delete_restriction.rb +++ b/lib/mongoid/errors/delete_restriction.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/document_not_destroyed.rb b/lib/mongoid/errors/document_not_destroyed.rb index 1f2dab8f4..2503d9d21 100644 --- a/lib/mongoid/errors/document_not_destroyed.rb +++ b/lib/mongoid/errors/document_not_destroyed.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/document_not_found.rb b/lib/mongoid/errors/document_not_found.rb index dc9624a23..e3ed2804f 100644 --- a/lib/mongoid/errors/document_not_found.rb +++ b/lib/mongoid/errors/document_not_found.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/drop_collection_failure.rb b/lib/mongoid/errors/drop_collection_failure.rb index 297f5cd17..43f09b818 100644 --- a/lib/mongoid/errors/drop_collection_failure.rb +++ b/lib/mongoid/errors/drop_collection_failure.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/empty_config_file.rb b/lib/mongoid/errors/empty_config_file.rb index e58426303..42fada202 100644 --- a/lib/mongoid/errors/empty_config_file.rb +++ b/lib/mongoid/errors/empty_config_file.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/immutable_attribute.rb b/lib/mongoid/errors/immutable_attribute.rb index 6608b8843..d37f70061 100644 --- a/lib/mongoid/errors/immutable_attribute.rb +++ b/lib/mongoid/errors/immutable_attribute.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/in_memory_collation_not_supported.rb b/lib/mongoid/errors/in_memory_collation_not_supported.rb index 8507be9aa..596435209 100644 --- a/lib/mongoid/errors/in_memory_collation_not_supported.rb +++ b/lib/mongoid/errors/in_memory_collation_not_supported.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_async_query_executor.rb b/lib/mongoid/errors/invalid_async_query_executor.rb index 180e7b7dc..a9e442e31 100644 --- a/lib/mongoid/errors/invalid_async_query_executor.rb +++ b/lib/mongoid/errors/invalid_async_query_executor.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_auto_encryption_configuration.rb b/lib/mongoid/errors/invalid_auto_encryption_configuration.rb index edc2b229e..20b4bc3d0 100644 --- a/lib/mongoid/errors/invalid_auto_encryption_configuration.rb +++ b/lib/mongoid/errors/invalid_auto_encryption_configuration.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_collection.rb b/lib/mongoid/errors/invalid_collection.rb index 9c42fcc91..c1a4c6aab 100644 --- a/lib/mongoid/errors/invalid_collection.rb +++ b/lib/mongoid/errors/invalid_collection.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_config_file.rb b/lib/mongoid/errors/invalid_config_file.rb index a59eb90ab..c31d02b4b 100644 --- a/lib/mongoid/errors/invalid_config_file.rb +++ b/lib/mongoid/errors/invalid_config_file.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_config_option.rb b/lib/mongoid/errors/invalid_config_option.rb index 168488f45..251e2fd76 100644 --- a/lib/mongoid/errors/invalid_config_option.rb +++ b/lib/mongoid/errors/invalid_config_option.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_dependent_strategy.rb b/lib/mongoid/errors/invalid_dependent_strategy.rb index bf7a38ec3..d496582cc 100644 --- a/lib/mongoid/errors/invalid_dependent_strategy.rb +++ b/lib/mongoid/errors/invalid_dependent_strategy.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_discriminator_key_target.rb b/lib/mongoid/errors/invalid_discriminator_key_target.rb index 2b66ec8a7..ff87f8479 100644 --- a/lib/mongoid/errors/invalid_discriminator_key_target.rb +++ b/lib/mongoid/errors/invalid_discriminator_key_target.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_dot_dollar_assignment.rb b/lib/mongoid/errors/invalid_dot_dollar_assignment.rb index 928e5d1a4..513eeba04 100644 --- a/lib/mongoid/errors/invalid_dot_dollar_assignment.rb +++ b/lib/mongoid/errors/invalid_dot_dollar_assignment.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_elem_match_operator.rb b/lib/mongoid/errors/invalid_elem_match_operator.rb index e008bd0f3..ffc36fe1f 100644 --- a/lib/mongoid/errors/invalid_elem_match_operator.rb +++ b/lib/mongoid/errors/invalid_elem_match_operator.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_estimated_count_criteria.rb b/lib/mongoid/errors/invalid_estimated_count_criteria.rb index e565acf2d..395dcb557 100644 --- a/lib/mongoid/errors/invalid_estimated_count_criteria.rb +++ b/lib/mongoid/errors/invalid_estimated_count_criteria.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_estimated_count_scoping.rb b/lib/mongoid/errors/invalid_estimated_count_scoping.rb index b2a8b177d..8c3ae3282 100644 --- a/lib/mongoid/errors/invalid_estimated_count_scoping.rb +++ b/lib/mongoid/errors/invalid_estimated_count_scoping.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_expression_operator.rb b/lib/mongoid/errors/invalid_expression_operator.rb index 987dc0a43..47929f988 100644 --- a/lib/mongoid/errors/invalid_expression_operator.rb +++ b/lib/mongoid/errors/invalid_expression_operator.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_field.rb b/lib/mongoid/errors/invalid_field.rb index 1d7846443..85efea4f8 100644 --- a/lib/mongoid/errors/invalid_field.rb +++ b/lib/mongoid/errors/invalid_field.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_field_operator.rb b/lib/mongoid/errors/invalid_field_operator.rb index 60c2892a4..77c2f0bb3 100644 --- a/lib/mongoid/errors/invalid_field_operator.rb +++ b/lib/mongoid/errors/invalid_field_operator.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_field_option.rb b/lib/mongoid/errors/invalid_field_option.rb index ebc3dedf0..309651273 100644 --- a/lib/mongoid/errors/invalid_field_option.rb +++ b/lib/mongoid/errors/invalid_field_option.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_field_type.rb b/lib/mongoid/errors/invalid_field_type.rb index 6b6c8959b..1c318ba02 100644 --- a/lib/mongoid/errors/invalid_field_type.rb +++ b/lib/mongoid/errors/invalid_field_type.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_find.rb b/lib/mongoid/errors/invalid_find.rb index 8dd71818c..bf8b90700 100644 --- a/lib/mongoid/errors/invalid_find.rb +++ b/lib/mongoid/errors/invalid_find.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_global_executor_concurrency.rb b/lib/mongoid/errors/invalid_global_executor_concurrency.rb index 0cb842e49..a7f98814a 100644 --- a/lib/mongoid/errors/invalid_global_executor_concurrency.rb +++ b/lib/mongoid/errors/invalid_global_executor_concurrency.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_includes.rb b/lib/mongoid/errors/invalid_includes.rb index 1956d28df..830bc1a1d 100644 --- a/lib/mongoid/errors/invalid_includes.rb +++ b/lib/mongoid/errors/invalid_includes.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_index.rb b/lib/mongoid/errors/invalid_index.rb index fd3b9170e..8d756a233 100644 --- a/lib/mongoid/errors/invalid_index.rb +++ b/lib/mongoid/errors/invalid_index.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_options.rb b/lib/mongoid/errors/invalid_options.rb index b3379848b..128601585 100644 --- a/lib/mongoid/errors/invalid_options.rb +++ b/lib/mongoid/errors/invalid_options.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_path.rb b/lib/mongoid/errors/invalid_path.rb index 5937d1a0c..003004ae2 100644 --- a/lib/mongoid/errors/invalid_path.rb +++ b/lib/mongoid/errors/invalid_path.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_persistence_option.rb b/lib/mongoid/errors/invalid_persistence_option.rb index cfefe6ba1..df792d45b 100644 --- a/lib/mongoid/errors/invalid_persistence_option.rb +++ b/lib/mongoid/errors/invalid_persistence_option.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_query.rb b/lib/mongoid/errors/invalid_query.rb index e9d34da07..03276d34f 100644 --- a/lib/mongoid/errors/invalid_query.rb +++ b/lib/mongoid/errors/invalid_query.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_relation.rb b/lib/mongoid/errors/invalid_relation.rb index 91541b6d3..b514cbb7d 100644 --- a/lib/mongoid/errors/invalid_relation.rb +++ b/lib/mongoid/errors/invalid_relation.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_relation_option.rb b/lib/mongoid/errors/invalid_relation_option.rb index 1cfb0a048..d8ca3c869 100644 --- a/lib/mongoid/errors/invalid_relation_option.rb +++ b/lib/mongoid/errors/invalid_relation_option.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_scope.rb b/lib/mongoid/errors/invalid_scope.rb index 98af8a2b8..83854064f 100644 --- a/lib/mongoid/errors/invalid_scope.rb +++ b/lib/mongoid/errors/invalid_scope.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_session_nesting.rb b/lib/mongoid/errors/invalid_session_nesting.rb index 3d433c884..d44d27e06 100644 --- a/lib/mongoid/errors/invalid_session_nesting.rb +++ b/lib/mongoid/errors/invalid_session_nesting.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_set_polymorphic_relation.rb b/lib/mongoid/errors/invalid_set_polymorphic_relation.rb index 72bd52b2d..89261f50e 100644 --- a/lib/mongoid/errors/invalid_set_polymorphic_relation.rb +++ b/lib/mongoid/errors/invalid_set_polymorphic_relation.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_storage_options.rb b/lib/mongoid/errors/invalid_storage_options.rb index d3b7361f4..03ffb70f7 100644 --- a/lib/mongoid/errors/invalid_storage_options.rb +++ b/lib/mongoid/errors/invalid_storage_options.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_storage_parent.rb b/lib/mongoid/errors/invalid_storage_parent.rb index 5aa025332..a81c7772b 100644 --- a/lib/mongoid/errors/invalid_storage_parent.rb +++ b/lib/mongoid/errors/invalid_storage_parent.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_time.rb b/lib/mongoid/errors/invalid_time.rb index 23204d51b..38a8d0682 100644 --- a/lib/mongoid/errors/invalid_time.rb +++ b/lib/mongoid/errors/invalid_time.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/invalid_transaction_nesting.rb b/lib/mongoid/errors/invalid_transaction_nesting.rb index 28c61bd22..13584c419 100644 --- a/lib/mongoid/errors/invalid_transaction_nesting.rb +++ b/lib/mongoid/errors/invalid_transaction_nesting.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/inverse_not_found.rb b/lib/mongoid/errors/inverse_not_found.rb index 24d66a1bc..2ec36d4c6 100644 --- a/lib/mongoid/errors/inverse_not_found.rb +++ b/lib/mongoid/errors/inverse_not_found.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/mixed_client_configuration.rb b/lib/mongoid/errors/mixed_client_configuration.rb index c56ce705a..543ca0d77 100644 --- a/lib/mongoid/errors/mixed_client_configuration.rb +++ b/lib/mongoid/errors/mixed_client_configuration.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/mixed_relations.rb b/lib/mongoid/errors/mixed_relations.rb index 5fcbed6fa..ee5db55b9 100644 --- a/lib/mongoid/errors/mixed_relations.rb +++ b/lib/mongoid/errors/mixed_relations.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/mongoid_error.rb b/lib/mongoid/errors/mongoid_error.rb index b3aadc1e5..828c44dbb 100644 --- a/lib/mongoid/errors/mongoid_error.rb +++ b/lib/mongoid/errors/mongoid_error.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/nested_attributes_metadata_not_found.rb b/lib/mongoid/errors/nested_attributes_metadata_not_found.rb index e5919f4ab..a1ff1f743 100644 --- a/lib/mongoid/errors/nested_attributes_metadata_not_found.rb +++ b/lib/mongoid/errors/nested_attributes_metadata_not_found.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/no_client_config.rb b/lib/mongoid/errors/no_client_config.rb index bee8b2a79..de8914fd9 100644 --- a/lib/mongoid/errors/no_client_config.rb +++ b/lib/mongoid/errors/no_client_config.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/no_client_database.rb b/lib/mongoid/errors/no_client_database.rb index c5ab956d2..f4c4074ce 100644 --- a/lib/mongoid/errors/no_client_database.rb +++ b/lib/mongoid/errors/no_client_database.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/no_client_hosts.rb b/lib/mongoid/errors/no_client_hosts.rb index 0d5ff1cc8..9de04ad12 100644 --- a/lib/mongoid/errors/no_client_hosts.rb +++ b/lib/mongoid/errors/no_client_hosts.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/no_clients_config.rb b/lib/mongoid/errors/no_clients_config.rb index b87e4100f..0bb260fcc 100644 --- a/lib/mongoid/errors/no_clients_config.rb +++ b/lib/mongoid/errors/no_clients_config.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/no_default_client.rb b/lib/mongoid/errors/no_default_client.rb index 4bd7b8f45..1d84ba698 100644 --- a/lib/mongoid/errors/no_default_client.rb +++ b/lib/mongoid/errors/no_default_client.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/no_environment.rb b/lib/mongoid/errors/no_environment.rb index befaf5dad..f660d419d 100644 --- a/lib/mongoid/errors/no_environment.rb +++ b/lib/mongoid/errors/no_environment.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/no_map_reduce_output.rb b/lib/mongoid/errors/no_map_reduce_output.rb index 32e38a53c..f7904e029 100644 --- a/lib/mongoid/errors/no_map_reduce_output.rb +++ b/lib/mongoid/errors/no_map_reduce_output.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/no_metadata.rb b/lib/mongoid/errors/no_metadata.rb index a0062f0d3..6b60b6159 100644 --- a/lib/mongoid/errors/no_metadata.rb +++ b/lib/mongoid/errors/no_metadata.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/no_parent.rb b/lib/mongoid/errors/no_parent.rb index 2a9187e73..2b5b39792 100644 --- a/lib/mongoid/errors/no_parent.rb +++ b/lib/mongoid/errors/no_parent.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/readonly_attribute.rb b/lib/mongoid/errors/readonly_attribute.rb index 3877038d0..7d23f2be1 100644 --- a/lib/mongoid/errors/readonly_attribute.rb +++ b/lib/mongoid/errors/readonly_attribute.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/readonly_document.rb b/lib/mongoid/errors/readonly_document.rb index 57cce0526..45eb117e6 100644 --- a/lib/mongoid/errors/readonly_document.rb +++ b/lib/mongoid/errors/readonly_document.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/rollback.rb b/lib/mongoid/errors/rollback.rb index a4bf63fb7..e07284ce9 100644 --- a/lib/mongoid/errors/rollback.rb +++ b/lib/mongoid/errors/rollback.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/scope_overwrite.rb b/lib/mongoid/errors/scope_overwrite.rb index fc1f9e49a..8760304ba 100644 --- a/lib/mongoid/errors/scope_overwrite.rb +++ b/lib/mongoid/errors/scope_overwrite.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/sessions_not_supported.rb b/lib/mongoid/errors/sessions_not_supported.rb index ac2a98f19..2e5ea3960 100644 --- a/lib/mongoid/errors/sessions_not_supported.rb +++ b/lib/mongoid/errors/sessions_not_supported.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/too_many_nested_attribute_records.rb b/lib/mongoid/errors/too_many_nested_attribute_records.rb index 6d7a4b79d..09b6fdba3 100644 --- a/lib/mongoid/errors/too_many_nested_attribute_records.rb +++ b/lib/mongoid/errors/too_many_nested_attribute_records.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/transaction_error.rb b/lib/mongoid/errors/transaction_error.rb index ba001b932..e68f26d8e 100644 --- a/lib/mongoid/errors/transaction_error.rb +++ b/lib/mongoid/errors/transaction_error.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/transactions_not_supported.rb b/lib/mongoid/errors/transactions_not_supported.rb index 2e07ea00e..1fc494524 100644 --- a/lib/mongoid/errors/transactions_not_supported.rb +++ b/lib/mongoid/errors/transactions_not_supported.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/unknown_attribute.rb b/lib/mongoid/errors/unknown_attribute.rb index 5c449a5fe..38b181e79 100644 --- a/lib/mongoid/errors/unknown_attribute.rb +++ b/lib/mongoid/errors/unknown_attribute.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/unknown_model.rb b/lib/mongoid/errors/unknown_model.rb index 2ec3f6e20..0fc9a3786 100644 --- a/lib/mongoid/errors/unknown_model.rb +++ b/lib/mongoid/errors/unknown_model.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/unsaved_document.rb b/lib/mongoid/errors/unsaved_document.rb index 8084256b8..d4f1ca3f4 100644 --- a/lib/mongoid/errors/unsaved_document.rb +++ b/lib/mongoid/errors/unsaved_document.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/unsupported_javascript.rb b/lib/mongoid/errors/unsupported_javascript.rb index 900f21bf0..be3d53b17 100644 --- a/lib/mongoid/errors/unsupported_javascript.rb +++ b/lib/mongoid/errors/unsupported_javascript.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/errors/validations.rb b/lib/mongoid/errors/validations.rb index a125fdec9..507b6d140 100644 --- a/lib/mongoid/errors/validations.rb +++ b/lib/mongoid/errors/validations.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Errors diff --git a/lib/mongoid/evolvable.rb b/lib/mongoid/evolvable.rb index 54cf3ec16..b75a7d74a 100644 --- a/lib/mongoid/evolvable.rb +++ b/lib/mongoid/evolvable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/extensions.rb b/lib/mongoid/extensions.rb index 0903511ca..47cec4a21 100644 --- a/lib/mongoid/extensions.rb +++ b/lib/mongoid/extensions.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/extensions/array" require "mongoid/extensions/big_decimal" diff --git a/lib/mongoid/extensions/array.rb b/lib/mongoid/extensions/array.rb index 2c53f5fbe..cb8e290b1 100644 --- a/lib/mongoid/extensions/array.rb +++ b/lib/mongoid/extensions/array.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/big_decimal.rb b/lib/mongoid/extensions/big_decimal.rb index 2013c2666..e012fd7ea 100644 --- a/lib/mongoid/extensions/big_decimal.rb +++ b/lib/mongoid/extensions/big_decimal.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/binary.rb b/lib/mongoid/extensions/binary.rb index cfbc5318b..b4ecc3d5c 100644 --- a/lib/mongoid/extensions/binary.rb +++ b/lib/mongoid/extensions/binary.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/boolean.rb b/lib/mongoid/extensions/boolean.rb index 7674ec9c8..39b7bfa0e 100644 --- a/lib/mongoid/extensions/boolean.rb +++ b/lib/mongoid/extensions/boolean.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid class Boolean diff --git a/lib/mongoid/extensions/date.rb b/lib/mongoid/extensions/date.rb index 52d90cc9f..954675a4e 100644 --- a/lib/mongoid/extensions/date.rb +++ b/lib/mongoid/extensions/date.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/date_time.rb b/lib/mongoid/extensions/date_time.rb index bb68d8145..865a08051 100644 --- a/lib/mongoid/extensions/date_time.rb +++ b/lib/mongoid/extensions/date_time.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/decimal128.rb b/lib/mongoid/extensions/decimal128.rb index 0cc946c08..fff728310 100644 --- a/lib/mongoid/extensions/decimal128.rb +++ b/lib/mongoid/extensions/decimal128.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/false_class.rb b/lib/mongoid/extensions/false_class.rb index eefa850d7..f23a30699 100644 --- a/lib/mongoid/extensions/false_class.rb +++ b/lib/mongoid/extensions/false_class.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/float.rb b/lib/mongoid/extensions/float.rb index a2491e11e..a57338eb3 100644 --- a/lib/mongoid/extensions/float.rb +++ b/lib/mongoid/extensions/float.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/hash.rb b/lib/mongoid/extensions/hash.rb index f1b067e7a..4c63a8cbc 100644 --- a/lib/mongoid/extensions/hash.rb +++ b/lib/mongoid/extensions/hash.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/integer.rb b/lib/mongoid/extensions/integer.rb index b9c4ce187..c2ada5404 100644 --- a/lib/mongoid/extensions/integer.rb +++ b/lib/mongoid/extensions/integer.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/module.rb b/lib/mongoid/extensions/module.rb index 18a7ae335..0edb0122b 100644 --- a/lib/mongoid/extensions/module.rb +++ b/lib/mongoid/extensions/module.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/nil_class.rb b/lib/mongoid/extensions/nil_class.rb index 1f925bc30..50e1ec385 100644 --- a/lib/mongoid/extensions/nil_class.rb +++ b/lib/mongoid/extensions/nil_class.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/object.rb b/lib/mongoid/extensions/object.rb index f7134599c..6c1b5d4ff 100644 --- a/lib/mongoid/extensions/object.rb +++ b/lib/mongoid/extensions/object.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/object_id.rb b/lib/mongoid/extensions/object_id.rb index 31f610e12..ace3e85be 100644 --- a/lib/mongoid/extensions/object_id.rb +++ b/lib/mongoid/extensions/object_id.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/range.rb b/lib/mongoid/extensions/range.rb index b39a61ddb..f680c85d8 100644 --- a/lib/mongoid/extensions/range.rb +++ b/lib/mongoid/extensions/range.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/raw_value.rb b/lib/mongoid/extensions/raw_value.rb index 9343ae52b..743dede60 100644 --- a/lib/mongoid/extensions/raw_value.rb +++ b/lib/mongoid/extensions/raw_value.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all # Wrapper class used when a value cannot be casted in evolve method. module Mongoid diff --git a/lib/mongoid/extensions/regexp.rb b/lib/mongoid/extensions/regexp.rb index 1208fe0ba..3eb5055da 100644 --- a/lib/mongoid/extensions/regexp.rb +++ b/lib/mongoid/extensions/regexp.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/set.rb b/lib/mongoid/extensions/set.rb index 7bd08a6ce..017a18512 100644 --- a/lib/mongoid/extensions/set.rb +++ b/lib/mongoid/extensions/set.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/string.rb b/lib/mongoid/extensions/string.rb index 5fb256c78..6565fdad6 100644 --- a/lib/mongoid/extensions/string.rb +++ b/lib/mongoid/extensions/string.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/symbol.rb b/lib/mongoid/extensions/symbol.rb index 159b813e5..e9d6c999b 100644 --- a/lib/mongoid/extensions/symbol.rb +++ b/lib/mongoid/extensions/symbol.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/time.rb b/lib/mongoid/extensions/time.rb index fa8d9713e..91a0dbd04 100644 --- a/lib/mongoid/extensions/time.rb +++ b/lib/mongoid/extensions/time.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/time_with_zone.rb b/lib/mongoid/extensions/time_with_zone.rb index 10c17cc3e..9164b9cba 100644 --- a/lib/mongoid/extensions/time_with_zone.rb +++ b/lib/mongoid/extensions/time_with_zone.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/extensions/true_class.rb b/lib/mongoid/extensions/true_class.rb index 6c5eaa50f..ebd11587c 100644 --- a/lib/mongoid/extensions/true_class.rb +++ b/lib/mongoid/extensions/true_class.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Extensions diff --git a/lib/mongoid/factory.rb b/lib/mongoid/factory.rb index 6daf7bf32..027e1d331 100644 --- a/lib/mongoid/factory.rb +++ b/lib/mongoid/factory.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/fields.rb b/lib/mongoid/fields.rb index 506efa6ed..21530bcd5 100644 --- a/lib/mongoid/fields.rb +++ b/lib/mongoid/fields.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/fields/standard" require "mongoid/fields/encrypted" diff --git a/lib/mongoid/fields/encrypted.rb b/lib/mongoid/fields/encrypted.rb index 9c3d48edb..29d54273e 100644 --- a/lib/mongoid/fields/encrypted.rb +++ b/lib/mongoid/fields/encrypted.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Fields diff --git a/lib/mongoid/fields/foreign_key.rb b/lib/mongoid/fields/foreign_key.rb index 13a9d4718..efcbfb6a5 100644 --- a/lib/mongoid/fields/foreign_key.rb +++ b/lib/mongoid/fields/foreign_key.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Fields diff --git a/lib/mongoid/fields/localized.rb b/lib/mongoid/fields/localized.rb index e0a0ac9f4..f6bbf081e 100644 --- a/lib/mongoid/fields/localized.rb +++ b/lib/mongoid/fields/localized.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Fields diff --git a/lib/mongoid/fields/standard.rb b/lib/mongoid/fields/standard.rb index a727f3a2c..1604643e8 100644 --- a/lib/mongoid/fields/standard.rb +++ b/lib/mongoid/fields/standard.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Fields diff --git a/lib/mongoid/fields/validators.rb b/lib/mongoid/fields/validators.rb index 216e2af28..e0c5475a3 100644 --- a/lib/mongoid/fields/validators.rb +++ b/lib/mongoid/fields/validators.rb @@ -1,3 +1,4 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/fields/validators/macro" diff --git a/lib/mongoid/fields/validators/macro.rb b/lib/mongoid/fields/validators/macro.rb index db3efd95f..788fabecf 100644 --- a/lib/mongoid/fields/validators/macro.rb +++ b/lib/mongoid/fields/validators/macro.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Fields diff --git a/lib/mongoid/findable.rb b/lib/mongoid/findable.rb index 55f451666..03207b65a 100644 --- a/lib/mongoid/findable.rb +++ b/lib/mongoid/findable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/indexable.rb b/lib/mongoid/indexable.rb index ef9b90e79..8eb6b7e1b 100644 --- a/lib/mongoid/indexable.rb +++ b/lib/mongoid/indexable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/indexable/specification" require "mongoid/indexable/validators/options" diff --git a/lib/mongoid/indexable/specification.rb b/lib/mongoid/indexable/specification.rb index 2ea343f32..ee707c52c 100644 --- a/lib/mongoid/indexable/specification.rb +++ b/lib/mongoid/indexable/specification.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Indexable diff --git a/lib/mongoid/indexable/validators/options.rb b/lib/mongoid/indexable/validators/options.rb index 1c49de0ce..02383d86e 100644 --- a/lib/mongoid/indexable/validators/options.rb +++ b/lib/mongoid/indexable/validators/options.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Indexable diff --git a/lib/mongoid/inspectable.rb b/lib/mongoid/inspectable.rb index 62b895f81..f432ab32a 100644 --- a/lib/mongoid/inspectable.rb +++ b/lib/mongoid/inspectable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/interceptable.rb b/lib/mongoid/interceptable.rb index 65c7a16ed..fa4250366 100644 --- a/lib/mongoid/interceptable.rb +++ b/lib/mongoid/interceptable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/loadable.rb b/lib/mongoid/loadable.rb index 1fd9f3dcb..bb3f6d820 100644 --- a/lib/mongoid/loadable.rb +++ b/lib/mongoid/loadable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/loggable.rb b/lib/mongoid/loggable.rb index 828cca44a..20d9677af 100644 --- a/lib/mongoid/loggable.rb +++ b/lib/mongoid/loggable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/matchable.rb b/lib/mongoid/matchable.rb index 103252ea0..5b1273f78 100644 --- a/lib/mongoid/matchable.rb +++ b/lib/mongoid/matchable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/matcher.rb b/lib/mongoid/matcher.rb index 541ddb91b..dcd51dee8 100644 --- a/lib/mongoid/matcher.rb +++ b/lib/mongoid/matcher.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid # @api private diff --git a/lib/mongoid/matcher/all.rb b/lib/mongoid/matcher/all.rb index 2250bdbb9..b5dc03b5f 100644 --- a/lib/mongoid/matcher/all.rb +++ b/lib/mongoid/matcher/all.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/and.rb b/lib/mongoid/matcher/and.rb index 609eccbc4..948b3c432 100644 --- a/lib/mongoid/matcher/and.rb +++ b/lib/mongoid/matcher/and.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/bits.rb b/lib/mongoid/matcher/bits.rb index 7c5996861..569973212 100644 --- a/lib/mongoid/matcher/bits.rb +++ b/lib/mongoid/matcher/bits.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/bits_all_clear.rb b/lib/mongoid/matcher/bits_all_clear.rb index 6aa274a14..2f8f54cae 100644 --- a/lib/mongoid/matcher/bits_all_clear.rb +++ b/lib/mongoid/matcher/bits_all_clear.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/bits_all_set.rb b/lib/mongoid/matcher/bits_all_set.rb index 7d1e86555..6f7bf6266 100644 --- a/lib/mongoid/matcher/bits_all_set.rb +++ b/lib/mongoid/matcher/bits_all_set.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/bits_any_clear.rb b/lib/mongoid/matcher/bits_any_clear.rb index 1733d4de6..6d4796b2b 100644 --- a/lib/mongoid/matcher/bits_any_clear.rb +++ b/lib/mongoid/matcher/bits_any_clear.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/bits_any_set.rb b/lib/mongoid/matcher/bits_any_set.rb index 9dce8c2c6..f51ba0bce 100644 --- a/lib/mongoid/matcher/bits_any_set.rb +++ b/lib/mongoid/matcher/bits_any_set.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/elem_match.rb b/lib/mongoid/matcher/elem_match.rb index 1e767631e..917dce195 100644 --- a/lib/mongoid/matcher/elem_match.rb +++ b/lib/mongoid/matcher/elem_match.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/elem_match_expression.rb b/lib/mongoid/matcher/elem_match_expression.rb index 0147275fc..71ced6fc9 100644 --- a/lib/mongoid/matcher/elem_match_expression.rb +++ b/lib/mongoid/matcher/elem_match_expression.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/eq.rb b/lib/mongoid/matcher/eq.rb index d5484ce07..864f4fa14 100644 --- a/lib/mongoid/matcher/eq.rb +++ b/lib/mongoid/matcher/eq.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/eq_impl.rb b/lib/mongoid/matcher/eq_impl.rb index 054dd5af7..d55627cc3 100644 --- a/lib/mongoid/matcher/eq_impl.rb +++ b/lib/mongoid/matcher/eq_impl.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/eq_impl_with_regexp.rb b/lib/mongoid/matcher/eq_impl_with_regexp.rb index 11fec2d72..e6237c7c9 100644 --- a/lib/mongoid/matcher/eq_impl_with_regexp.rb +++ b/lib/mongoid/matcher/eq_impl_with_regexp.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/exists.rb b/lib/mongoid/matcher/exists.rb index dc1c99b1c..a61982c14 100644 --- a/lib/mongoid/matcher/exists.rb +++ b/lib/mongoid/matcher/exists.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/expression.rb b/lib/mongoid/matcher/expression.rb index 685d998dc..ddc81751f 100644 --- a/lib/mongoid/matcher/expression.rb +++ b/lib/mongoid/matcher/expression.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/expression_operator.rb b/lib/mongoid/matcher/expression_operator.rb index 35fe179d7..44ee5e028 100644 --- a/lib/mongoid/matcher/expression_operator.rb +++ b/lib/mongoid/matcher/expression_operator.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/field_expression.rb b/lib/mongoid/matcher/field_expression.rb index be1563036..43eb02941 100644 --- a/lib/mongoid/matcher/field_expression.rb +++ b/lib/mongoid/matcher/field_expression.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/field_operator.rb b/lib/mongoid/matcher/field_operator.rb index 4b1a17998..7e2d972ac 100644 --- a/lib/mongoid/matcher/field_operator.rb +++ b/lib/mongoid/matcher/field_operator.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/gt.rb b/lib/mongoid/matcher/gt.rb index 5e25a6033..a9f179458 100644 --- a/lib/mongoid/matcher/gt.rb +++ b/lib/mongoid/matcher/gt.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/gte.rb b/lib/mongoid/matcher/gte.rb index 70f43d8aa..0124e0248 100644 --- a/lib/mongoid/matcher/gte.rb +++ b/lib/mongoid/matcher/gte.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/in.rb b/lib/mongoid/matcher/in.rb index af1396c03..275a576a4 100644 --- a/lib/mongoid/matcher/in.rb +++ b/lib/mongoid/matcher/in.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/lt.rb b/lib/mongoid/matcher/lt.rb index 4a1f00a7d..8d01aa0b6 100644 --- a/lib/mongoid/matcher/lt.rb +++ b/lib/mongoid/matcher/lt.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/lte.rb b/lib/mongoid/matcher/lte.rb index 6cbe5cd56..bb513807f 100644 --- a/lib/mongoid/matcher/lte.rb +++ b/lib/mongoid/matcher/lte.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/mod.rb b/lib/mongoid/matcher/mod.rb index d6a1017ff..5634441db 100644 --- a/lib/mongoid/matcher/mod.rb +++ b/lib/mongoid/matcher/mod.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/ne.rb b/lib/mongoid/matcher/ne.rb index 037f2779e..51cd9c771 100644 --- a/lib/mongoid/matcher/ne.rb +++ b/lib/mongoid/matcher/ne.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/nin.rb b/lib/mongoid/matcher/nin.rb index 4a5b35bbf..2a9887bb5 100644 --- a/lib/mongoid/matcher/nin.rb +++ b/lib/mongoid/matcher/nin.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/nor.rb b/lib/mongoid/matcher/nor.rb index cbdf2de07..06c83ea18 100644 --- a/lib/mongoid/matcher/nor.rb +++ b/lib/mongoid/matcher/nor.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/not.rb b/lib/mongoid/matcher/not.rb index e2257d434..4f55992af 100644 --- a/lib/mongoid/matcher/not.rb +++ b/lib/mongoid/matcher/not.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/or.rb b/lib/mongoid/matcher/or.rb index f64d17888..719629991 100644 --- a/lib/mongoid/matcher/or.rb +++ b/lib/mongoid/matcher/or.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/regex.rb b/lib/mongoid/matcher/regex.rb index e4230e8f1..113938fcc 100644 --- a/lib/mongoid/matcher/regex.rb +++ b/lib/mongoid/matcher/regex.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/size.rb b/lib/mongoid/matcher/size.rb index 19bb8267e..df51c588a 100644 --- a/lib/mongoid/matcher/size.rb +++ b/lib/mongoid/matcher/size.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/matcher/type.rb b/lib/mongoid/matcher/type.rb index 0fb7a3d6f..8fb30936b 100644 --- a/lib/mongoid/matcher/type.rb +++ b/lib/mongoid/matcher/type.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module Matcher diff --git a/lib/mongoid/persistable.rb b/lib/mongoid/persistable.rb index 7ac4eea15..af1f6bf2c 100644 --- a/lib/mongoid/persistable.rb +++ b/lib/mongoid/persistable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/persistable/creatable" require "mongoid/persistable/deletable" diff --git a/lib/mongoid/persistable/creatable.rb b/lib/mongoid/persistable/creatable.rb index d276780c8..50147b556 100644 --- a/lib/mongoid/persistable/creatable.rb +++ b/lib/mongoid/persistable/creatable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistable/deletable.rb b/lib/mongoid/persistable/deletable.rb index a5978ac36..49c349bc1 100644 --- a/lib/mongoid/persistable/deletable.rb +++ b/lib/mongoid/persistable/deletable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistable/destroyable.rb b/lib/mongoid/persistable/destroyable.rb index 6a22063b2..5f94b3277 100644 --- a/lib/mongoid/persistable/destroyable.rb +++ b/lib/mongoid/persistable/destroyable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistable/incrementable.rb b/lib/mongoid/persistable/incrementable.rb index ec142b79f..566b3c113 100644 --- a/lib/mongoid/persistable/incrementable.rb +++ b/lib/mongoid/persistable/incrementable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistable/logical.rb b/lib/mongoid/persistable/logical.rb index 434ab51e3..4d8a36693 100644 --- a/lib/mongoid/persistable/logical.rb +++ b/lib/mongoid/persistable/logical.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistable/maxable.rb b/lib/mongoid/persistable/maxable.rb index 50f8b17f7..1f7109013 100644 --- a/lib/mongoid/persistable/maxable.rb +++ b/lib/mongoid/persistable/maxable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistable/minable.rb b/lib/mongoid/persistable/minable.rb index 3ca3b175d..80231befb 100644 --- a/lib/mongoid/persistable/minable.rb +++ b/lib/mongoid/persistable/minable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistable/multipliable.rb b/lib/mongoid/persistable/multipliable.rb index 996395760..4569d01da 100644 --- a/lib/mongoid/persistable/multipliable.rb +++ b/lib/mongoid/persistable/multipliable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistable/poppable.rb b/lib/mongoid/persistable/poppable.rb index ef31ef6e2..a0bfd3658 100644 --- a/lib/mongoid/persistable/poppable.rb +++ b/lib/mongoid/persistable/poppable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistable/pullable.rb b/lib/mongoid/persistable/pullable.rb index 5e8ed7040..4d881c959 100644 --- a/lib/mongoid/persistable/pullable.rb +++ b/lib/mongoid/persistable/pullable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistable/pushable.rb b/lib/mongoid/persistable/pushable.rb index 4844b4afd..8c533b226 100644 --- a/lib/mongoid/persistable/pushable.rb +++ b/lib/mongoid/persistable/pushable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistable/renamable.rb b/lib/mongoid/persistable/renamable.rb index 265b04ba7..81840f668 100644 --- a/lib/mongoid/persistable/renamable.rb +++ b/lib/mongoid/persistable/renamable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistable/savable.rb b/lib/mongoid/persistable/savable.rb index 8a8eb023a..7c11c8ae9 100644 --- a/lib/mongoid/persistable/savable.rb +++ b/lib/mongoid/persistable/savable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistable/settable.rb b/lib/mongoid/persistable/settable.rb index ac8d690cd..0c2e687a6 100644 --- a/lib/mongoid/persistable/settable.rb +++ b/lib/mongoid/persistable/settable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistable/unsettable.rb b/lib/mongoid/persistable/unsettable.rb index 92c797dcc..44ce6cbab 100644 --- a/lib/mongoid/persistable/unsettable.rb +++ b/lib/mongoid/persistable/unsettable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistable/updatable.rb b/lib/mongoid/persistable/updatable.rb index c1537c648..9dc5aeeaf 100644 --- a/lib/mongoid/persistable/updatable.rb +++ b/lib/mongoid/persistable/updatable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistable/upsertable.rb b/lib/mongoid/persistable/upsertable.rb index 622f7d932..dc516570a 100644 --- a/lib/mongoid/persistable/upsertable.rb +++ b/lib/mongoid/persistable/upsertable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Persistable diff --git a/lib/mongoid/persistence_context.rb b/lib/mongoid/persistence_context.rb index 58546f7b5..110703b0e 100644 --- a/lib/mongoid/persistence_context.rb +++ b/lib/mongoid/persistence_context.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/positional.rb b/lib/mongoid/positional.rb index 14418628c..6be1782e4 100644 --- a/lib/mongoid/positional.rb +++ b/lib/mongoid/positional.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/query_cache.rb b/lib/mongoid/query_cache.rb index f02399089..74f19f21a 100644 --- a/lib/mongoid/query_cache.rb +++ b/lib/mongoid/query_cache.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/railtie.rb b/lib/mongoid/railtie.rb index f4edf6d92..a4d87f427 100644 --- a/lib/mongoid/railtie.rb +++ b/lib/mongoid/railtie.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "rails" require "rails/mongoid" diff --git a/lib/mongoid/railties/console_sandbox.rb b/lib/mongoid/railties/console_sandbox.rb index 478674aee..fdb64cc23 100644 --- a/lib/mongoid/railties/console_sandbox.rb +++ b/lib/mongoid/railties/console_sandbox.rb @@ -1,3 +1,4 @@ +# rubocop:todo all require "mongoid/threaded" require "mongoid/errors/transactions_not_supported" diff --git a/lib/mongoid/railties/controller_runtime.rb b/lib/mongoid/railties/controller_runtime.rb index 6793a7153..fd2f5e927 100644 --- a/lib/mongoid/railties/controller_runtime.rb +++ b/lib/mongoid/railties/controller_runtime.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Railties diff --git a/lib/mongoid/railties/database.rake b/lib/mongoid/railties/database.rake index bf84c8acb..d839602c2 100644 --- a/lib/mongoid/railties/database.rake +++ b/lib/mongoid/railties/database.rake @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all load 'mongoid/tasks/database.rake' load "mongoid/tasks/encryption.rake" diff --git a/lib/mongoid/reloadable.rb b/lib/mongoid/reloadable.rb index 45f5f43b0..2813a3d8a 100644 --- a/lib/mongoid/reloadable.rb +++ b/lib/mongoid/reloadable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/scopable.rb b/lib/mongoid/scopable.rb index fe38e461c..08cb8ecba 100644 --- a/lib/mongoid/scopable.rb +++ b/lib/mongoid/scopable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/selectable.rb b/lib/mongoid/selectable.rb index 8c0fa4181..3aba661a7 100644 --- a/lib/mongoid/selectable.rb +++ b/lib/mongoid/selectable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/serializable.rb b/lib/mongoid/serializable.rb index cc840d605..1e14ea8e6 100644 --- a/lib/mongoid/serializable.rb +++ b/lib/mongoid/serializable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/shardable.rb b/lib/mongoid/shardable.rb index 9c0d7360f..fee228281 100644 --- a/lib/mongoid/shardable.rb +++ b/lib/mongoid/shardable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/stateful.rb b/lib/mongoid/stateful.rb index e5612a903..2926ec245 100644 --- a/lib/mongoid/stateful.rb +++ b/lib/mongoid/stateful.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/stringified_symbol.rb b/lib/mongoid/stringified_symbol.rb index 0614582eb..b5ec950ce 100644 --- a/lib/mongoid/stringified_symbol.rb +++ b/lib/mongoid/stringified_symbol.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all # A class which sends values to the database as Strings but returns them to the user as Symbols. module Mongoid diff --git a/lib/mongoid/tasks/database.rake b/lib/mongoid/tasks/database.rake index 02b034222..36a01de77 100644 --- a/lib/mongoid/tasks/database.rake +++ b/lib/mongoid/tasks/database.rake @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all namespace :db do namespace :mongoid do diff --git a/lib/mongoid/tasks/database.rb b/lib/mongoid/tasks/database.rb index 2e9ea402e..9dc345e8d 100644 --- a/lib/mongoid/tasks/database.rb +++ b/lib/mongoid/tasks/database.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Tasks diff --git a/lib/mongoid/tasks/encryption.rake b/lib/mongoid/tasks/encryption.rake index 589558b57..5cff3894a 100644 --- a/lib/mongoid/tasks/encryption.rake +++ b/lib/mongoid/tasks/encryption.rake @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all namespace :db do namespace :mongoid do diff --git a/lib/mongoid/tasks/encryption.rb b/lib/mongoid/tasks/encryption.rb index 1e33abbf8..613e1699d 100644 --- a/lib/mongoid/tasks/encryption.rb +++ b/lib/mongoid/tasks/encryption.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Tasks diff --git a/lib/mongoid/threaded.rb b/lib/mongoid/threaded.rb index 2d24a012b..ec3aa2437 100644 --- a/lib/mongoid/threaded.rb +++ b/lib/mongoid/threaded.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/threaded/lifecycle" diff --git a/lib/mongoid/threaded/lifecycle.rb b/lib/mongoid/threaded/lifecycle.rb index b883c66d0..175f31688 100644 --- a/lib/mongoid/threaded/lifecycle.rb +++ b/lib/mongoid/threaded/lifecycle.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Threaded diff --git a/lib/mongoid/timestamps.rb b/lib/mongoid/timestamps.rb index 80a32a791..8ff5ad018 100644 --- a/lib/mongoid/timestamps.rb +++ b/lib/mongoid/timestamps.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/timestamps/timeless" require "mongoid/timestamps/created" diff --git a/lib/mongoid/timestamps/created.rb b/lib/mongoid/timestamps/created.rb index f0983c676..42dc003f7 100644 --- a/lib/mongoid/timestamps/created.rb +++ b/lib/mongoid/timestamps/created.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/timestamps/created/short" diff --git a/lib/mongoid/timestamps/created/short.rb b/lib/mongoid/timestamps/created/short.rb index 620b377a9..f364f8238 100644 --- a/lib/mongoid/timestamps/created/short.rb +++ b/lib/mongoid/timestamps/created/short.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Timestamps diff --git a/lib/mongoid/timestamps/short.rb b/lib/mongoid/timestamps/short.rb index 95548a988..8df355aa4 100644 --- a/lib/mongoid/timestamps/short.rb +++ b/lib/mongoid/timestamps/short.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Timestamps diff --git a/lib/mongoid/timestamps/timeless.rb b/lib/mongoid/timestamps/timeless.rb index 4243319c1..5322f8574 100644 --- a/lib/mongoid/timestamps/timeless.rb +++ b/lib/mongoid/timestamps/timeless.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Timestamps diff --git a/lib/mongoid/timestamps/updated.rb b/lib/mongoid/timestamps/updated.rb index 79a97f776..0e1951303 100644 --- a/lib/mongoid/timestamps/updated.rb +++ b/lib/mongoid/timestamps/updated.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/timestamps/updated/short" diff --git a/lib/mongoid/timestamps/updated/short.rb b/lib/mongoid/timestamps/updated/short.rb index afaa5b468..f205574d1 100644 --- a/lib/mongoid/timestamps/updated/short.rb +++ b/lib/mongoid/timestamps/updated/short.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Timestamps diff --git a/lib/mongoid/touchable.rb b/lib/mongoid/touchable.rb index 9abd20a20..5df1aa37c 100644 --- a/lib/mongoid/touchable.rb +++ b/lib/mongoid/touchable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Touchable diff --git a/lib/mongoid/traversable.rb b/lib/mongoid/traversable.rb index cfe830895..da0f8746b 100644 --- a/lib/mongoid/traversable.rb +++ b/lib/mongoid/traversable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/fields/validators/macro" diff --git a/lib/mongoid/utils.rb b/lib/mongoid/utils.rb index 021ee55dc..228a84668 100644 --- a/lib/mongoid/utils.rb +++ b/lib/mongoid/utils.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/mongoid/validatable.rb b/lib/mongoid/validatable.rb index de6957d87..34183e348 100644 --- a/lib/mongoid/validatable.rb +++ b/lib/mongoid/validatable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "mongoid/validatable/macros" require "mongoid/validatable/localizable" diff --git a/lib/mongoid/validatable/associated.rb b/lib/mongoid/validatable/associated.rb index d82936879..f58b36a9a 100644 --- a/lib/mongoid/validatable/associated.rb +++ b/lib/mongoid/validatable/associated.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Validatable diff --git a/lib/mongoid/validatable/format.rb b/lib/mongoid/validatable/format.rb index 9abb77086..08afd45f0 100644 --- a/lib/mongoid/validatable/format.rb +++ b/lib/mongoid/validatable/format.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Validatable diff --git a/lib/mongoid/validatable/length.rb b/lib/mongoid/validatable/length.rb index 7ded067de..4fdd4022a 100644 --- a/lib/mongoid/validatable/length.rb +++ b/lib/mongoid/validatable/length.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Validatable diff --git a/lib/mongoid/validatable/localizable.rb b/lib/mongoid/validatable/localizable.rb index 415f5d145..135aa3257 100644 --- a/lib/mongoid/validatable/localizable.rb +++ b/lib/mongoid/validatable/localizable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Validatable diff --git a/lib/mongoid/validatable/macros.rb b/lib/mongoid/validatable/macros.rb index 0a147ce1b..1b822fa88 100644 --- a/lib/mongoid/validatable/macros.rb +++ b/lib/mongoid/validatable/macros.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Validatable diff --git a/lib/mongoid/validatable/presence.rb b/lib/mongoid/validatable/presence.rb index a4e097532..dfcec548a 100644 --- a/lib/mongoid/validatable/presence.rb +++ b/lib/mongoid/validatable/presence.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Validatable diff --git a/lib/mongoid/validatable/queryable.rb b/lib/mongoid/validatable/queryable.rb index 9acdec690..23f8e9a23 100644 --- a/lib/mongoid/validatable/queryable.rb +++ b/lib/mongoid/validatable/queryable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Validatable diff --git a/lib/mongoid/validatable/uniqueness.rb b/lib/mongoid/validatable/uniqueness.rb index 60adf7609..e527ab468 100644 --- a/lib/mongoid/validatable/uniqueness.rb +++ b/lib/mongoid/validatable/uniqueness.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Validatable diff --git a/lib/mongoid/version.rb b/lib/mongoid/version.rb index e2da271d1..bd850fa5a 100644 --- a/lib/mongoid/version.rb +++ b/lib/mongoid/version.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid VERSION = "9.0.0.alpha" diff --git a/lib/mongoid/warnings.rb b/lib/mongoid/warnings.rb index ee4d9c8ff..1dbbd236a 100644 --- a/lib/mongoid/warnings.rb +++ b/lib/mongoid/warnings.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid diff --git a/lib/rails/generators/mongoid/config/config_generator.rb b/lib/rails/generators/mongoid/config/config_generator.rb index 59dac2ac1..cb2b70864 100644 --- a/lib/rails/generators/mongoid/config/config_generator.rb +++ b/lib/rails/generators/mongoid/config/config_generator.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'rails/generators/mongoid_generator' diff --git a/lib/rails/generators/mongoid/config/templates/mongoid.rb b/lib/rails/generators/mongoid/config/templates/mongoid.rb index 9a42a0a53..6e79f34f8 100644 --- a/lib/rails/generators/mongoid/config/templates/mongoid.rb +++ b/lib/rails/generators/mongoid/config/templates/mongoid.rb @@ -1,3 +1,4 @@ +# rubocop:todo all Mongoid.configure do target_version = "<%= Mongoid::VERSION[/^\d+\.\d+/] %>" diff --git a/lib/rails/generators/mongoid/model/model_generator.rb b/lib/rails/generators/mongoid/model/model_generator.rb index d533b741a..c3b0bc94e 100644 --- a/lib/rails/generators/mongoid/model/model_generator.rb +++ b/lib/rails/generators/mongoid/model/model_generator.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "rails/generators/mongoid_generator" diff --git a/lib/rails/generators/mongoid_generator.rb b/lib/rails/generators/mongoid_generator.rb index 621150347..d1c58a1b7 100644 --- a/lib/rails/generators/mongoid_generator.rb +++ b/lib/rails/generators/mongoid_generator.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "rails/generators/named_base" require "rails/generators/active_model" diff --git a/lib/rails/mongoid.rb b/lib/rails/mongoid.rb index 5aa3af1ec..771052014 100644 --- a/lib/rails/mongoid.rb +++ b/lib/rails/mongoid.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Rails module Mongoid diff --git a/mongoid.gemspec b/mongoid.gemspec index 3e7add3c7..4444859fb 100644 --- a/mongoid.gemspec +++ b/mongoid.gemspec @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all lib = File.expand_path('../lib/', __FILE__) $:.unshift lib unless $:.include?(lib) diff --git a/perf/benchmark.rb b/perf/benchmark.rb index d97a0f1d4..5f521c012 100644 --- a/perf/benchmark.rb +++ b/perf/benchmark.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "benchmark" require "mongoid" diff --git a/perf/benchmark_ips.rb b/perf/benchmark_ips.rb index a25aa007e..6c8fba961 100644 --- a/perf/benchmark_ips.rb +++ b/perf/benchmark_ips.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "benchmark/ips" require "mongoid" diff --git a/perf/benchmark_ips_iteration_cases.rb b/perf/benchmark_ips_iteration_cases.rb index 8269d250a..06983ba91 100644 --- a/perf/benchmark_ips_iteration_cases.rb +++ b/perf/benchmark_ips_iteration_cases.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "benchmark/ips" require "mongoid" diff --git a/perf/gc_suite.rb b/perf/gc_suite.rb index 61f7e91c2..388faacdb 100644 --- a/perf/gc_suite.rb +++ b/perf/gc_suite.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class GCSuite def warming(*) diff --git a/perf/models.rb b/perf/models.rb index 523383f24..ed96aa72a 100644 --- a/perf/models.rb +++ b/perf/models.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Person include Mongoid::Document diff --git a/perf/profile.rb b/perf/profile.rb index bb63a39bf..63033b4b7 100644 --- a/perf/profile.rb +++ b/perf/profile.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "perftools" require "mongoid" diff --git a/spec/integration/app_spec.rb b/spec/integration/app_spec.rb index 8a863506f..1ebdfcbc5 100644 --- a/spec/integration/app_spec.rb +++ b/spec/integration/app_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/associations/belongs_to_spec.rb b/spec/integration/associations/belongs_to_spec.rb index 7b08e0b4b..38ef82de1 100644 --- a/spec/integration/associations/belongs_to_spec.rb +++ b/spec/integration/associations/belongs_to_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' require_relative '../../mongoid/association/referenced/has_one_models' diff --git a/spec/integration/associations/embedded_dirty_spec.rb b/spec/integration/associations/embedded_dirty_spec.rb index 3a14ead3a..60af62596 100644 --- a/spec/integration/associations/embedded_dirty_spec.rb +++ b/spec/integration/associations/embedded_dirty_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' require_relative '../../mongoid/association/embedded/embeds_many_models' diff --git a/spec/integration/associations/embedded_spec.rb b/spec/integration/associations/embedded_spec.rb index b41b71917..06983c1e0 100644 --- a/spec/integration/associations/embedded_spec.rb +++ b/spec/integration/associations/embedded_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' require_relative '../../mongoid/association/embedded/embeds_many_models' diff --git a/spec/integration/associations/embeds_many_spec.rb b/spec/integration/associations/embeds_many_spec.rb index a1bc4520a..45e2a7fe3 100644 --- a/spec/integration/associations/embeds_many_spec.rb +++ b/spec/integration/associations/embeds_many_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/associations/embeds_one_spec.rb b/spec/integration/associations/embeds_one_spec.rb index 112e380f4..6b51bdc61 100644 --- a/spec/integration/associations/embeds_one_spec.rb +++ b/spec/integration/associations/embeds_one_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/associations/foreign_key_spec.rb b/spec/integration/associations/foreign_key_spec.rb index 9806bf308..14278476b 100644 --- a/spec/integration/associations/foreign_key_spec.rb +++ b/spec/integration/associations/foreign_key_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' require_relative './foreign_key_spec_models' diff --git a/spec/integration/associations/foreign_key_spec_models.rb b/spec/integration/associations/foreign_key_spec_models.rb index fc22ea9c5..4f58529fd 100644 --- a/spec/integration/associations/foreign_key_spec_models.rb +++ b/spec/integration/associations/foreign_key_spec_models.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module ForeignKeySpec class Company diff --git a/spec/integration/associations/has_and_belongs_to_many_spec.rb b/spec/integration/associations/has_and_belongs_to_many_spec.rb index 30ba61b8e..e6d269e8e 100644 --- a/spec/integration/associations/has_and_belongs_to_many_spec.rb +++ b/spec/integration/associations/has_and_belongs_to_many_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/associations/has_many_spec.rb b/spec/integration/associations/has_many_spec.rb index 44bb67bce..42041359c 100644 --- a/spec/integration/associations/has_many_spec.rb +++ b/spec/integration/associations/has_many_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' require 'mongoid/association/referenced/has_many_models' diff --git a/spec/integration/associations/has_one_spec.rb b/spec/integration/associations/has_one_spec.rb index 451cde936..d72cc47ea 100644 --- a/spec/integration/associations/has_one_spec.rb +++ b/spec/integration/associations/has_one_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' require 'mongoid/association/referenced/has_one_models' diff --git a/spec/integration/associations/nested_attributes_assignment_spec.rb b/spec/integration/associations/nested_attributes_assignment_spec.rb index ce8e84184..0bc5d94b5 100644 --- a/spec/integration/associations/nested_attributes_assignment_spec.rb +++ b/spec/integration/associations/nested_attributes_assignment_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/associations/reverse_population_spec.rb b/spec/integration/associations/reverse_population_spec.rb index 18fb540dc..b28d77611 100644 --- a/spec/integration/associations/reverse_population_spec.rb +++ b/spec/integration/associations/reverse_population_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' require_relative './reverse_population_spec_models' diff --git a/spec/integration/associations/reverse_population_spec_models.rb b/spec/integration/associations/reverse_population_spec_models.rb index 18113ff3b..ed14c9b42 100644 --- a/spec/integration/associations/reverse_population_spec_models.rb +++ b/spec/integration/associations/reverse_population_spec_models.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module ReversePopulationSpec class Company diff --git a/spec/integration/associations/scope_option_spec.rb b/spec/integration/associations/scope_option_spec.rb index 933ef0390..36a5b3502 100644 --- a/spec/integration/associations/scope_option_spec.rb +++ b/spec/integration/associations/scope_option_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' require_relative '../../mongoid/association/referenced/has_and_belongs_to_many_models' diff --git a/spec/integration/atomic/modifiers_spec.rb b/spec/integration/atomic/modifiers_spec.rb index 5aa8ace5e..a3e7255a1 100644 --- a/spec/integration/atomic/modifiers_spec.rb +++ b/spec/integration/atomic/modifiers_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/integration/bson_regexp_raw_spec.rb b/spec/integration/bson_regexp_raw_spec.rb index b9ad1d53f..d5019c0e1 100644 --- a/spec/integration/bson_regexp_raw_spec.rb +++ b/spec/integration/bson_regexp_raw_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/callbacks_models.rb b/spec/integration/callbacks_models.rb index 2d16141c7..55449154d 100644 --- a/spec/integration/callbacks_models.rb +++ b/spec/integration/callbacks_models.rb @@ -1,3 +1,4 @@ +# rubocop:todo all class Galaxy include Mongoid::Document include Mongoid::Timestamps diff --git a/spec/integration/callbacks_spec.rb b/spec/integration/callbacks_spec.rb index 9729d3749..ec0b0d503 100644 --- a/spec/integration/callbacks_spec.rb +++ b/spec/integration/callbacks_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' require_relative './callbacks_models' diff --git a/spec/integration/contextual/empty_spec.rb b/spec/integration/contextual/empty_spec.rb index a480bd99a..721261f1b 100644 --- a/spec/integration/contextual/empty_spec.rb +++ b/spec/integration/contextual/empty_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/criteria/alias_query_spec.rb b/spec/integration/criteria/alias_query_spec.rb index 06b99b8df..4e376f076 100644 --- a/spec/integration/criteria/alias_query_spec.rb +++ b/spec/integration/criteria/alias_query_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/criteria/date_field_spec.rb b/spec/integration/criteria/date_field_spec.rb index 178695af1..a00a32a61 100644 --- a/spec/integration/criteria/date_field_spec.rb +++ b/spec/integration/criteria/date_field_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/criteria/default_scope_spec.rb b/spec/integration/criteria/default_scope_spec.rb index 8c3e8dfb9..01d9c0f93 100644 --- a/spec/integration/criteria/default_scope_spec.rb +++ b/spec/integration/criteria/default_scope_spec.rb @@ -1,3 +1,4 @@ +# rubocop:todo all require 'spec_helper' describe 'Criteria and default scope' do diff --git a/spec/integration/criteria/logical_spec.rb b/spec/integration/criteria/logical_spec.rb index 3aaeb70e9..4b091308c 100644 --- a/spec/integration/criteria/logical_spec.rb +++ b/spec/integration/criteria/logical_spec.rb @@ -1,3 +1,4 @@ +# rubocop:todo all require 'spec_helper' describe 'Criteria logical operations' do diff --git a/spec/integration/criteria/range_spec.rb b/spec/integration/criteria/range_spec.rb index 891541b7d..2b57ad6d2 100644 --- a/spec/integration/criteria/range_spec.rb +++ b/spec/integration/criteria/range_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/criteria/raw_value_spec.rb b/spec/integration/criteria/raw_value_spec.rb index e1756d9bf..f72e05514 100644 --- a/spec/integration/criteria/raw_value_spec.rb +++ b/spec/integration/criteria/raw_value_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/criteria/time_with_zone_spec.rb b/spec/integration/criteria/time_with_zone_spec.rb index 2f916f1ae..194b29982 100644 --- a/spec/integration/criteria/time_with_zone_spec.rb +++ b/spec/integration/criteria/time_with_zone_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/discriminator_key_spec.rb b/spec/integration/discriminator_key_spec.rb index 30b4e05f7..8ccad42b9 100644 --- a/spec/integration/discriminator_key_spec.rb +++ b/spec/integration/discriminator_key_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/discriminator_value_spec.rb b/spec/integration/discriminator_value_spec.rb index 1de146066..55d4c45ad 100644 --- a/spec/integration/discriminator_value_spec.rb +++ b/spec/integration/discriminator_value_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/document_spec.rb b/spec/integration/document_spec.rb index 015a1bf5f..1437691cc 100644 --- a/spec/integration/document_spec.rb +++ b/spec/integration/document_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/dots_and_dollars_spec.rb b/spec/integration/dots_and_dollars_spec.rb index 875d14dec..ead926169 100644 --- a/spec/integration/dots_and_dollars_spec.rb +++ b/spec/integration/dots_and_dollars_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/integration/encryption_spec.rb b/spec/integration/encryption_spec.rb index a25ba5d8a..0c5106086 100644 --- a/spec/integration/encryption_spec.rb +++ b/spec/integration/encryption_spec.rb @@ -1,3 +1,4 @@ +# rubocop:todo all require 'spec_helper' require 'support/crypt/models' diff --git a/spec/integration/i18n_fallbacks_spec.rb b/spec/integration/i18n_fallbacks_spec.rb index da1236ffd..1dc361d6c 100644 --- a/spec/integration/i18n_fallbacks_spec.rb +++ b/spec/integration/i18n_fallbacks_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/matcher_examples_spec.rb b/spec/integration/matcher_examples_spec.rb index 3dd535dfe..2d621439e 100644 --- a/spec/integration/matcher_examples_spec.rb +++ b/spec/integration/matcher_examples_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/matcher_operator_spec.rb b/spec/integration/matcher_operator_spec.rb index 6abe95029..3a76b3a74 100644 --- a/spec/integration/matcher_operator_spec.rb +++ b/spec/integration/matcher_operator_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/matcher_spec.rb b/spec/integration/matcher_spec.rb index d9d447cdd..8c7f4df21 100644 --- a/spec/integration/matcher_spec.rb +++ b/spec/integration/matcher_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/persistence/range_field_spec.rb b/spec/integration/persistence/range_field_spec.rb index e9979ec7e..fb5d80043 100644 --- a/spec/integration/persistence/range_field_spec.rb +++ b/spec/integration/persistence/range_field_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/server_query_spec.rb b/spec/integration/server_query_spec.rb index 1e538dca3..465f5eeab 100644 --- a/spec/integration/server_query_spec.rb +++ b/spec/integration/server_query_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/integration/shardable_spec.rb b/spec/integration/shardable_spec.rb index 0d4474140..111083bd4 100644 --- a/spec/integration/shardable_spec.rb +++ b/spec/integration/shardable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' require_relative '../mongoid/shardable_models' diff --git a/spec/integration/stringified_symbol_field_spec.rb b/spec/integration/stringified_symbol_field_spec.rb index c04e3fbe4..b4e88f9ab 100644 --- a/spec/integration/stringified_symbol_field_spec.rb +++ b/spec/integration/stringified_symbol_field_spec.rb @@ -1,3 +1,4 @@ +# rubocop:todo all require "spec_helper" describe "StringifiedSymbol fields" do diff --git a/spec/lite_spec_helper.rb b/spec/lite_spec_helper.rb index f2bb2864b..19041be61 100644 --- a/spec/lite_spec_helper.rb +++ b/spec/lite_spec_helper.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib")) diff --git a/spec/mongoid/association/accessors_spec.rb b/spec/mongoid/association/accessors_spec.rb index baed20370..c8cd7c726 100644 --- a/spec/mongoid/association/accessors_spec.rb +++ b/spec/mongoid/association/accessors_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/auto_save_spec.rb b/spec/mongoid/association/auto_save_spec.rb index 9cc0a7f60..bb660688c 100644 --- a/spec/mongoid/association/auto_save_spec.rb +++ b/spec/mongoid/association/auto_save_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './referenced/has_many_models' diff --git a/spec/mongoid/association/builders_spec.rb b/spec/mongoid/association/builders_spec.rb index 697c2b3b4..4bbec78ad 100644 --- a/spec/mongoid/association/builders_spec.rb +++ b/spec/mongoid/association/builders_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/constrainable_spec.rb b/spec/mongoid/association/constrainable_spec.rb index c9d1f7330..05fa6672f 100644 --- a/spec/mongoid/association/constrainable_spec.rb +++ b/spec/mongoid/association/constrainable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/counter_cache_spec.rb b/spec/mongoid/association/counter_cache_spec.rb index 631bd1eb3..c7cb151bd 100644 --- a/spec/mongoid/association/counter_cache_spec.rb +++ b/spec/mongoid/association/counter_cache_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/depending_spec.rb b/spec/mongoid/association/depending_spec.rb index 081668a43..b1a9e0b45 100644 --- a/spec/mongoid/association/depending_spec.rb +++ b/spec/mongoid/association/depending_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/eager_spec.rb b/spec/mongoid/association/eager_spec.rb index 323cdce33..1706b0c42 100644 --- a/spec/mongoid/association/eager_spec.rb +++ b/spec/mongoid/association/eager_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/embedded/cyclic_spec.rb b/spec/mongoid/association/embedded/cyclic_spec.rb index 8cb9c6e38..f82bea0c9 100644 --- a/spec/mongoid/association/embedded/cyclic_spec.rb +++ b/spec/mongoid/association/embedded/cyclic_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/embedded/dirty_spec.rb b/spec/mongoid/association/embedded/dirty_spec.rb index 41536792a..15ac5a168 100644 --- a/spec/mongoid/association/embedded/dirty_spec.rb +++ b/spec/mongoid/association/embedded/dirty_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/mongoid/association/embedded/embedded_in/binding_spec.rb b/spec/mongoid/association/embedded/embedded_in/binding_spec.rb index 6674ed991..ed9134f83 100644 --- a/spec/mongoid/association/embedded/embedded_in/binding_spec.rb +++ b/spec/mongoid/association/embedded/embedded_in/binding_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/embedded/embedded_in/buildable_spec.rb b/spec/mongoid/association/embedded/embedded_in/buildable_spec.rb index 61142e46d..88028ce76 100644 --- a/spec/mongoid/association/embedded/embedded_in/buildable_spec.rb +++ b/spec/mongoid/association/embedded/embedded_in/buildable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/embedded/embedded_in/proxy_spec.rb b/spec/mongoid/association/embedded/embedded_in/proxy_spec.rb index 8e6395fc9..842fccc12 100644 --- a/spec/mongoid/association/embedded/embedded_in/proxy_spec.rb +++ b/spec/mongoid/association/embedded/embedded_in/proxy_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative '../embeds_many_models' diff --git a/spec/mongoid/association/embedded/embedded_in_spec.rb b/spec/mongoid/association/embedded/embedded_in_spec.rb index d81993e64..a1cad56f7 100644 --- a/spec/mongoid/association/embedded/embedded_in_spec.rb +++ b/spec/mongoid/association/embedded/embedded_in_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './embeds_one_models' diff --git a/spec/mongoid/association/embedded/embeds_many/binding_spec.rb b/spec/mongoid/association/embedded/embeds_many/binding_spec.rb index 068f30b25..67a3f99f4 100644 --- a/spec/mongoid/association/embedded/embeds_many/binding_spec.rb +++ b/spec/mongoid/association/embedded/embeds_many/binding_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/embedded/embeds_many/buildable_spec.rb b/spec/mongoid/association/embedded/embeds_many/buildable_spec.rb index 6b0d13bf3..dbb634fc8 100644 --- a/spec/mongoid/association/embedded/embeds_many/buildable_spec.rb +++ b/spec/mongoid/association/embedded/embeds_many/buildable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/embedded/embeds_many/proxy_spec.rb b/spec/mongoid/association/embedded/embeds_many/proxy_spec.rb index ba024b785..a6d700b37 100644 --- a/spec/mongoid/association/embedded/embeds_many/proxy_spec.rb +++ b/spec/mongoid/association/embedded/embeds_many/proxy_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative '../embeds_many_models.rb' diff --git a/spec/mongoid/association/embedded/embeds_many_models.rb b/spec/mongoid/association/embedded/embeds_many_models.rb index 49c5574c7..28cb27ea9 100644 --- a/spec/mongoid/association/embedded/embeds_many_models.rb +++ b/spec/mongoid/association/embedded/embeds_many_models.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class EmmCongress include Mongoid::Document diff --git a/spec/mongoid/association/embedded/embeds_many_query_spec.rb b/spec/mongoid/association/embedded/embeds_many_query_spec.rb index d574c4411..a4b1d8997 100644 --- a/spec/mongoid/association/embedded/embeds_many_query_spec.rb +++ b/spec/mongoid/association/embedded/embeds_many_query_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './embeds_many_models' diff --git a/spec/mongoid/association/embedded/embeds_many_spec.rb b/spec/mongoid/association/embedded/embeds_many_spec.rb index a01903e88..01d979469 100644 --- a/spec/mongoid/association/embedded/embeds_many_spec.rb +++ b/spec/mongoid/association/embedded/embeds_many_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative 'embeds_many_models' diff --git a/spec/mongoid/association/embedded/embeds_one/binding_spec.rb b/spec/mongoid/association/embedded/embeds_one/binding_spec.rb index 908e51457..4480334f6 100644 --- a/spec/mongoid/association/embedded/embeds_one/binding_spec.rb +++ b/spec/mongoid/association/embedded/embeds_one/binding_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/embedded/embeds_one/buildable_spec.rb b/spec/mongoid/association/embedded/embeds_one/buildable_spec.rb index bf217e459..e875cdd6c 100644 --- a/spec/mongoid/association/embedded/embeds_one/buildable_spec.rb +++ b/spec/mongoid/association/embedded/embeds_one/buildable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/embedded/embeds_one/proxy_spec.rb b/spec/mongoid/association/embedded/embeds_one/proxy_spec.rb index 23097b13d..3ee5c91be 100644 --- a/spec/mongoid/association/embedded/embeds_one/proxy_spec.rb +++ b/spec/mongoid/association/embedded/embeds_one/proxy_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/embedded/embeds_one_dnl_models.rb b/spec/mongoid/association/embedded/embeds_one_dnl_models.rb index 0bc6b44a6..691c1267a 100644 --- a/spec/mongoid/association/embedded/embeds_one_dnl_models.rb +++ b/spec/mongoid/association/embedded/embeds_one_dnl_models.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all # This file is added as an autoload target, but should never be actually # processed. diff --git a/spec/mongoid/association/embedded/embeds_one_models.rb b/spec/mongoid/association/embedded/embeds_one_models.rb index 80ee90121..5c83aee69 100644 --- a/spec/mongoid/association/embedded/embeds_one_models.rb +++ b/spec/mongoid/association/embedded/embeds_one_models.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class EomParent include Mongoid::Document diff --git a/spec/mongoid/association/embedded/embeds_one_query_spec.rb b/spec/mongoid/association/embedded/embeds_one_query_spec.rb index f7fc827fe..6d3dd92c7 100644 --- a/spec/mongoid/association/embedded/embeds_one_query_spec.rb +++ b/spec/mongoid/association/embedded/embeds_one_query_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './embeds_one_models' diff --git a/spec/mongoid/association/embedded/embeds_one_spec.rb b/spec/mongoid/association/embedded/embeds_one_spec.rb index 83d47e99b..bc27092b6 100644 --- a/spec/mongoid/association/embedded/embeds_one_spec.rb +++ b/spec/mongoid/association/embedded/embeds_one_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './embeds_one_models' diff --git a/spec/mongoid/association/macros_spec.rb b/spec/mongoid/association/macros_spec.rb index 17d72ffcc..1ce8f1bd3 100644 --- a/spec/mongoid/association/macros_spec.rb +++ b/spec/mongoid/association/macros_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/nested/many_spec.rb b/spec/mongoid/association/nested/many_spec.rb index 7534b1f9e..58a1d1ff0 100644 --- a/spec/mongoid/association/nested/many_spec.rb +++ b/spec/mongoid/association/nested/many_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/nested/one_spec.rb b/spec/mongoid/association/nested/one_spec.rb index 8d4b3f783..89be7fca4 100644 --- a/spec/mongoid/association/nested/one_spec.rb +++ b/spec/mongoid/association/nested/one_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/options_spec.rb b/spec/mongoid/association/options_spec.rb index fceb577f6..83d13143c 100644 --- a/spec/mongoid/association/options_spec.rb +++ b/spec/mongoid/association/options_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/polymorphic_spec.rb b/spec/mongoid/association/polymorphic_spec.rb index c440af455..b0d320da2 100644 --- a/spec/mongoid/association/polymorphic_spec.rb +++ b/spec/mongoid/association/polymorphic_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/referenced/belongs_to/binding_spec.rb b/spec/mongoid/association/referenced/belongs_to/binding_spec.rb index 8aefff1f6..919e4936e 100644 --- a/spec/mongoid/association/referenced/belongs_to/binding_spec.rb +++ b/spec/mongoid/association/referenced/belongs_to/binding_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/referenced/belongs_to/buildable_spec.rb b/spec/mongoid/association/referenced/belongs_to/buildable_spec.rb index 9e9af71e4..114973357 100644 --- a/spec/mongoid/association/referenced/belongs_to/buildable_spec.rb +++ b/spec/mongoid/association/referenced/belongs_to/buildable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/referenced/belongs_to/eager_spec.rb b/spec/mongoid/association/referenced/belongs_to/eager_spec.rb index 6fc91d94a..1f6613715 100644 --- a/spec/mongoid/association/referenced/belongs_to/eager_spec.rb +++ b/spec/mongoid/association/referenced/belongs_to/eager_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative '../has_many_models' diff --git a/spec/mongoid/association/referenced/belongs_to/proxy_spec.rb b/spec/mongoid/association/referenced/belongs_to/proxy_spec.rb index d19a69a37..a12ef78a6 100644 --- a/spec/mongoid/association/referenced/belongs_to/proxy_spec.rb +++ b/spec/mongoid/association/referenced/belongs_to/proxy_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative '../belongs_to_models.rb' diff --git a/spec/mongoid/association/referenced/belongs_to_models.rb b/spec/mongoid/association/referenced/belongs_to_models.rb index fbbaa5534..0bcf307f3 100644 --- a/spec/mongoid/association/referenced/belongs_to_models.rb +++ b/spec/mongoid/association/referenced/belongs_to_models.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class BTMArticle include Mongoid::Document diff --git a/spec/mongoid/association/referenced/belongs_to_query_spec.rb b/spec/mongoid/association/referenced/belongs_to_query_spec.rb index 04ac6346d..9287a2428 100644 --- a/spec/mongoid/association/referenced/belongs_to_query_spec.rb +++ b/spec/mongoid/association/referenced/belongs_to_query_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './has_many_models' diff --git a/spec/mongoid/association/referenced/belongs_to_spec.rb b/spec/mongoid/association/referenced/belongs_to_spec.rb index 5bd4867d7..bacec9bf7 100644 --- a/spec/mongoid/association/referenced/belongs_to_spec.rb +++ b/spec/mongoid/association/referenced/belongs_to_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './has_one_models' diff --git a/spec/mongoid/association/referenced/has_and_belongs_to_many/binding_spec.rb b/spec/mongoid/association/referenced/has_and_belongs_to_many/binding_spec.rb index ccc2d7aa7..a3c6bd7c0 100644 --- a/spec/mongoid/association/referenced/has_and_belongs_to_many/binding_spec.rb +++ b/spec/mongoid/association/referenced/has_and_belongs_to_many/binding_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/referenced/has_and_belongs_to_many/buildable_spec.rb b/spec/mongoid/association/referenced/has_and_belongs_to_many/buildable_spec.rb index 9a8df0be7..56fd4e79d 100644 --- a/spec/mongoid/association/referenced/has_and_belongs_to_many/buildable_spec.rb +++ b/spec/mongoid/association/referenced/has_and_belongs_to_many/buildable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/referenced/has_and_belongs_to_many/eager_spec.rb b/spec/mongoid/association/referenced/has_and_belongs_to_many/eager_spec.rb index 0d6b8df83..62f8a33c3 100644 --- a/spec/mongoid/association/referenced/has_and_belongs_to_many/eager_spec.rb +++ b/spec/mongoid/association/referenced/has_and_belongs_to_many/eager_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative '../has_and_belongs_to_many_models' diff --git a/spec/mongoid/association/referenced/has_and_belongs_to_many/proxy_persistence_spec.rb b/spec/mongoid/association/referenced/has_and_belongs_to_many/proxy_persistence_spec.rb index 410cb6512..978029b6f 100644 --- a/spec/mongoid/association/referenced/has_and_belongs_to_many/proxy_persistence_spec.rb +++ b/spec/mongoid/association/referenced/has_and_belongs_to_many/proxy_persistence_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative '../has_and_belongs_to_many_models' diff --git a/spec/mongoid/association/referenced/has_and_belongs_to_many/proxy_spec.rb b/spec/mongoid/association/referenced/has_and_belongs_to_many/proxy_spec.rb index 0b6cdb721..69fc1aa8c 100644 --- a/spec/mongoid/association/referenced/has_and_belongs_to_many/proxy_spec.rb +++ b/spec/mongoid/association/referenced/has_and_belongs_to_many/proxy_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative "../has_and_belongs_to_many_models" diff --git a/spec/mongoid/association/referenced/has_and_belongs_to_many_models.rb b/spec/mongoid/association/referenced/has_and_belongs_to_many_models.rb index 206786c2e..16aabb614 100644 --- a/spec/mongoid/association/referenced/has_and_belongs_to_many_models.rb +++ b/spec/mongoid/association/referenced/has_and_belongs_to_many_models.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class HabtmmCompany include Mongoid::Document diff --git a/spec/mongoid/association/referenced/has_and_belongs_to_many_query_spec.rb b/spec/mongoid/association/referenced/has_and_belongs_to_many_query_spec.rb index 923b14833..b7408ce79 100644 --- a/spec/mongoid/association/referenced/has_and_belongs_to_many_query_spec.rb +++ b/spec/mongoid/association/referenced/has_and_belongs_to_many_query_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './has_and_belongs_to_many_models' diff --git a/spec/mongoid/association/referenced/has_and_belongs_to_many_spec.rb b/spec/mongoid/association/referenced/has_and_belongs_to_many_spec.rb index a8e0f772a..55b1dc2c8 100644 --- a/spec/mongoid/association/referenced/has_and_belongs_to_many_spec.rb +++ b/spec/mongoid/association/referenced/has_and_belongs_to_many_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative "./has_and_belongs_to_many_models" diff --git a/spec/mongoid/association/referenced/has_many/binding_spec.rb b/spec/mongoid/association/referenced/has_many/binding_spec.rb index 2f07009c7..630aad89d 100644 --- a/spec/mongoid/association/referenced/has_many/binding_spec.rb +++ b/spec/mongoid/association/referenced/has_many/binding_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/referenced/has_many/buildable_spec.rb b/spec/mongoid/association/referenced/has_many/buildable_spec.rb index 73b6d27d1..f71622667 100644 --- a/spec/mongoid/association/referenced/has_many/buildable_spec.rb +++ b/spec/mongoid/association/referenced/has_many/buildable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/referenced/has_many/eager_spec.rb b/spec/mongoid/association/referenced/has_many/eager_spec.rb index 189c4297d..880f2ae80 100644 --- a/spec/mongoid/association/referenced/has_many/eager_spec.rb +++ b/spec/mongoid/association/referenced/has_many/eager_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative '../has_many_models' diff --git a/spec/mongoid/association/referenced/has_many/enumerable_spec.rb b/spec/mongoid/association/referenced/has_many/enumerable_spec.rb index dbcc2b20e..23d5cdd20 100644 --- a/spec/mongoid/association/referenced/has_many/enumerable_spec.rb +++ b/spec/mongoid/association/referenced/has_many/enumerable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/referenced/has_many/proxy_query_spec.rb b/spec/mongoid/association/referenced/has_many/proxy_query_spec.rb index c28d609ac..05a1923af 100644 --- a/spec/mongoid/association/referenced/has_many/proxy_query_spec.rb +++ b/spec/mongoid/association/referenced/has_many/proxy_query_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative '../has_many_models' diff --git a/spec/mongoid/association/referenced/has_many/proxy_spec.rb b/spec/mongoid/association/referenced/has_many/proxy_spec.rb index ad078585f..d268203cf 100644 --- a/spec/mongoid/association/referenced/has_many/proxy_spec.rb +++ b/spec/mongoid/association/referenced/has_many/proxy_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/referenced/has_many_models.rb b/spec/mongoid/association/referenced/has_many_models.rb index bafaf82e8..9f654c206 100644 --- a/spec/mongoid/association/referenced/has_many_models.rb +++ b/spec/mongoid/association/referenced/has_many_models.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class HmmCompany include Mongoid::Document diff --git a/spec/mongoid/association/referenced/has_many_query_spec.rb b/spec/mongoid/association/referenced/has_many_query_spec.rb index 4432de74a..5c79b4454 100644 --- a/spec/mongoid/association/referenced/has_many_query_spec.rb +++ b/spec/mongoid/association/referenced/has_many_query_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './has_many_models' diff --git a/spec/mongoid/association/referenced/has_many_spec.rb b/spec/mongoid/association/referenced/has_many_spec.rb index 692f52c8a..5c3c4dbe2 100644 --- a/spec/mongoid/association/referenced/has_many_spec.rb +++ b/spec/mongoid/association/referenced/has_many_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './has_many_models' diff --git a/spec/mongoid/association/referenced/has_one/binding_spec.rb b/spec/mongoid/association/referenced/has_one/binding_spec.rb index e22e2eb08..433eb0643 100644 --- a/spec/mongoid/association/referenced/has_one/binding_spec.rb +++ b/spec/mongoid/association/referenced/has_one/binding_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/referenced/has_one/buildable_spec.rb b/spec/mongoid/association/referenced/has_one/buildable_spec.rb index 7f72473b1..49e8ecd74 100644 --- a/spec/mongoid/association/referenced/has_one/buildable_spec.rb +++ b/spec/mongoid/association/referenced/has_one/buildable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/referenced/has_one/eager_spec.rb b/spec/mongoid/association/referenced/has_one/eager_spec.rb index 65f2748a6..e14e8bc5a 100644 --- a/spec/mongoid/association/referenced/has_one/eager_spec.rb +++ b/spec/mongoid/association/referenced/has_one/eager_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative '../has_one_models' diff --git a/spec/mongoid/association/referenced/has_one/proxy_spec.rb b/spec/mongoid/association/referenced/has_one/proxy_spec.rb index 35e8e6e4d..77323ab68 100644 --- a/spec/mongoid/association/referenced/has_one/proxy_spec.rb +++ b/spec/mongoid/association/referenced/has_one/proxy_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/referenced/has_one_models.rb b/spec/mongoid/association/referenced/has_one_models.rb index 0a172ef38..bb1d459c6 100644 --- a/spec/mongoid/association/referenced/has_one_models.rb +++ b/spec/mongoid/association/referenced/has_one_models.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class HomCollege include Mongoid::Document diff --git a/spec/mongoid/association/referenced/has_one_query_spec.rb b/spec/mongoid/association/referenced/has_one_query_spec.rb index 952107267..c77913d9f 100644 --- a/spec/mongoid/association/referenced/has_one_query_spec.rb +++ b/spec/mongoid/association/referenced/has_one_query_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './has_one_models' diff --git a/spec/mongoid/association/referenced/has_one_spec.rb b/spec/mongoid/association/referenced/has_one_spec.rb index dbd8b0bbf..565fcaff1 100644 --- a/spec/mongoid/association/referenced/has_one_spec.rb +++ b/spec/mongoid/association/referenced/has_one_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './has_one_models' diff --git a/spec/mongoid/association/reflections_spec.rb b/spec/mongoid/association/reflections_spec.rb index 5e97c2b53..c6e5faad3 100644 --- a/spec/mongoid/association/reflections_spec.rb +++ b/spec/mongoid/association/reflections_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association/syncable_spec.rb b/spec/mongoid/association/syncable_spec.rb index 760e15284..93b52b80a 100644 --- a/spec/mongoid/association/syncable_spec.rb +++ b/spec/mongoid/association/syncable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/association_spec.rb b/spec/mongoid/association_spec.rb index 043b45186..fca9131b3 100644 --- a/spec/mongoid/association_spec.rb +++ b/spec/mongoid/association_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/atomic/modifiers_spec.rb b/spec/mongoid/atomic/modifiers_spec.rb index c808bd3a0..53fd0c648 100644 --- a/spec/mongoid/atomic/modifiers_spec.rb +++ b/spec/mongoid/atomic/modifiers_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/atomic/paths/embedded/many_spec.rb b/spec/mongoid/atomic/paths/embedded/many_spec.rb index dfe68bdca..9c1725baf 100644 --- a/spec/mongoid/atomic/paths/embedded/many_spec.rb +++ b/spec/mongoid/atomic/paths/embedded/many_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/atomic/paths/embedded/one_spec.rb b/spec/mongoid/atomic/paths/embedded/one_spec.rb index 43890ca0a..c4884fc37 100644 --- a/spec/mongoid/atomic/paths/embedded/one_spec.rb +++ b/spec/mongoid/atomic/paths/embedded/one_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/atomic/paths/root_spec.rb b/spec/mongoid/atomic/paths/root_spec.rb index feb1977a2..3cb63eb13 100644 --- a/spec/mongoid/atomic/paths/root_spec.rb +++ b/spec/mongoid/atomic/paths/root_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/atomic/paths_spec.rb b/spec/mongoid/atomic/paths_spec.rb index 8c69a5958..1908ddf5f 100644 --- a/spec/mongoid/atomic/paths_spec.rb +++ b/spec/mongoid/atomic/paths_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/atomic_spec.rb b/spec/mongoid/atomic_spec.rb index f315f7c08..3fe062db5 100644 --- a/spec/mongoid/atomic_spec.rb +++ b/spec/mongoid/atomic_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/attributes/dynamic_spec.rb b/spec/mongoid/attributes/dynamic_spec.rb index 96d3ec663..8dff0e1b3 100644 --- a/spec/mongoid/attributes/dynamic_spec.rb +++ b/spec/mongoid/attributes/dynamic_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/attributes/nested_spec.rb b/spec/mongoid/attributes/nested_spec.rb index 577a80134..8943d382e 100644 --- a/spec/mongoid/attributes/nested_spec.rb +++ b/spec/mongoid/attributes/nested_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative '../association/referenced/has_many_models' diff --git a/spec/mongoid/attributes/nested_spec_models.rb b/spec/mongoid/attributes/nested_spec_models.rb index 654404e38..843b34bce 100644 --- a/spec/mongoid/attributes/nested_spec_models.rb +++ b/spec/mongoid/attributes/nested_spec_models.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class NestedAuthor include Mongoid::Document diff --git a/spec/mongoid/attributes/projector_spec.rb b/spec/mongoid/attributes/projector_spec.rb index 492d89a2d..8fc1a54b5 100644 --- a/spec/mongoid/attributes/projector_spec.rb +++ b/spec/mongoid/attributes/projector_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/attributes/readonly_spec.rb b/spec/mongoid/attributes/readonly_spec.rb index 4476d06cc..3b3b11730 100644 --- a/spec/mongoid/attributes/readonly_spec.rb +++ b/spec/mongoid/attributes/readonly_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/attributes_spec.rb b/spec/mongoid/attributes_spec.rb index 79f198d17..2449782ce 100644 --- a/spec/mongoid/attributes_spec.rb +++ b/spec/mongoid/attributes_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './attributes/nested_spec_models' diff --git a/spec/mongoid/cacheable_spec.rb b/spec/mongoid/cacheable_spec.rb index c867e5226..af5640ab0 100644 --- a/spec/mongoid/cacheable_spec.rb +++ b/spec/mongoid/cacheable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/changeable_spec.rb b/spec/mongoid/changeable_spec.rb index daa51553e..789940200 100644 --- a/spec/mongoid/changeable_spec.rb +++ b/spec/mongoid/changeable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/clients/factory_spec.rb b/spec/mongoid/clients/factory_spec.rb index 37cbbf3dd..2d1f412d9 100644 --- a/spec/mongoid/clients/factory_spec.rb +++ b/spec/mongoid/clients/factory_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/clients/options_spec.rb b/spec/mongoid/clients/options_spec.rb index 99f6785fc..06ca13fe4 100644 --- a/spec/mongoid/clients/options_spec.rb +++ b/spec/mongoid/clients/options_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/clients/sessions_spec.rb b/spec/mongoid/clients/sessions_spec.rb index 44473b099..75dba0fbb 100644 --- a/spec/mongoid/clients/sessions_spec.rb +++ b/spec/mongoid/clients/sessions_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/clients/transactions_spec.rb b/spec/mongoid/clients/transactions_spec.rb index 1decd5c34..cdc62f1c0 100644 --- a/spec/mongoid/clients/transactions_spec.rb +++ b/spec/mongoid/clients/transactions_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './transactions_spec_models' diff --git a/spec/mongoid/clients/transactions_spec_models.rb b/spec/mongoid/clients/transactions_spec_models.rb index 4a6264624..c1629c074 100644 --- a/spec/mongoid/clients/transactions_spec_models.rb +++ b/spec/mongoid/clients/transactions_spec_models.rb @@ -1,3 +1,4 @@ +# rubocop:todo all class TransactionsSpecCounter def initialize @called = 0 diff --git a/spec/mongoid/clients_spec.rb b/spec/mongoid/clients_spec.rb index faa11232f..055500cf8 100644 --- a/spec/mongoid/clients_spec.rb +++ b/spec/mongoid/clients_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/collection_configurable_spec.rb b/spec/mongoid/collection_configurable_spec.rb index c1a9d4a11..e88c48b62 100644 --- a/spec/mongoid/collection_configurable_spec.rb +++ b/spec/mongoid/collection_configurable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/composable_spec.rb b/spec/mongoid/composable_spec.rb index cde1bcaeb..f35130832 100644 --- a/spec/mongoid/composable_spec.rb +++ b/spec/mongoid/composable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/config/defaults_spec.rb b/spec/mongoid/config/defaults_spec.rb index 9bf5bf9bf..cbfca9259 100644 --- a/spec/mongoid/config/defaults_spec.rb +++ b/spec/mongoid/config/defaults_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/config/encryption_spec.rb b/spec/mongoid/config/encryption_spec.rb index 60aa39957..030aab7bc 100644 --- a/spec/mongoid/config/encryption_spec.rb +++ b/spec/mongoid/config/encryption_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require "support/crypt/models" diff --git a/spec/mongoid/config/environment_spec.rb b/spec/mongoid/config/environment_spec.rb index 8e8a18787..eaeb93124 100644 --- a/spec/mongoid/config/environment_spec.rb +++ b/spec/mongoid/config/environment_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require "support/feature_sandbox" diff --git a/spec/mongoid/config/introspection_spec.rb b/spec/mongoid/config/introspection_spec.rb index b203d10bf..60ed78b6d 100644 --- a/spec/mongoid/config/introspection_spec.rb +++ b/spec/mongoid/config/introspection_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/config/options_spec.rb b/spec/mongoid/config/options_spec.rb index bc7daf9b7..ce7049f9f 100644 --- a/spec/mongoid/config/options_spec.rb +++ b/spec/mongoid/config/options_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/config_spec.rb b/spec/mongoid/config_spec.rb index 3535f1dab..22f3870ce 100644 --- a/spec/mongoid/config_spec.rb +++ b/spec/mongoid/config_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require "support/feature_sandbox" diff --git a/spec/mongoid/contextual/aggregable/memory_spec.rb b/spec/mongoid/contextual/aggregable/memory_spec.rb index fe7b961f8..c485044f2 100644 --- a/spec/mongoid/contextual/aggregable/memory_spec.rb +++ b/spec/mongoid/contextual/aggregable/memory_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/contextual/aggregable/memory_table_spec.rb b/spec/mongoid/contextual/aggregable/memory_table_spec.rb index 4e7782b90..bfbed3fab 100644 --- a/spec/mongoid/contextual/aggregable/memory_table_spec.rb +++ b/spec/mongoid/contextual/aggregable/memory_table_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/contextual/aggregable/mongo_spec.rb b/spec/mongoid/contextual/aggregable/mongo_spec.rb index 697588fb1..75615da87 100644 --- a/spec/mongoid/contextual/aggregable/mongo_spec.rb +++ b/spec/mongoid/contextual/aggregable/mongo_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/contextual/aggregable/none_spec.rb b/spec/mongoid/contextual/aggregable/none_spec.rb index 8077cf38b..bc0580c79 100644 --- a/spec/mongoid/contextual/aggregable/none_spec.rb +++ b/spec/mongoid/contextual/aggregable/none_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/contextual/atomic_spec.rb b/spec/mongoid/contextual/atomic_spec.rb index 924425640..c38a6fac1 100644 --- a/spec/mongoid/contextual/atomic_spec.rb +++ b/spec/mongoid/contextual/atomic_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/contextual/geo_near_spec.rb b/spec/mongoid/contextual/geo_near_spec.rb index edfe59bba..53f90e1a0 100644 --- a/spec/mongoid/contextual/geo_near_spec.rb +++ b/spec/mongoid/contextual/geo_near_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/contextual/map_reduce_spec.rb b/spec/mongoid/contextual/map_reduce_spec.rb index 25e2d67b5..286e38f42 100644 --- a/spec/mongoid/contextual/map_reduce_spec.rb +++ b/spec/mongoid/contextual/map_reduce_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/contextual/memory_spec.rb b/spec/mongoid/contextual/memory_spec.rb index 0f927d5b4..d45038f50 100644 --- a/spec/mongoid/contextual/memory_spec.rb +++ b/spec/mongoid/contextual/memory_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/contextual/mongo/documents_loader_spec.rb b/spec/mongoid/contextual/mongo/documents_loader_spec.rb index bdc355ad0..5edbe36bc 100644 --- a/spec/mongoid/contextual/mongo/documents_loader_spec.rb +++ b/spec/mongoid/contextual/mongo/documents_loader_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require 'concurrent-ruby' diff --git a/spec/mongoid/contextual/mongo_spec.rb b/spec/mongoid/contextual/mongo_spec.rb index cc10e90e7..a44df8967 100644 --- a/spec/mongoid/contextual/mongo_spec.rb +++ b/spec/mongoid/contextual/mongo_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/contextual/none_spec.rb b/spec/mongoid/contextual/none_spec.rb index ed126bc86..fa26045cb 100644 --- a/spec/mongoid/contextual/none_spec.rb +++ b/spec/mongoid/contextual/none_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/copyable_spec.rb b/spec/mongoid/copyable_spec.rb index 412a5c131..bb3b1fec7 100644 --- a/spec/mongoid/copyable_spec.rb +++ b/spec/mongoid/copyable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/copyable_spec_models.rb b/spec/mongoid/copyable_spec_models.rb index b6b60825e..bea2927c1 100644 --- a/spec/mongoid/copyable_spec_models.rb +++ b/spec/mongoid/copyable_spec_models.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module CopyableSpec class A diff --git a/spec/mongoid/criteria/findable_spec.rb b/spec/mongoid/criteria/findable_spec.rb index 7143e264d..9715fe1ae 100644 --- a/spec/mongoid/criteria/findable_spec.rb +++ b/spec/mongoid/criteria/findable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/includable_spec.rb b/spec/mongoid/criteria/includable_spec.rb index 15f42896e..85980effa 100644 --- a/spec/mongoid/criteria/includable_spec.rb +++ b/spec/mongoid/criteria/includable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative "./includable_spec_models.rb" diff --git a/spec/mongoid/criteria/includable_spec_models.rb b/spec/mongoid/criteria/includable_spec_models.rb index 7539729f6..c355b4d8a 100644 --- a/spec/mongoid/criteria/includable_spec_models.rb +++ b/spec/mongoid/criteria/includable_spec_models.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class IncUser include Mongoid::Document diff --git a/spec/mongoid/criteria/inspectable_spec.rb b/spec/mongoid/criteria/inspectable_spec.rb index f21f59ed1..c8ead2e38 100644 --- a/spec/mongoid/criteria/inspectable_spec.rb +++ b/spec/mongoid/criteria/inspectable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/marshalable_spec.rb b/spec/mongoid/criteria/marshalable_spec.rb index 8569dd7fe..c7050d0e6 100644 --- a/spec/mongoid/criteria/marshalable_spec.rb +++ b/spec/mongoid/criteria/marshalable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/modifiable_spec.rb b/spec/mongoid/criteria/modifiable_spec.rb index 3a1c06826..f379084e1 100644 --- a/spec/mongoid/criteria/modifiable_spec.rb +++ b/spec/mongoid/criteria/modifiable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/options_spec.rb b/spec/mongoid/criteria/options_spec.rb index 0229d9475..bd15250c5 100644 --- a/spec/mongoid/criteria/options_spec.rb +++ b/spec/mongoid/criteria/options_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/aggregable_spec.rb b/spec/mongoid/criteria/queryable/aggregable_spec.rb index 8c65b4a54..be788e623 100644 --- a/spec/mongoid/criteria/queryable/aggregable_spec.rb +++ b/spec/mongoid/criteria/queryable/aggregable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/expandable_spec.rb b/spec/mongoid/criteria/queryable/expandable_spec.rb index b647836af..b774cabdf 100644 --- a/spec/mongoid/criteria/queryable/expandable_spec.rb +++ b/spec/mongoid/criteria/queryable/expandable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/array_spec.rb b/spec/mongoid/criteria/queryable/extensions/array_spec.rb index 012045cbe..44cee42bc 100644 --- a/spec/mongoid/criteria/queryable/extensions/array_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/array_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/big_decimal_spec.rb b/spec/mongoid/criteria/queryable/extensions/big_decimal_spec.rb index 97379077c..cbb3141f9 100644 --- a/spec/mongoid/criteria/queryable/extensions/big_decimal_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/big_decimal_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/boolean_spec.rb b/spec/mongoid/criteria/queryable/extensions/boolean_spec.rb index 8e9c24a26..efde84479 100644 --- a/spec/mongoid/criteria/queryable/extensions/boolean_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/boolean_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/date_spec.rb b/spec/mongoid/criteria/queryable/extensions/date_spec.rb index f3bc6fe04..372735916 100644 --- a/spec/mongoid/criteria/queryable/extensions/date_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/date_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/date_time_spec.rb b/spec/mongoid/criteria/queryable/extensions/date_time_spec.rb index bb3ac0bbf..a22a3d5ea 100644 --- a/spec/mongoid/criteria/queryable/extensions/date_time_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/date_time_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/float_spec.rb b/spec/mongoid/criteria/queryable/extensions/float_spec.rb index d05d55df8..7a47ba7be 100644 --- a/spec/mongoid/criteria/queryable/extensions/float_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/float_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/hash_spec.rb b/spec/mongoid/criteria/queryable/extensions/hash_spec.rb index ea4b70d21..2cfe64dbd 100644 --- a/spec/mongoid/criteria/queryable/extensions/hash_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/hash_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/integer_spec.rb b/spec/mongoid/criteria/queryable/extensions/integer_spec.rb index ecf20700a..0c6074299 100644 --- a/spec/mongoid/criteria/queryable/extensions/integer_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/integer_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/nil_class_spec.rb b/spec/mongoid/criteria/queryable/extensions/nil_class_spec.rb index b77f10508..150b91c6d 100644 --- a/spec/mongoid/criteria/queryable/extensions/nil_class_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/nil_class_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/numeric_spec.rb b/spec/mongoid/criteria/queryable/extensions/numeric_spec.rb index 544fea1f7..4fca97918 100644 --- a/spec/mongoid/criteria/queryable/extensions/numeric_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/numeric_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/object_spec.rb b/spec/mongoid/criteria/queryable/extensions/object_spec.rb index 710251bbc..6ea96cb9d 100644 --- a/spec/mongoid/criteria/queryable/extensions/object_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/object_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/range_spec.rb b/spec/mongoid/criteria/queryable/extensions/range_spec.rb index 88328cc78..01b008de6 100644 --- a/spec/mongoid/criteria/queryable/extensions/range_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/range_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/regexp_raw_spec.rb b/spec/mongoid/criteria/queryable/extensions/regexp_raw_spec.rb index 045205876..11be3f670 100644 --- a/spec/mongoid/criteria/queryable/extensions/regexp_raw_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/regexp_raw_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/regexp_spec.rb b/spec/mongoid/criteria/queryable/extensions/regexp_spec.rb index 6ac84b178..644d77beb 100644 --- a/spec/mongoid/criteria/queryable/extensions/regexp_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/regexp_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/set_spec.rb b/spec/mongoid/criteria/queryable/extensions/set_spec.rb index a09e2b1c8..192c2a57e 100644 --- a/spec/mongoid/criteria/queryable/extensions/set_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/set_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/string_spec.rb b/spec/mongoid/criteria/queryable/extensions/string_spec.rb index 57233049f..2eb5a722a 100644 --- a/spec/mongoid/criteria/queryable/extensions/string_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/string_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/symbol_spec.rb b/spec/mongoid/criteria/queryable/extensions/symbol_spec.rb index c95c5d4d4..64de38c38 100644 --- a/spec/mongoid/criteria/queryable/extensions/symbol_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/symbol_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/time_spec.rb b/spec/mongoid/criteria/queryable/extensions/time_spec.rb index 5a67ec8b4..64b881032 100644 --- a/spec/mongoid/criteria/queryable/extensions/time_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/time_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "lite_spec_helper" diff --git a/spec/mongoid/criteria/queryable/extensions/time_with_zone_spec.rb b/spec/mongoid/criteria/queryable/extensions/time_with_zone_spec.rb index 709aed6db..eaf1bc2d1 100644 --- a/spec/mongoid/criteria/queryable/extensions/time_with_zone_spec.rb +++ b/spec/mongoid/criteria/queryable/extensions/time_with_zone_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/key_spec.rb b/spec/mongoid/criteria/queryable/key_spec.rb index 276f9735b..707b67e4c 100644 --- a/spec/mongoid/criteria/queryable/key_spec.rb +++ b/spec/mongoid/criteria/queryable/key_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/mergeable_spec.rb b/spec/mongoid/criteria/queryable/mergeable_spec.rb index 541a0164a..0e60062bc 100644 --- a/spec/mongoid/criteria/queryable/mergeable_spec.rb +++ b/spec/mongoid/criteria/queryable/mergeable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/optional_spec.rb b/spec/mongoid/criteria/queryable/optional_spec.rb index bc9b805cc..921fa94a2 100644 --- a/spec/mongoid/criteria/queryable/optional_spec.rb +++ b/spec/mongoid/criteria/queryable/optional_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/options_spec.rb b/spec/mongoid/criteria/queryable/options_spec.rb index 4e2afc93a..4d177103e 100644 --- a/spec/mongoid/criteria/queryable/options_spec.rb +++ b/spec/mongoid/criteria/queryable/options_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/pipeline_spec.rb b/spec/mongoid/criteria/queryable/pipeline_spec.rb index 8d180be6f..342cb42c0 100644 --- a/spec/mongoid/criteria/queryable/pipeline_spec.rb +++ b/spec/mongoid/criteria/queryable/pipeline_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/queryable_spec.rb b/spec/mongoid/criteria/queryable/queryable_spec.rb index b8e856907..2c51023c9 100644 --- a/spec/mongoid/criteria/queryable/queryable_spec.rb +++ b/spec/mongoid/criteria/queryable/queryable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/selectable_logical_spec.rb b/spec/mongoid/criteria/queryable/selectable_logical_spec.rb index da283b9b7..b312b5076 100644 --- a/spec/mongoid/criteria/queryable/selectable_logical_spec.rb +++ b/spec/mongoid/criteria/queryable/selectable_logical_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/selectable_shared_examples.rb b/spec/mongoid/criteria/queryable/selectable_shared_examples.rb index b367d924d..512bccff3 100644 --- a/spec/mongoid/criteria/queryable/selectable_shared_examples.rb +++ b/spec/mongoid/criteria/queryable/selectable_shared_examples.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all shared_examples_for "returns a cloned query" do diff --git a/spec/mongoid/criteria/queryable/selectable_spec.rb b/spec/mongoid/criteria/queryable/selectable_spec.rb index 2fd7fff14..59159f925 100644 --- a/spec/mongoid/criteria/queryable/selectable_spec.rb +++ b/spec/mongoid/criteria/queryable/selectable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './selectable_shared_examples' diff --git a/spec/mongoid/criteria/queryable/selectable_where_spec.rb b/spec/mongoid/criteria/queryable/selectable_where_spec.rb index d31f451db..d5dbf1a29 100644 --- a/spec/mongoid/criteria/queryable/selectable_where_spec.rb +++ b/spec/mongoid/criteria/queryable/selectable_where_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './selectable_shared_examples' diff --git a/spec/mongoid/criteria/queryable/selector_spec.rb b/spec/mongoid/criteria/queryable/selector_spec.rb index 64e35fbf5..9264d4d96 100644 --- a/spec/mongoid/criteria/queryable/selector_spec.rb +++ b/spec/mongoid/criteria/queryable/selector_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/smash_spec.rb b/spec/mongoid/criteria/queryable/smash_spec.rb index ee0042bc4..6c2bf5bdf 100644 --- a/spec/mongoid/criteria/queryable/smash_spec.rb +++ b/spec/mongoid/criteria/queryable/smash_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/queryable/storable_spec.rb b/spec/mongoid/criteria/queryable/storable_spec.rb index 22837ba55..86297638d 100644 --- a/spec/mongoid/criteria/queryable/storable_spec.rb +++ b/spec/mongoid/criteria/queryable/storable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/scopable_spec.rb b/spec/mongoid/criteria/scopable_spec.rb index 82df22975..90937adde 100644 --- a/spec/mongoid/criteria/scopable_spec.rb +++ b/spec/mongoid/criteria/scopable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria/translator_spec.rb b/spec/mongoid/criteria/translator_spec.rb index 8d37ad14b..0a1da6eb8 100644 --- a/spec/mongoid/criteria/translator_spec.rb +++ b/spec/mongoid/criteria/translator_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria_projection_spec.rb b/spec/mongoid/criteria_projection_spec.rb index 824edfe29..9834d1e08 100644 --- a/spec/mongoid/criteria_projection_spec.rb +++ b/spec/mongoid/criteria_projection_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/criteria_spec.rb b/spec/mongoid/criteria_spec.rb index 5513e8ec8..a18da5a35 100644 --- a/spec/mongoid/criteria_spec.rb +++ b/spec/mongoid/criteria_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/document_fields_spec.rb b/spec/mongoid/document_fields_spec.rb index 45cb03a4a..57ca10fdb 100644 --- a/spec/mongoid/document_fields_spec.rb +++ b/spec/mongoid/document_fields_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/document_persistence_context_spec.rb b/spec/mongoid/document_persistence_context_spec.rb index f1187b677..fae06be81 100644 --- a/spec/mongoid/document_persistence_context_spec.rb +++ b/spec/mongoid/document_persistence_context_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/document_query_spec.rb b/spec/mongoid/document_query_spec.rb index 089279276..404006e87 100644 --- a/spec/mongoid/document_query_spec.rb +++ b/spec/mongoid/document_query_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/document_spec.rb b/spec/mongoid/document_spec.rb index b916a9adc..547b5f26b 100644 --- a/spec/mongoid/document_spec.rb +++ b/spec/mongoid/document_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/equality_spec.rb b/spec/mongoid/equality_spec.rb index ad4e15f21..2778f1791 100644 --- a/spec/mongoid/equality_spec.rb +++ b/spec/mongoid/equality_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/ambiguous_relationship_spec.rb b/spec/mongoid/errors/ambiguous_relationship_spec.rb index 5794301fa..0988c3342 100644 --- a/spec/mongoid/errors/ambiguous_relationship_spec.rb +++ b/spec/mongoid/errors/ambiguous_relationship_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/mongoid/errors/attribute_not_loaded_spec.rb b/spec/mongoid/errors/attribute_not_loaded_spec.rb index dfcc342de..be43e33f3 100644 --- a/spec/mongoid/errors/attribute_not_loaded_spec.rb +++ b/spec/mongoid/errors/attribute_not_loaded_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/callback_spec.rb b/spec/mongoid/errors/callback_spec.rb index 51d80c668..58e68c6c5 100644 --- a/spec/mongoid/errors/callback_spec.rb +++ b/spec/mongoid/errors/callback_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/delete_restriction_spec.rb b/spec/mongoid/errors/delete_restriction_spec.rb index c536eb096..a78608a44 100644 --- a/spec/mongoid/errors/delete_restriction_spec.rb +++ b/spec/mongoid/errors/delete_restriction_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/document_not_destroyed_spec.rb b/spec/mongoid/errors/document_not_destroyed_spec.rb index ff071eeaf..00469ad69 100644 --- a/spec/mongoid/errors/document_not_destroyed_spec.rb +++ b/spec/mongoid/errors/document_not_destroyed_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/document_not_found_spec.rb b/spec/mongoid/errors/document_not_found_spec.rb index 773d975c5..2bf9b302b 100644 --- a/spec/mongoid/errors/document_not_found_spec.rb +++ b/spec/mongoid/errors/document_not_found_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/invalid_collection_spec.rb b/spec/mongoid/errors/invalid_collection_spec.rb index 68e4986ba..4cb125f19 100644 --- a/spec/mongoid/errors/invalid_collection_spec.rb +++ b/spec/mongoid/errors/invalid_collection_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/invalid_config_file_spec.rb b/spec/mongoid/errors/invalid_config_file_spec.rb index dba40b137..4e6061369 100644 --- a/spec/mongoid/errors/invalid_config_file_spec.rb +++ b/spec/mongoid/errors/invalid_config_file_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/invalid_config_option_spec.rb b/spec/mongoid/errors/invalid_config_option_spec.rb index 9b00f66a6..2062a642d 100644 --- a/spec/mongoid/errors/invalid_config_option_spec.rb +++ b/spec/mongoid/errors/invalid_config_option_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/invalid_field_option_spec.rb b/spec/mongoid/errors/invalid_field_option_spec.rb index 24f01fc43..e9fbeeb59 100644 --- a/spec/mongoid/errors/invalid_field_option_spec.rb +++ b/spec/mongoid/errors/invalid_field_option_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/invalid_field_spec.rb b/spec/mongoid/errors/invalid_field_spec.rb index 79d299607..d56a333d0 100644 --- a/spec/mongoid/errors/invalid_field_spec.rb +++ b/spec/mongoid/errors/invalid_field_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/invalid_field_type_spec.rb b/spec/mongoid/errors/invalid_field_type_spec.rb index f903f5d50..cefcc7b83 100644 --- a/spec/mongoid/errors/invalid_field_type_spec.rb +++ b/spec/mongoid/errors/invalid_field_type_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/invalid_find_spec.rb b/spec/mongoid/errors/invalid_find_spec.rb index cad372e4d..16260de64 100644 --- a/spec/mongoid/errors/invalid_find_spec.rb +++ b/spec/mongoid/errors/invalid_find_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/invalid_includes_spec.rb b/spec/mongoid/errors/invalid_includes_spec.rb index 620ca6d70..19dfc4710 100644 --- a/spec/mongoid/errors/invalid_includes_spec.rb +++ b/spec/mongoid/errors/invalid_includes_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/invalid_index_spec.rb b/spec/mongoid/errors/invalid_index_spec.rb index 4ba7c63a2..93321ec48 100644 --- a/spec/mongoid/errors/invalid_index_spec.rb +++ b/spec/mongoid/errors/invalid_index_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/invalid_options_spec.rb b/spec/mongoid/errors/invalid_options_spec.rb index 9aaa8d6af..aadc2c1bb 100644 --- a/spec/mongoid/errors/invalid_options_spec.rb +++ b/spec/mongoid/errors/invalid_options_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/invalid_path_spec.rb b/spec/mongoid/errors/invalid_path_spec.rb index 8c63edb00..c0076ed00 100644 --- a/spec/mongoid/errors/invalid_path_spec.rb +++ b/spec/mongoid/errors/invalid_path_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/mongoid/errors/invalid_relation_spec.rb b/spec/mongoid/errors/invalid_relation_spec.rb index f6619fa1a..b933d739b 100644 --- a/spec/mongoid/errors/invalid_relation_spec.rb +++ b/spec/mongoid/errors/invalid_relation_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/invalid_scope_spec.rb b/spec/mongoid/errors/invalid_scope_spec.rb index 8bfb7d550..b93aa67cb 100644 --- a/spec/mongoid/errors/invalid_scope_spec.rb +++ b/spec/mongoid/errors/invalid_scope_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/invalid_set_polymorphic_relation_spec.rb b/spec/mongoid/errors/invalid_set_polymorphic_relation_spec.rb index 183037211..00b5154f7 100644 --- a/spec/mongoid/errors/invalid_set_polymorphic_relation_spec.rb +++ b/spec/mongoid/errors/invalid_set_polymorphic_relation_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/invalid_storage_options_spec.rb b/spec/mongoid/errors/invalid_storage_options_spec.rb index e61dc876c..78cb6abdb 100644 --- a/spec/mongoid/errors/invalid_storage_options_spec.rb +++ b/spec/mongoid/errors/invalid_storage_options_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/invalid_time_spec.rb b/spec/mongoid/errors/invalid_time_spec.rb index 875e01191..6f526405f 100644 --- a/spec/mongoid/errors/invalid_time_spec.rb +++ b/spec/mongoid/errors/invalid_time_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/inverse_not_found_spec.rb b/spec/mongoid/errors/inverse_not_found_spec.rb index c84bc2567..966a0860c 100644 --- a/spec/mongoid/errors/inverse_not_found_spec.rb +++ b/spec/mongoid/errors/inverse_not_found_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/mixed_client_configuration_spec.rb b/spec/mongoid/errors/mixed_client_configuration_spec.rb index 5651df601..bf67ec666 100644 --- a/spec/mongoid/errors/mixed_client_configuration_spec.rb +++ b/spec/mongoid/errors/mixed_client_configuration_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/mixed_relations_spec.rb b/spec/mongoid/errors/mixed_relations_spec.rb index c57586270..9fd5c3751 100644 --- a/spec/mongoid/errors/mixed_relations_spec.rb +++ b/spec/mongoid/errors/mixed_relations_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/mongoid_error_spec.rb b/spec/mongoid/errors/mongoid_error_spec.rb index 9078e142d..cea968413 100644 --- a/spec/mongoid/errors/mongoid_error_spec.rb +++ b/spec/mongoid/errors/mongoid_error_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/mongoid/errors/nested_attributes_metadata_not_found_spec.rb b/spec/mongoid/errors/nested_attributes_metadata_not_found_spec.rb index 929e2ca3f..b8cb73c2b 100644 --- a/spec/mongoid/errors/nested_attributes_metadata_not_found_spec.rb +++ b/spec/mongoid/errors/nested_attributes_metadata_not_found_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/no_client_config_spec.rb b/spec/mongoid/errors/no_client_config_spec.rb index fec06fa2d..5a0a01eeb 100644 --- a/spec/mongoid/errors/no_client_config_spec.rb +++ b/spec/mongoid/errors/no_client_config_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/no_client_database_spec.rb b/spec/mongoid/errors/no_client_database_spec.rb index 1ec3b9c12..a170e67bf 100644 --- a/spec/mongoid/errors/no_client_database_spec.rb +++ b/spec/mongoid/errors/no_client_database_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/no_client_hosts_spec.rb b/spec/mongoid/errors/no_client_hosts_spec.rb index 21d00f380..a47e15bed 100644 --- a/spec/mongoid/errors/no_client_hosts_spec.rb +++ b/spec/mongoid/errors/no_client_hosts_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/no_clients_config_spec.rb b/spec/mongoid/errors/no_clients_config_spec.rb index 3aec3a59e..4c50a0db9 100644 --- a/spec/mongoid/errors/no_clients_config_spec.rb +++ b/spec/mongoid/errors/no_clients_config_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/no_environment_spec.rb b/spec/mongoid/errors/no_environment_spec.rb index 27bb73448..29b4a70f6 100644 --- a/spec/mongoid/errors/no_environment_spec.rb +++ b/spec/mongoid/errors/no_environment_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/no_map_reduce_output_spec.rb b/spec/mongoid/errors/no_map_reduce_output_spec.rb index f2bdf0411..e460f2df7 100644 --- a/spec/mongoid/errors/no_map_reduce_output_spec.rb +++ b/spec/mongoid/errors/no_map_reduce_output_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/no_metadata_spec.rb b/spec/mongoid/errors/no_metadata_spec.rb index 2a03d98c7..8552e386d 100644 --- a/spec/mongoid/errors/no_metadata_spec.rb +++ b/spec/mongoid/errors/no_metadata_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/mongoid/errors/no_parent_spec.rb b/spec/mongoid/errors/no_parent_spec.rb index 591312b68..7199cb9eb 100644 --- a/spec/mongoid/errors/no_parent_spec.rb +++ b/spec/mongoid/errors/no_parent_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/readonly_attribute_spec.rb b/spec/mongoid/errors/readonly_attribute_spec.rb index 029abf358..c757cc48b 100644 --- a/spec/mongoid/errors/readonly_attribute_spec.rb +++ b/spec/mongoid/errors/readonly_attribute_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/readonly_document_spec.rb b/spec/mongoid/errors/readonly_document_spec.rb index cd1424ba5..a5995a4c4 100644 --- a/spec/mongoid/errors/readonly_document_spec.rb +++ b/spec/mongoid/errors/readonly_document_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/scope_overwrite_spec.rb b/spec/mongoid/errors/scope_overwrite_spec.rb index 8cf2ba8d4..5d6c21cf8 100644 --- a/spec/mongoid/errors/scope_overwrite_spec.rb +++ b/spec/mongoid/errors/scope_overwrite_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/too_many_nested_attribute_records_spec.rb b/spec/mongoid/errors/too_many_nested_attribute_records_spec.rb index d7f19899a..3b3dd7038 100644 --- a/spec/mongoid/errors/too_many_nested_attribute_records_spec.rb +++ b/spec/mongoid/errors/too_many_nested_attribute_records_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/unknown_attribute_spec.rb b/spec/mongoid/errors/unknown_attribute_spec.rb index a940ad70e..61bacaecd 100644 --- a/spec/mongoid/errors/unknown_attribute_spec.rb +++ b/spec/mongoid/errors/unknown_attribute_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/unsaved_document_spec.rb b/spec/mongoid/errors/unsaved_document_spec.rb index 7edf8e928..6196a90b2 100644 --- a/spec/mongoid/errors/unsaved_document_spec.rb +++ b/spec/mongoid/errors/unsaved_document_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/unsupported_javascript_spec.rb b/spec/mongoid/errors/unsupported_javascript_spec.rb index f0c969927..16d310c91 100644 --- a/spec/mongoid/errors/unsupported_javascript_spec.rb +++ b/spec/mongoid/errors/unsupported_javascript_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/errors/validations_spec.rb b/spec/mongoid/errors/validations_spec.rb index e861a6ab3..523d7817f 100644 --- a/spec/mongoid/errors/validations_spec.rb +++ b/spec/mongoid/errors/validations_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/array_spec.rb b/spec/mongoid/extensions/array_spec.rb index 330f7dfe4..18ab1ee2f 100644 --- a/spec/mongoid/extensions/array_spec.rb +++ b/spec/mongoid/extensions/array_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/big_decimal_spec.rb b/spec/mongoid/extensions/big_decimal_spec.rb index 642612d72..08f836333 100644 --- a/spec/mongoid/extensions/big_decimal_spec.rb +++ b/spec/mongoid/extensions/big_decimal_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/binary_spec.rb b/spec/mongoid/extensions/binary_spec.rb index b85f5e5d1..1017af2d6 100644 --- a/spec/mongoid/extensions/binary_spec.rb +++ b/spec/mongoid/extensions/binary_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/boolean_spec.rb b/spec/mongoid/extensions/boolean_spec.rb index e9776ebc3..5ddf9035b 100644 --- a/spec/mongoid/extensions/boolean_spec.rb +++ b/spec/mongoid/extensions/boolean_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/date_class_mongoize_spec.rb b/spec/mongoid/extensions/date_class_mongoize_spec.rb index 82905e34d..e97c018fe 100644 --- a/spec/mongoid/extensions/date_class_mongoize_spec.rb +++ b/spec/mongoid/extensions/date_class_mongoize_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/date_spec.rb b/spec/mongoid/extensions/date_spec.rb index 58648f141..9b1daae15 100644 --- a/spec/mongoid/extensions/date_spec.rb +++ b/spec/mongoid/extensions/date_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/date_time_spec.rb b/spec/mongoid/extensions/date_time_spec.rb index d22dfa8f5..2baed6a47 100644 --- a/spec/mongoid/extensions/date_time_spec.rb +++ b/spec/mongoid/extensions/date_time_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/decimal128_spec.rb b/spec/mongoid/extensions/decimal128_spec.rb index fe14a7a2f..92ab0a26f 100644 --- a/spec/mongoid/extensions/decimal128_spec.rb +++ b/spec/mongoid/extensions/decimal128_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/false_class_spec.rb b/spec/mongoid/extensions/false_class_spec.rb index 6217ce683..b2dd763e3 100644 --- a/spec/mongoid/extensions/false_class_spec.rb +++ b/spec/mongoid/extensions/false_class_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/float_spec.rb b/spec/mongoid/extensions/float_spec.rb index 8e358d54b..ed3dfa1a8 100644 --- a/spec/mongoid/extensions/float_spec.rb +++ b/spec/mongoid/extensions/float_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/hash_spec.rb b/spec/mongoid/extensions/hash_spec.rb index a4bd601ae..461875317 100644 --- a/spec/mongoid/extensions/hash_spec.rb +++ b/spec/mongoid/extensions/hash_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/integer_spec.rb b/spec/mongoid/extensions/integer_spec.rb index 24ddd3c27..b8c73a917 100644 --- a/spec/mongoid/extensions/integer_spec.rb +++ b/spec/mongoid/extensions/integer_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/module_spec.rb b/spec/mongoid/extensions/module_spec.rb index 466572779..b6c928742 100644 --- a/spec/mongoid/extensions/module_spec.rb +++ b/spec/mongoid/extensions/module_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/nil_class_spec.rb b/spec/mongoid/extensions/nil_class_spec.rb index 4d12c03b7..cd5a08a00 100644 --- a/spec/mongoid/extensions/nil_class_spec.rb +++ b/spec/mongoid/extensions/nil_class_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/object_id_spec.rb b/spec/mongoid/extensions/object_id_spec.rb index 25881f06a..e6362d63f 100644 --- a/spec/mongoid/extensions/object_id_spec.rb +++ b/spec/mongoid/extensions/object_id_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/object_spec.rb b/spec/mongoid/extensions/object_spec.rb index f30f04e83..80d313a3a 100644 --- a/spec/mongoid/extensions/object_spec.rb +++ b/spec/mongoid/extensions/object_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/range_spec.rb b/spec/mongoid/extensions/range_spec.rb index 0ed5cf9d0..572f076fb 100644 --- a/spec/mongoid/extensions/range_spec.rb +++ b/spec/mongoid/extensions/range_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/raw_value_spec.rb b/spec/mongoid/extensions/raw_value_spec.rb index ffc6b10cf..821729a9c 100644 --- a/spec/mongoid/extensions/raw_value_spec.rb +++ b/spec/mongoid/extensions/raw_value_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/regexp_spec.rb b/spec/mongoid/extensions/regexp_spec.rb index 691d1a8be..9ad86bc23 100644 --- a/spec/mongoid/extensions/regexp_spec.rb +++ b/spec/mongoid/extensions/regexp_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/set_spec.rb b/spec/mongoid/extensions/set_spec.rb index c16aaadaf..cde2d7da0 100644 --- a/spec/mongoid/extensions/set_spec.rb +++ b/spec/mongoid/extensions/set_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/string_spec.rb b/spec/mongoid/extensions/string_spec.rb index 1f266f6a9..adc9cd49b 100644 --- a/spec/mongoid/extensions/string_spec.rb +++ b/spec/mongoid/extensions/string_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/stringified_symbol_spec.rb b/spec/mongoid/extensions/stringified_symbol_spec.rb index eccb275ee..4bdc156c0 100644 --- a/spec/mongoid/extensions/stringified_symbol_spec.rb +++ b/spec/mongoid/extensions/stringified_symbol_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/symbol_spec.rb b/spec/mongoid/extensions/symbol_spec.rb index 64ffcd462..2bd4d7b6a 100644 --- a/spec/mongoid/extensions/symbol_spec.rb +++ b/spec/mongoid/extensions/symbol_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/time_spec.rb b/spec/mongoid/extensions/time_spec.rb index fe8f87f99..a68bf1547 100644 --- a/spec/mongoid/extensions/time_spec.rb +++ b/spec/mongoid/extensions/time_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/time_with_zone_spec.rb b/spec/mongoid/extensions/time_with_zone_spec.rb index 0848b455b..f35897d94 100644 --- a/spec/mongoid/extensions/time_with_zone_spec.rb +++ b/spec/mongoid/extensions/time_with_zone_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/extensions/true_class_spec.rb b/spec/mongoid/extensions/true_class_spec.rb index e66663615..221aaf553 100644 --- a/spec/mongoid/extensions/true_class_spec.rb +++ b/spec/mongoid/extensions/true_class_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/factory_spec.rb b/spec/mongoid/factory_spec.rb index 7084c7ea1..4bc5c757b 100644 --- a/spec/mongoid/factory_spec.rb +++ b/spec/mongoid/factory_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/fields/foreign_key_spec.rb b/spec/mongoid/fields/foreign_key_spec.rb index af417f624..3aafef65a 100644 --- a/spec/mongoid/fields/foreign_key_spec.rb +++ b/spec/mongoid/fields/foreign_key_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/fields/localized_spec.rb b/spec/mongoid/fields/localized_spec.rb index 2191f335b..3e4951b8a 100644 --- a/spec/mongoid/fields/localized_spec.rb +++ b/spec/mongoid/fields/localized_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/fields/standard_spec.rb b/spec/mongoid/fields/standard_spec.rb index 0ab98b62c..44252c55d 100644 --- a/spec/mongoid/fields/standard_spec.rb +++ b/spec/mongoid/fields/standard_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/fields_spec.rb b/spec/mongoid/fields_spec.rb index 4c5ef7412..de3e981f0 100644 --- a/spec/mongoid/fields_spec.rb +++ b/spec/mongoid/fields_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/findable_spec.rb b/spec/mongoid/findable_spec.rb index 5103a29bc..6189f3f3a 100644 --- a/spec/mongoid/findable_spec.rb +++ b/spec/mongoid/findable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/indexable/specification_spec.rb b/spec/mongoid/indexable/specification_spec.rb index 147b6de8d..0c3c17ae5 100644 --- a/spec/mongoid/indexable/specification_spec.rb +++ b/spec/mongoid/indexable/specification_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/indexable_spec.rb b/spec/mongoid/indexable_spec.rb index ecacae3c1..4eb9e7f6b 100644 --- a/spec/mongoid/indexable_spec.rb +++ b/spec/mongoid/indexable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/inspectable_spec.rb b/spec/mongoid/inspectable_spec.rb index f3ee1b6b5..203fd5ea1 100644 --- a/spec/mongoid/inspectable_spec.rb +++ b/spec/mongoid/inspectable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/interceptable_spec.rb b/spec/mongoid/interceptable_spec.rb index c0931e65b..ef2e23e0b 100644 --- a/spec/mongoid/interceptable_spec.rb +++ b/spec/mongoid/interceptable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './interceptable_spec_models' diff --git a/spec/mongoid/interceptable_spec_models.rb b/spec/mongoid/interceptable_spec_models.rb index 71e768089..73b8498ea 100644 --- a/spec/mongoid/interceptable_spec_models.rb +++ b/spec/mongoid/interceptable_spec_models.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module InterceptableSpec class CallbackRegistry def initialize diff --git a/spec/mongoid/loading_spec.rb b/spec/mongoid/loading_spec.rb index c97eb2440..61ea571ec 100644 --- a/spec/mongoid/loading_spec.rb +++ b/spec/mongoid/loading_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "ostruct" require "spec_helper" diff --git a/spec/mongoid/loggable_spec.rb b/spec/mongoid/loggable_spec.rb index 39120e535..12b4bfb66 100644 --- a/spec/mongoid/loggable_spec.rb +++ b/spec/mongoid/loggable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/matcher/extract_attribute_spec.rb b/spec/mongoid/matcher/extract_attribute_spec.rb index f0bd6279e..fad2806d9 100644 --- a/spec/mongoid/matcher/extract_attribute_spec.rb +++ b/spec/mongoid/matcher/extract_attribute_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'spec_helper' diff --git a/spec/mongoid/mongoizable_spec.rb b/spec/mongoid/mongoizable_spec.rb index daf598005..cc1344ace 100644 --- a/spec/mongoid/mongoizable_spec.rb +++ b/spec/mongoid/mongoizable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistable/creatable_spec.rb b/spec/mongoid/persistable/creatable_spec.rb index a9904c73e..a13b82fe8 100644 --- a/spec/mongoid/persistable/creatable_spec.rb +++ b/spec/mongoid/persistable/creatable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistable/deletable_spec.rb b/spec/mongoid/persistable/deletable_spec.rb index c04d11faf..bef2b137e 100644 --- a/spec/mongoid/persistable/deletable_spec.rb +++ b/spec/mongoid/persistable/deletable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistable/destroyable_spec.rb b/spec/mongoid/persistable/destroyable_spec.rb index 192148b47..a365f786f 100644 --- a/spec/mongoid/persistable/destroyable_spec.rb +++ b/spec/mongoid/persistable/destroyable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistable/incrementable_spec.rb b/spec/mongoid/persistable/incrementable_spec.rb index b5718e09b..e7a3dac7d 100644 --- a/spec/mongoid/persistable/incrementable_spec.rb +++ b/spec/mongoid/persistable/incrementable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistable/logical_spec.rb b/spec/mongoid/persistable/logical_spec.rb index 5ed47b84d..f7e0f25a4 100644 --- a/spec/mongoid/persistable/logical_spec.rb +++ b/spec/mongoid/persistable/logical_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistable/maxable_spec.rb b/spec/mongoid/persistable/maxable_spec.rb index 3edd41c06..aee1b47be 100644 --- a/spec/mongoid/persistable/maxable_spec.rb +++ b/spec/mongoid/persistable/maxable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistable/minable_spec.rb b/spec/mongoid/persistable/minable_spec.rb index d83132f38..fe0dafc17 100644 --- a/spec/mongoid/persistable/minable_spec.rb +++ b/spec/mongoid/persistable/minable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistable/multipliable_spec.rb b/spec/mongoid/persistable/multipliable_spec.rb index cc2fbd33c..b2a68c63c 100644 --- a/spec/mongoid/persistable/multipliable_spec.rb +++ b/spec/mongoid/persistable/multipliable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistable/poppable_spec.rb b/spec/mongoid/persistable/poppable_spec.rb index c1d11ae70..5c2c731d9 100644 --- a/spec/mongoid/persistable/poppable_spec.rb +++ b/spec/mongoid/persistable/poppable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistable/pullable_spec.rb b/spec/mongoid/persistable/pullable_spec.rb index 726766c6d..5e1da590f 100644 --- a/spec/mongoid/persistable/pullable_spec.rb +++ b/spec/mongoid/persistable/pullable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistable/pushable_spec.rb b/spec/mongoid/persistable/pushable_spec.rb index 502c56a0c..d016eda2b 100644 --- a/spec/mongoid/persistable/pushable_spec.rb +++ b/spec/mongoid/persistable/pushable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistable/renamable_spec.rb b/spec/mongoid/persistable/renamable_spec.rb index 367ed28bc..d2a0accc6 100644 --- a/spec/mongoid/persistable/renamable_spec.rb +++ b/spec/mongoid/persistable/renamable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistable/savable_spec.rb b/spec/mongoid/persistable/savable_spec.rb index 8d69162f5..d7931f73f 100644 --- a/spec/mongoid/persistable/savable_spec.rb +++ b/spec/mongoid/persistable/savable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require "support/immutable_ids" diff --git a/spec/mongoid/persistable/settable_spec.rb b/spec/mongoid/persistable/settable_spec.rb index 5ac839507..e58801186 100644 --- a/spec/mongoid/persistable/settable_spec.rb +++ b/spec/mongoid/persistable/settable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistable/unsettable_spec.rb b/spec/mongoid/persistable/unsettable_spec.rb index faecfb02d..285596834 100644 --- a/spec/mongoid/persistable/unsettable_spec.rb +++ b/spec/mongoid/persistable/unsettable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistable/updatable_spec.rb b/spec/mongoid/persistable/updatable_spec.rb index ba0d148fc..a007392e1 100644 --- a/spec/mongoid/persistable/updatable_spec.rb +++ b/spec/mongoid/persistable/updatable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require "support/immutable_ids" diff --git a/spec/mongoid/persistable/upsertable_spec.rb b/spec/mongoid/persistable/upsertable_spec.rb index d9fd619e7..be9adfac9 100644 --- a/spec/mongoid/persistable/upsertable_spec.rb +++ b/spec/mongoid/persistable/upsertable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistable_spec.rb b/spec/mongoid/persistable_spec.rb index e368c9528..f80f887e8 100644 --- a/spec/mongoid/persistable_spec.rb +++ b/spec/mongoid/persistable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/persistence_context_spec.rb b/spec/mongoid/persistence_context_spec.rb index 991e19528..9c2bb0fbf 100644 --- a/spec/mongoid/persistence_context_spec.rb +++ b/spec/mongoid/persistence_context_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/positional_spec.rb b/spec/mongoid/positional_spec.rb index 4eef1f6ff..12619e4cc 100644 --- a/spec/mongoid/positional_spec.rb +++ b/spec/mongoid/positional_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/query_cache_middleware_spec.rb b/spec/mongoid/query_cache_middleware_spec.rb index a81b4e7f5..3179d40b1 100644 --- a/spec/mongoid/query_cache_middleware_spec.rb +++ b/spec/mongoid/query_cache_middleware_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/query_cache_spec.rb b/spec/mongoid/query_cache_spec.rb index d381f0ab9..4cc47a309 100644 --- a/spec/mongoid/query_cache_spec.rb +++ b/spec/mongoid/query_cache_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require 'mongoid/association/referenced/has_many_models' diff --git a/spec/mongoid/railties/console_sandbox_spec.rb b/spec/mongoid/railties/console_sandbox_spec.rb index ca9124103..12dcbd326 100644 --- a/spec/mongoid/railties/console_sandbox_spec.rb +++ b/spec/mongoid/railties/console_sandbox_spec.rb @@ -1,3 +1,4 @@ +# rubocop:todo all require 'spec_helper' require 'mongoid/railties/console_sandbox' diff --git a/spec/mongoid/relations/proxy_spec.rb b/spec/mongoid/relations/proxy_spec.rb index 1a8f86b0a..57a3a05a7 100644 --- a/spec/mongoid/relations/proxy_spec.rb +++ b/spec/mongoid/relations/proxy_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all # require "spec_helper" # diff --git a/spec/mongoid/reloadable_spec.rb b/spec/mongoid/reloadable_spec.rb index 76ec842b5..054831e5c 100644 --- a/spec/mongoid/reloadable_spec.rb +++ b/spec/mongoid/reloadable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/scopable_spec.rb b/spec/mongoid/scopable_spec.rb index aabf217d8..7535d6de1 100644 --- a/spec/mongoid/scopable_spec.rb +++ b/spec/mongoid/scopable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/selectable_spec.rb b/spec/mongoid/selectable_spec.rb index 512a6d3bf..e0b42b2b1 100644 --- a/spec/mongoid/selectable_spec.rb +++ b/spec/mongoid/selectable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/serializable_spec.rb b/spec/mongoid/serializable_spec.rb index 7629d0de6..faf1ee401 100644 --- a/spec/mongoid/serializable_spec.rb +++ b/spec/mongoid/serializable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/shardable_models.rb b/spec/mongoid/shardable_models.rb index 890a1df57..a8f3f6c4f 100644 --- a/spec/mongoid/shardable_models.rb +++ b/spec/mongoid/shardable_models.rb @@ -1,3 +1,4 @@ +# rubocop:todo all class SmMovie include Mongoid::Document diff --git a/spec/mongoid/shardable_spec.rb b/spec/mongoid/shardable_spec.rb index 20bbcc19a..d664ebd52 100644 --- a/spec/mongoid/shardable_spec.rb +++ b/spec/mongoid/shardable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './shardable_models' diff --git a/spec/mongoid/stateful_spec.rb b/spec/mongoid/stateful_spec.rb index bcbb154b5..85a44aa9a 100644 --- a/spec/mongoid/stateful_spec.rb +++ b/spec/mongoid/stateful_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/tasks/database_rake_spec.rb b/spec/mongoid/tasks/database_rake_spec.rb index 137e8d706..bf2abb6f8 100644 --- a/spec/mongoid/tasks/database_rake_spec.rb +++ b/spec/mongoid/tasks/database_rake_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "rake" require "spec_helper" diff --git a/spec/mongoid/tasks/database_spec.rb b/spec/mongoid/tasks/database_spec.rb index 79595643f..d5ef01960 100644 --- a/spec/mongoid/tasks/database_spec.rb +++ b/spec/mongoid/tasks/database_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/tasks/encryption_spec.rb b/spec/mongoid/tasks/encryption_spec.rb index 34259a559..fbbecb217 100644 --- a/spec/mongoid/tasks/encryption_spec.rb +++ b/spec/mongoid/tasks/encryption_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/threaded_spec.rb b/spec/mongoid/threaded_spec.rb index 5567ebf5e..970affaf0 100644 --- a/spec/mongoid/threaded_spec.rb +++ b/spec/mongoid/threaded_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/timestamps/created/short_spec.rb b/spec/mongoid/timestamps/created/short_spec.rb index 81ae269fd..8a0c11147 100644 --- a/spec/mongoid/timestamps/created/short_spec.rb +++ b/spec/mongoid/timestamps/created/short_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/timestamps/created_spec.rb b/spec/mongoid/timestamps/created_spec.rb index f2e56d1f6..15fbf2785 100644 --- a/spec/mongoid/timestamps/created_spec.rb +++ b/spec/mongoid/timestamps/created_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/timestamps/timeless_spec.rb b/spec/mongoid/timestamps/timeless_spec.rb index f50709991..9ea2c8a7e 100644 --- a/spec/mongoid/timestamps/timeless_spec.rb +++ b/spec/mongoid/timestamps/timeless_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/timestamps/updated/short_spec.rb b/spec/mongoid/timestamps/updated/short_spec.rb index 6f17a427d..2f6eab80a 100644 --- a/spec/mongoid/timestamps/updated/short_spec.rb +++ b/spec/mongoid/timestamps/updated/short_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/timestamps/updated_spec.rb b/spec/mongoid/timestamps/updated_spec.rb index 3a3cf6e50..dc7d4d8c1 100644 --- a/spec/mongoid/timestamps/updated_spec.rb +++ b/spec/mongoid/timestamps/updated_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/timestamps_spec.rb b/spec/mongoid/timestamps_spec.rb index e9dfa702d..8a213130b 100644 --- a/spec/mongoid/timestamps_spec.rb +++ b/spec/mongoid/timestamps_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './timestamps_spec_models' diff --git a/spec/mongoid/timestamps_spec_models.rb b/spec/mongoid/timestamps_spec_models.rb index b41fb71a3..82eadb78d 100644 --- a/spec/mongoid/timestamps_spec_models.rb +++ b/spec/mongoid/timestamps_spec_models.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module TimestampsSpec module Touch diff --git a/spec/mongoid/touchable_spec.rb b/spec/mongoid/touchable_spec.rb index f560d79bd..578f22ed6 100644 --- a/spec/mongoid/touchable_spec.rb +++ b/spec/mongoid/touchable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative './touchable_spec_models' diff --git a/spec/mongoid/touchable_spec_models.rb b/spec/mongoid/touchable_spec_models.rb index f74a61212..4dae9c446 100644 --- a/spec/mongoid/touchable_spec_models.rb +++ b/spec/mongoid/touchable_spec_models.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module TouchableSpec module Embedded diff --git a/spec/mongoid/traversable_spec.rb b/spec/mongoid/traversable_spec.rb index a1124645b..871ac79ff 100644 --- a/spec/mongoid/traversable_spec.rb +++ b/spec/mongoid/traversable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/validatable/associated_spec.rb b/spec/mongoid/validatable/associated_spec.rb index 1a73b687c..4a86e9fbb 100644 --- a/spec/mongoid/validatable/associated_spec.rb +++ b/spec/mongoid/validatable/associated_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/validatable/format_spec.rb b/spec/mongoid/validatable/format_spec.rb index 694fb4250..b36c8874e 100644 --- a/spec/mongoid/validatable/format_spec.rb +++ b/spec/mongoid/validatable/format_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/validatable/length_spec.rb b/spec/mongoid/validatable/length_spec.rb index cae8e0cd3..7d73798b7 100644 --- a/spec/mongoid/validatable/length_spec.rb +++ b/spec/mongoid/validatable/length_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/validatable/numericality_spec.rb b/spec/mongoid/validatable/numericality_spec.rb index 3fb3c6cf3..ea89608d0 100644 --- a/spec/mongoid/validatable/numericality_spec.rb +++ b/spec/mongoid/validatable/numericality_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/validatable/presence_spec.rb b/spec/mongoid/validatable/presence_spec.rb index 97c57587f..bd5f718e1 100644 --- a/spec/mongoid/validatable/presence_spec.rb +++ b/spec/mongoid/validatable/presence_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require_relative '../association/referenced/has_one_models' diff --git a/spec/mongoid/validatable/uniqueness_spec.rb b/spec/mongoid/validatable/uniqueness_spec.rb index 0265b8ced..d35f34409 100644 --- a/spec/mongoid/validatable/uniqueness_spec.rb +++ b/spec/mongoid/validatable/uniqueness_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/validatable_spec.rb b/spec/mongoid/validatable_spec.rb index d6d829ced..31eb5838d 100644 --- a/spec/mongoid/validatable_spec.rb +++ b/spec/mongoid/validatable_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid/warnings_spec.rb b/spec/mongoid/warnings_spec.rb index 512fcaf24..8a3bed638 100644 --- a/spec/mongoid/warnings_spec.rb +++ b/spec/mongoid/warnings_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/mongoid_spec.rb b/spec/mongoid_spec.rb index 5f2563559..9cd065f4a 100644 --- a/spec/mongoid_spec.rb +++ b/spec/mongoid_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" diff --git a/spec/rails/controller_extension/controller_runtime_spec.rb b/spec/rails/controller_extension/controller_runtime_spec.rb index 222a67082..74980dc52 100644 --- a/spec/rails/controller_extension/controller_runtime_spec.rb +++ b/spec/rails/controller_extension/controller_runtime_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require "mongoid/railties/controller_runtime" diff --git a/spec/rails/mongoid_spec.rb b/spec/rails/mongoid_spec.rb index 2b07f4b65..60bc4833e 100644 --- a/spec/rails/mongoid_spec.rb +++ b/spec/rails/mongoid_spec.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require "spec_helper" require "support/feature_sandbox" diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 65aebc271..ba0f61ac4 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'lite_spec_helper' diff --git a/spec/support/authorization.rb b/spec/support/authorization.rb index 539406e11..5970fea16 100644 --- a/spec/support/authorization.rb +++ b/spec/support/authorization.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all # Set up a root user so we can set up authentication on a database level. MONGOID_ROOT_USER = Mongo::Auth::User.new( diff --git a/spec/support/client_registry.rb b/spec/support/client_registry.rb index 571b1dda6..b9dddcffb 100644 --- a/spec/support/client_registry.rb +++ b/spec/support/client_registry.rb @@ -1,3 +1,4 @@ +# rubocop:todo all require 'singleton' class ClientRegistry diff --git a/spec/support/constraints.rb b/spec/support/constraints.rb index 9afad7831..fe8347aba 100644 --- a/spec/support/constraints.rb +++ b/spec/support/constraints.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Constraints RAILS_VERSION = ActiveSupport.version.to_s.split('.')[0..1].join('.').freeze diff --git a/spec/support/crypt.rb b/spec/support/crypt.rb index 870707fd4..8023833e9 100644 --- a/spec/support/crypt.rb +++ b/spec/support/crypt.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid # This module includes helpers for testing encryption. diff --git a/spec/support/crypt/models.rb b/spec/support/crypt/models.rb index 08b931d8f..b24fc796f 100644 --- a/spec/support/crypt/models.rb +++ b/spec/support/crypt/models.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Crypt class Patient include Mongoid::Document diff --git a/spec/support/expectations.rb b/spec/support/expectations.rb index 6c31bf7ad..fc6d5254e 100644 --- a/spec/support/expectations.rb +++ b/spec/support/expectations.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Expectations diff --git a/spec/support/feature_sandbox.rb b/spec/support/feature_sandbox.rb index b19f3d0d4..e4808909d 100644 --- a/spec/support/feature_sandbox.rb +++ b/spec/support/feature_sandbox.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all # A helper utility for allowing features to be loaded and constants defined # inside a sandbox, where they can be unloaded and undefined when finished. diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index b2b884db6..9419040a4 100644 --- a/spec/support/helpers.rb +++ b/spec/support/helpers.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Helpers # Reloads the specified model class. # diff --git a/spec/support/immutable_ids.rb b/spec/support/immutable_ids.rb index f50a8bad6..495f7089b 100644 --- a/spec/support/immutable_ids.rb +++ b/spec/support/immutable_ids.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Mongoid module ImmutableIds def immutable_id_examples_as(name) diff --git a/spec/support/macros.rb b/spec/support/macros.rb index 5623f11f1..24b68a962 100644 --- a/spec/support/macros.rb +++ b/spec/support/macros.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Mongoid module Macros diff --git a/spec/support/models/account.rb b/spec/support/models/account.rb index 6f3cbaf4f..7927b9fd2 100644 --- a/spec/support/models/account.rb +++ b/spec/support/models/account.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Account include Mongoid::Document diff --git a/spec/support/models/acolyte.rb b/spec/support/models/acolyte.rb index 96d656370..e68448915 100644 --- a/spec/support/models/acolyte.rb +++ b/spec/support/models/acolyte.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Acolyte include Mongoid::Document diff --git a/spec/support/models/actor.rb b/spec/support/models/actor.rb index 152204e30..3a71c5400 100644 --- a/spec/support/models/actor.rb +++ b/spec/support/models/actor.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Actor include Mongoid::Document diff --git a/spec/support/models/actress.rb b/spec/support/models/actress.rb index 14911ffab..7f3d59e15 100644 --- a/spec/support/models/actress.rb +++ b/spec/support/models/actress.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Actress < Actor end diff --git a/spec/support/models/address.rb b/spec/support/models/address.rb index ba3e56278..62d1f2331 100644 --- a/spec/support/models/address.rb +++ b/spec/support/models/address.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Address include Mongoid::Document diff --git a/spec/support/models/address_component.rb b/spec/support/models/address_component.rb index e7c53a149..54965938d 100644 --- a/spec/support/models/address_component.rb +++ b/spec/support/models/address_component.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class AddressComponent include Mongoid::Document diff --git a/spec/support/models/address_number.rb b/spec/support/models/address_number.rb index b0197c506..00a4b4578 100644 --- a/spec/support/models/address_number.rb +++ b/spec/support/models/address_number.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class AddressNumber include Mongoid::Document diff --git a/spec/support/models/agency.rb b/spec/support/models/agency.rb index d1fb87cee..93c4417ef 100644 --- a/spec/support/models/agency.rb +++ b/spec/support/models/agency.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Agency include Mongoid::Document diff --git a/spec/support/models/agent.rb b/spec/support/models/agent.rb index 20e107895..6e0c621d2 100644 --- a/spec/support/models/agent.rb +++ b/spec/support/models/agent.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Agent include Mongoid::Document diff --git a/spec/support/models/album.rb b/spec/support/models/album.rb index 531cda77c..c2b9d2924 100644 --- a/spec/support/models/album.rb +++ b/spec/support/models/album.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Album include Mongoid::Document diff --git a/spec/support/models/alert.rb b/spec/support/models/alert.rb index a9ee1042c..e679f8f4b 100644 --- a/spec/support/models/alert.rb +++ b/spec/support/models/alert.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Alert include Mongoid::Document diff --git a/spec/support/models/animal.rb b/spec/support/models/animal.rb index 297d8a704..88e59a5e4 100644 --- a/spec/support/models/animal.rb +++ b/spec/support/models/animal.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Animal include Mongoid::Document diff --git a/spec/support/models/answer.rb b/spec/support/models/answer.rb index 451055b9a..2500eb620 100644 --- a/spec/support/models/answer.rb +++ b/spec/support/models/answer.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Answer include Mongoid::Document diff --git a/spec/support/models/appointment.rb b/spec/support/models/appointment.rb index efefbf8c5..94fc7a7fb 100644 --- a/spec/support/models/appointment.rb +++ b/spec/support/models/appointment.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Appointment include Mongoid::Document diff --git a/spec/support/models/armrest.rb b/spec/support/models/armrest.rb index 56280ba97..704a9305c 100644 --- a/spec/support/models/armrest.rb +++ b/spec/support/models/armrest.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Armrest include Mongoid::Document diff --git a/spec/support/models/array_field.rb b/spec/support/models/array_field.rb index dcd1c2ad6..45951a3fd 100644 --- a/spec/support/models/array_field.rb +++ b/spec/support/models/array_field.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class ArrayField include Mongoid::Document diff --git a/spec/support/models/article.rb b/spec/support/models/article.rb index 728f3a26d..9b3c0a3a1 100644 --- a/spec/support/models/article.rb +++ b/spec/support/models/article.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Article include Mongoid::Document diff --git a/spec/support/models/artist.rb b/spec/support/models/artist.rb index 8f1ec29ba..a68b2066e 100644 --- a/spec/support/models/artist.rb +++ b/spec/support/models/artist.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Artist include Mongoid::Document diff --git a/spec/support/models/artwork.rb b/spec/support/models/artwork.rb index fca8d0d0a..cf929ebb4 100644 --- a/spec/support/models/artwork.rb +++ b/spec/support/models/artwork.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Artwork include Mongoid::Document diff --git a/spec/support/models/audible_sound.rb b/spec/support/models/audible_sound.rb index 14182705d..109b2da3c 100644 --- a/spec/support/models/audible_sound.rb +++ b/spec/support/models/audible_sound.rb @@ -1,3 +1,4 @@ # frozen_string_literal: true +# rubocop:todo all class AudibleSound < Sound; end diff --git a/spec/support/models/audio.rb b/spec/support/models/audio.rb index e2c7734e4..f2ae46564 100644 --- a/spec/support/models/audio.rb +++ b/spec/support/models/audio.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Audio include Mongoid::Document diff --git a/spec/support/models/augmentation.rb b/spec/support/models/augmentation.rb index 50caad37e..491bf98bc 100644 --- a/spec/support/models/augmentation.rb +++ b/spec/support/models/augmentation.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Augmentation include Mongoid::Document diff --git a/spec/support/models/author.rb b/spec/support/models/author.rb index e416ab500..d83ea2fc1 100644 --- a/spec/support/models/author.rb +++ b/spec/support/models/author.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Author include Mongoid::Document diff --git a/spec/support/models/baby.rb b/spec/support/models/baby.rb index 03ed8e63b..1526022ba 100644 --- a/spec/support/models/baby.rb +++ b/spec/support/models/baby.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Baby include Mongoid::Document diff --git a/spec/support/models/band.rb b/spec/support/models/band.rb index 92338a30a..d5745259b 100644 --- a/spec/support/models/band.rb +++ b/spec/support/models/band.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Band include Mongoid::Document diff --git a/spec/support/models/bar.rb b/spec/support/models/bar.rb index 70ea6a4a3..439e3f839 100644 --- a/spec/support/models/bar.rb +++ b/spec/support/models/bar.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Bar include Mongoid::Document diff --git a/spec/support/models/basic.rb b/spec/support/models/basic.rb index cacdc0ce0..888cd37b5 100644 --- a/spec/support/models/basic.rb +++ b/spec/support/models/basic.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Basic include Mongoid::Document diff --git a/spec/support/models/bed.rb b/spec/support/models/bed.rb index f4cb06f74..602764a6d 100644 --- a/spec/support/models/bed.rb +++ b/spec/support/models/bed.rb @@ -1,3 +1,4 @@ # frozen_string_literal: true +# rubocop:todo all class Bed; end diff --git a/spec/support/models/big_palette.rb b/spec/support/models/big_palette.rb index 9534b89a7..1a3212920 100644 --- a/spec/support/models/big_palette.rb +++ b/spec/support/models/big_palette.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class BigPalette < Palette end diff --git a/spec/support/models/birthday.rb b/spec/support/models/birthday.rb index de01ee1a3..32a76893f 100644 --- a/spec/support/models/birthday.rb +++ b/spec/support/models/birthday.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Birthday include Mongoid::Document diff --git a/spec/support/models/bolt.rb b/spec/support/models/bolt.rb index 14f507855..536a4379f 100644 --- a/spec/support/models/bolt.rb +++ b/spec/support/models/bolt.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Bolt include Mongoid::Document diff --git a/spec/support/models/bomb.rb b/spec/support/models/bomb.rb index fcebf3fbe..b3f9a3e5d 100644 --- a/spec/support/models/bomb.rb +++ b/spec/support/models/bomb.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Bomb include Mongoid::Document diff --git a/spec/support/models/book.rb b/spec/support/models/book.rb index bff5bee3c..7201cb232 100644 --- a/spec/support/models/book.rb +++ b/spec/support/models/book.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Book include Mongoid::Document diff --git a/spec/support/models/breed.rb b/spec/support/models/breed.rb index b52263966..0099a56c0 100644 --- a/spec/support/models/breed.rb +++ b/spec/support/models/breed.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Breed include Mongoid::Document diff --git a/spec/support/models/browser.rb b/spec/support/models/browser.rb index b41371595..2c9a92f43 100644 --- a/spec/support/models/browser.rb +++ b/spec/support/models/browser.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Browser < Canvas field :version, type: Integer diff --git a/spec/support/models/building.rb b/spec/support/models/building.rb index b71626710..653a781f9 100644 --- a/spec/support/models/building.rb +++ b/spec/support/models/building.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Building include Mongoid::Document diff --git a/spec/support/models/building_address.rb b/spec/support/models/building_address.rb index a6c90fcfd..d2dca0fc8 100644 --- a/spec/support/models/building_address.rb +++ b/spec/support/models/building_address.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class BuildingAddress include Mongoid::Document diff --git a/spec/support/models/bus.rb b/spec/support/models/bus.rb index 2cd3fc2c1..991a09cd8 100644 --- a/spec/support/models/bus.rb +++ b/spec/support/models/bus.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Bus include Mongoid::Document diff --git a/spec/support/models/business.rb b/spec/support/models/business.rb index 82e106f51..11c5e7e7d 100644 --- a/spec/support/models/business.rb +++ b/spec/support/models/business.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Business include Mongoid::Document diff --git a/spec/support/models/callback_test.rb b/spec/support/models/callback_test.rb index 55c24977c..458277ae4 100644 --- a/spec/support/models/callback_test.rb +++ b/spec/support/models/callback_test.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class CallbackTest include Mongoid::Document diff --git a/spec/support/models/canvas.rb b/spec/support/models/canvas.rb index e97ede3e2..60348e59c 100644 --- a/spec/support/models/canvas.rb +++ b/spec/support/models/canvas.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Canvas include Mongoid::Document diff --git a/spec/support/models/car.rb b/spec/support/models/car.rb index 050aa9c64..75b039299 100644 --- a/spec/support/models/car.rb +++ b/spec/support/models/car.rb @@ -1,3 +1,4 @@ # frozen_string_literal: true +# rubocop:todo all class Car < Vehicle; end diff --git a/spec/support/models/cat.rb b/spec/support/models/cat.rb index bffd04da8..db7474862 100644 --- a/spec/support/models/cat.rb +++ b/spec/support/models/cat.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Cat include Mongoid::Document diff --git a/spec/support/models/catalog.rb b/spec/support/models/catalog.rb index 7561d07c8..fbd5c1a85 100644 --- a/spec/support/models/catalog.rb +++ b/spec/support/models/catalog.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Catalog include Mongoid::Document diff --git a/spec/support/models/category.rb b/spec/support/models/category.rb index 90b9d3fe9..300722dea 100644 --- a/spec/support/models/category.rb +++ b/spec/support/models/category.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Category include Mongoid::Document diff --git a/spec/support/models/child.rb b/spec/support/models/child.rb index b57091fcb..5b6478d31 100644 --- a/spec/support/models/child.rb +++ b/spec/support/models/child.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Child include Mongoid::Document diff --git a/spec/support/models/child_doc.rb b/spec/support/models/child_doc.rb index 72865295d..b059207ae 100644 --- a/spec/support/models/child_doc.rb +++ b/spec/support/models/child_doc.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class ChildDoc include Mongoid::Document diff --git a/spec/support/models/church.rb b/spec/support/models/church.rb index a24267b02..3be08589d 100644 --- a/spec/support/models/church.rb +++ b/spec/support/models/church.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Church include Mongoid::Document diff --git a/spec/support/models/circle.rb b/spec/support/models/circle.rb index a253fffd5..03973db02 100644 --- a/spec/support/models/circle.rb +++ b/spec/support/models/circle.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Circle < Shape field :radius, type: Integer, default: 0 diff --git a/spec/support/models/circuit.rb b/spec/support/models/circuit.rb index cb227b79d..c3b5f8a39 100644 --- a/spec/support/models/circuit.rb +++ b/spec/support/models/circuit.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Circuit include Mongoid::Document diff --git a/spec/support/models/circus.rb b/spec/support/models/circus.rb index e3f6d4fb3..53e720edd 100644 --- a/spec/support/models/circus.rb +++ b/spec/support/models/circus.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Circus include Mongoid::Document diff --git a/spec/support/models/code.rb b/spec/support/models/code.rb index 7790975f8..d07aa2de4 100644 --- a/spec/support/models/code.rb +++ b/spec/support/models/code.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Code include Mongoid::Document diff --git a/spec/support/models/coding.rb b/spec/support/models/coding.rb index 82bd1ef8d..a4087612f 100644 --- a/spec/support/models/coding.rb +++ b/spec/support/models/coding.rb @@ -1,3 +1,4 @@ # frozen_string_literal: true +# rubocop:todo all require 'support/models/coding/pull_request' diff --git a/spec/support/models/coding/pull_request.rb b/spec/support/models/coding/pull_request.rb index c5fcd2c42..c71d8a2f6 100644 --- a/spec/support/models/coding/pull_request.rb +++ b/spec/support/models/coding/pull_request.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Coding class PullRequest diff --git a/spec/support/models/comment.rb b/spec/support/models/comment.rb index b0991f0d4..fe9a13050 100644 --- a/spec/support/models/comment.rb +++ b/spec/support/models/comment.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Comment include Mongoid::Document diff --git a/spec/support/models/company.rb b/spec/support/models/company.rb index 87576e843..5838e28f0 100644 --- a/spec/support/models/company.rb +++ b/spec/support/models/company.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Company include Mongoid::Document diff --git a/spec/support/models/consumption_period.rb b/spec/support/models/consumption_period.rb index 58f054ab4..ebbdd8d6f 100644 --- a/spec/support/models/consumption_period.rb +++ b/spec/support/models/consumption_period.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class ConsumptionPeriod include Mongoid::Document diff --git a/spec/support/models/contextable_item.rb b/spec/support/models/contextable_item.rb index ba62d5c7f..c5a73eba2 100644 --- a/spec/support/models/contextable_item.rb +++ b/spec/support/models/contextable_item.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class ContextableItem include Mongoid::Document diff --git a/spec/support/models/contractor.rb b/spec/support/models/contractor.rb index 851cd4647..c86f5e02a 100644 --- a/spec/support/models/contractor.rb +++ b/spec/support/models/contractor.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Contractor include Mongoid::Document diff --git a/spec/support/models/cookie.rb b/spec/support/models/cookie.rb index 59d851b93..419797e47 100644 --- a/spec/support/models/cookie.rb +++ b/spec/support/models/cookie.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Cookie include Mongoid::Document diff --git a/spec/support/models/country_code.rb b/spec/support/models/country_code.rb index 53665f054..2dcb3e08b 100644 --- a/spec/support/models/country_code.rb +++ b/spec/support/models/country_code.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class CountryCode include Mongoid::Document diff --git a/spec/support/models/courier_job.rb b/spec/support/models/courier_job.rb index 9403cd143..b7879deb1 100644 --- a/spec/support/models/courier_job.rb +++ b/spec/support/models/courier_job.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class CourierJob include Mongoid::Document diff --git a/spec/support/models/cover.rb b/spec/support/models/cover.rb index bd4240321..74c200a8a 100644 --- a/spec/support/models/cover.rb +++ b/spec/support/models/cover.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Cover include Mongoid::Document diff --git a/spec/support/models/crate.rb b/spec/support/models/crate.rb index 1be733a3b..aa26240e8 100644 --- a/spec/support/models/crate.rb +++ b/spec/support/models/crate.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Crate include Mongoid::Document diff --git a/spec/support/models/customer.rb b/spec/support/models/customer.rb index 9d2a7f946..a389e4b55 100644 --- a/spec/support/models/customer.rb +++ b/spec/support/models/customer.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Customer include Mongoid::Document diff --git a/spec/support/models/customer_address.rb b/spec/support/models/customer_address.rb index 024bd352a..83dec4a73 100644 --- a/spec/support/models/customer_address.rb +++ b/spec/support/models/customer_address.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class CustomerAddress include Mongoid::Document diff --git a/spec/support/models/deed.rb b/spec/support/models/deed.rb index 45d34944a..a10f8cbf8 100644 --- a/spec/support/models/deed.rb +++ b/spec/support/models/deed.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Deed include Mongoid::Document diff --git a/spec/support/models/definition.rb b/spec/support/models/definition.rb index 7558196c6..d846d1961 100644 --- a/spec/support/models/definition.rb +++ b/spec/support/models/definition.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Definition include Mongoid::Document diff --git a/spec/support/models/delegating_patient.rb b/spec/support/models/delegating_patient.rb index 13f1850fb..a396568c2 100644 --- a/spec/support/models/delegating_patient.rb +++ b/spec/support/models/delegating_patient.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class DelegatingPatient include Mongoid::Document diff --git a/spec/support/models/description.rb b/spec/support/models/description.rb index 0788c8087..f9ec0f1a2 100644 --- a/spec/support/models/description.rb +++ b/spec/support/models/description.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Description include Mongoid::Document diff --git a/spec/support/models/dictionary.rb b/spec/support/models/dictionary.rb index 117b9ef20..53c6dc768 100644 --- a/spec/support/models/dictionary.rb +++ b/spec/support/models/dictionary.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Dictionary include Mongoid::Document diff --git a/spec/support/models/division.rb b/spec/support/models/division.rb index 99ff805eb..b09a73d37 100644 --- a/spec/support/models/division.rb +++ b/spec/support/models/division.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Division include Mongoid::Document diff --git a/spec/support/models/doctor.rb b/spec/support/models/doctor.rb index 85a4dd549..0d9ec82b2 100644 --- a/spec/support/models/doctor.rb +++ b/spec/support/models/doctor.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Doctor < Person field :specialty, as: :spec diff --git a/spec/support/models/dog.rb b/spec/support/models/dog.rb index 059ef57e8..73df7255f 100644 --- a/spec/support/models/dog.rb +++ b/spec/support/models/dog.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Dog include Mongoid::Document diff --git a/spec/support/models/dokument.rb b/spec/support/models/dokument.rb index 3ceac0433..601ae7919 100644 --- a/spec/support/models/dokument.rb +++ b/spec/support/models/dokument.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Dokument include Mongoid::Document diff --git a/spec/support/models/draft.rb b/spec/support/models/draft.rb index fdf0cccb6..21a262d83 100644 --- a/spec/support/models/draft.rb +++ b/spec/support/models/draft.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Draft include Mongoid::Document diff --git a/spec/support/models/dragon.rb b/spec/support/models/dragon.rb index 68736bfa8..b68368e04 100644 --- a/spec/support/models/dragon.rb +++ b/spec/support/models/dragon.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Dragon include Mongoid::Document diff --git a/spec/support/models/driver.rb b/spec/support/models/driver.rb index ade7a9d9e..b184d1f49 100644 --- a/spec/support/models/driver.rb +++ b/spec/support/models/driver.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Driver include Mongoid::Document diff --git a/spec/support/models/drug.rb b/spec/support/models/drug.rb index ad99c9026..2592036a2 100644 --- a/spec/support/models/drug.rb +++ b/spec/support/models/drug.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Drug include Mongoid::Document diff --git a/spec/support/models/dungeon.rb b/spec/support/models/dungeon.rb index 69046a71b..c566898eb 100644 --- a/spec/support/models/dungeon.rb +++ b/spec/support/models/dungeon.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Dungeon include Mongoid::Document diff --git a/spec/support/models/edit.rb b/spec/support/models/edit.rb index bbadf488f..b6235cc05 100644 --- a/spec/support/models/edit.rb +++ b/spec/support/models/edit.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Edit include Mongoid::Document diff --git a/spec/support/models/email.rb b/spec/support/models/email.rb index 85e45fe29..5e62b9063 100644 --- a/spec/support/models/email.rb +++ b/spec/support/models/email.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Email include Mongoid::Document diff --git a/spec/support/models/employer.rb b/spec/support/models/employer.rb index 9461dfefe..c40c3122b 100644 --- a/spec/support/models/employer.rb +++ b/spec/support/models/employer.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Employer def id diff --git a/spec/support/models/entry.rb b/spec/support/models/entry.rb index da58bc236..456a0a0fb 100644 --- a/spec/support/models/entry.rb +++ b/spec/support/models/entry.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Entry include Mongoid::Document diff --git a/spec/support/models/eraser.rb b/spec/support/models/eraser.rb index 432e0bff5..124fd8c3e 100644 --- a/spec/support/models/eraser.rb +++ b/spec/support/models/eraser.rb @@ -1,3 +1,4 @@ # frozen_string_literal: true +# rubocop:todo all class Eraser < Tool; end diff --git a/spec/support/models/even.rb b/spec/support/models/even.rb index 1accc6cc2..35d7e0b0f 100644 --- a/spec/support/models/even.rb +++ b/spec/support/models/even.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Even include Mongoid::Document diff --git a/spec/support/models/event.rb b/spec/support/models/event.rb index 37dda1651..47eb938b5 100644 --- a/spec/support/models/event.rb +++ b/spec/support/models/event.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Event include Mongoid::Document diff --git a/spec/support/models/exhibition.rb b/spec/support/models/exhibition.rb index 49027232a..9c0d8eb06 100644 --- a/spec/support/models/exhibition.rb +++ b/spec/support/models/exhibition.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Exhibition include Mongoid::Document diff --git a/spec/support/models/exhibitor.rb b/spec/support/models/exhibitor.rb index 9b26ac461..6e2d64a53 100644 --- a/spec/support/models/exhibitor.rb +++ b/spec/support/models/exhibitor.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Exhibitor include Mongoid::Document diff --git a/spec/support/models/explosion.rb b/spec/support/models/explosion.rb index 31f2b48af..3162f9ca7 100644 --- a/spec/support/models/explosion.rb +++ b/spec/support/models/explosion.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Explosion include Mongoid::Document diff --git a/spec/support/models/eye.rb b/spec/support/models/eye.rb index 56fd31dd2..d4beda547 100644 --- a/spec/support/models/eye.rb +++ b/spec/support/models/eye.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Eye include Mongoid::Document diff --git a/spec/support/models/eye_bowl.rb b/spec/support/models/eye_bowl.rb index 40b78896a..ed72b7611 100644 --- a/spec/support/models/eye_bowl.rb +++ b/spec/support/models/eye_bowl.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class EyeBowl include Mongoid::Document diff --git a/spec/support/models/face.rb b/spec/support/models/face.rb index 531046317..342f79894 100644 --- a/spec/support/models/face.rb +++ b/spec/support/models/face.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Face include Mongoid::Document diff --git a/spec/support/models/fanatic.rb b/spec/support/models/fanatic.rb index 25bd49efc..0bd382081 100644 --- a/spec/support/models/fanatic.rb +++ b/spec/support/models/fanatic.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Fanatic include Mongoid::Document diff --git a/spec/support/models/favorite.rb b/spec/support/models/favorite.rb index aa9a3f597..acb2d4078 100644 --- a/spec/support/models/favorite.rb +++ b/spec/support/models/favorite.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Favorite include Mongoid::Document diff --git a/spec/support/models/filesystem.rb b/spec/support/models/filesystem.rb index d825a41e8..22659f2e6 100644 --- a/spec/support/models/filesystem.rb +++ b/spec/support/models/filesystem.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Filesystem include Mongoid::Document diff --git a/spec/support/models/fire_hydrant.rb b/spec/support/models/fire_hydrant.rb index a8d1834b7..6309a6b00 100644 --- a/spec/support/models/fire_hydrant.rb +++ b/spec/support/models/fire_hydrant.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class FireHydrant include Mongoid::Document diff --git a/spec/support/models/firefox.rb b/spec/support/models/firefox.rb index b7e076e18..456886a55 100644 --- a/spec/support/models/firefox.rb +++ b/spec/support/models/firefox.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Firefox < Browser field :user_agent diff --git a/spec/support/models/fish.rb b/spec/support/models/fish.rb index 9c61276b1..2c905a041 100644 --- a/spec/support/models/fish.rb +++ b/spec/support/models/fish.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Fish include Mongoid::Document diff --git a/spec/support/models/folder.rb b/spec/support/models/folder.rb index bcec86c4a..fe6d4e03c 100644 --- a/spec/support/models/folder.rb +++ b/spec/support/models/folder.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Folder include Mongoid::Document diff --git a/spec/support/models/folder_item.rb b/spec/support/models/folder_item.rb index 6c50e21d3..0b8401c21 100644 --- a/spec/support/models/folder_item.rb +++ b/spec/support/models/folder_item.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class FolderItem diff --git a/spec/support/models/fruits.rb b/spec/support/models/fruits.rb index b7b2ddc0a..afdab62e5 100644 --- a/spec/support/models/fruits.rb +++ b/spec/support/models/fruits.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Fruits class Apple diff --git a/spec/support/models/game.rb b/spec/support/models/game.rb index 2fce9e5dc..e1cb98706 100644 --- a/spec/support/models/game.rb +++ b/spec/support/models/game.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Game include Mongoid::Document diff --git a/spec/support/models/ghost.rb b/spec/support/models/ghost.rb index 41c809aa1..719c361b3 100644 --- a/spec/support/models/ghost.rb +++ b/spec/support/models/ghost.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Ghost include Mongoid::Document diff --git a/spec/support/models/guitar.rb b/spec/support/models/guitar.rb index 53810e1bc..05673f806 100644 --- a/spec/support/models/guitar.rb +++ b/spec/support/models/guitar.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Guitar < Instrument end diff --git a/spec/support/models/hole.rb b/spec/support/models/hole.rb index 624a4fa36..cae9133fe 100644 --- a/spec/support/models/hole.rb +++ b/spec/support/models/hole.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Hole include Mongoid::Document diff --git a/spec/support/models/home.rb b/spec/support/models/home.rb index 18734f27b..e16ec1804 100644 --- a/spec/support/models/home.rb +++ b/spec/support/models/home.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Home include Mongoid::Document diff --git a/spec/support/models/house.rb b/spec/support/models/house.rb index 5576f2ed1..4b8fecac0 100644 --- a/spec/support/models/house.rb +++ b/spec/support/models/house.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class House include Mongoid::Document diff --git a/spec/support/models/html_writer.rb b/spec/support/models/html_writer.rb index b71872fc5..1d2ab77af 100644 --- a/spec/support/models/html_writer.rb +++ b/spec/support/models/html_writer.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class HtmlWriter < Writer def write; end diff --git a/spec/support/models/id_key.rb b/spec/support/models/id_key.rb index ee168aafa..490240f27 100644 --- a/spec/support/models/id_key.rb +++ b/spec/support/models/id_key.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class IdKey include Mongoid::Document diff --git a/spec/support/models/idnodef.rb b/spec/support/models/idnodef.rb index f81192051..e424cdf1f 100644 --- a/spec/support/models/idnodef.rb +++ b/spec/support/models/idnodef.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Idnodef include Mongoid::Document diff --git a/spec/support/models/image.rb b/spec/support/models/image.rb index 1b153cbe6..787a6f84d 100644 --- a/spec/support/models/image.rb +++ b/spec/support/models/image.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Image attr_reader :name diff --git a/spec/support/models/implant.rb b/spec/support/models/implant.rb index 19e0d97f8..68edef84c 100644 --- a/spec/support/models/implant.rb +++ b/spec/support/models/implant.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Implant include Mongoid::Document diff --git a/spec/support/models/instrument.rb b/spec/support/models/instrument.rb index d4c4b7a05..a820acb4f 100644 --- a/spec/support/models/instrument.rb +++ b/spec/support/models/instrument.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Instrument include Mongoid::Document diff --git a/spec/support/models/item.rb b/spec/support/models/item.rb index 85cb8c3bb..e87577a9d 100644 --- a/spec/support/models/item.rb +++ b/spec/support/models/item.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Item include Mongoid::Document diff --git a/spec/support/models/jar.rb b/spec/support/models/jar.rb index f0afc662e..de29af542 100644 --- a/spec/support/models/jar.rb +++ b/spec/support/models/jar.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Jar include Mongoid::Document diff --git a/spec/support/models/kaleidoscope.rb b/spec/support/models/kaleidoscope.rb index 4ef75a094..f30be5144 100644 --- a/spec/support/models/kaleidoscope.rb +++ b/spec/support/models/kaleidoscope.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Kaleidoscope include Mongoid::Document diff --git a/spec/support/models/kangaroo.rb b/spec/support/models/kangaroo.rb index a45d8cf7f..346e59af6 100644 --- a/spec/support/models/kangaroo.rb +++ b/spec/support/models/kangaroo.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Kangaroo include Mongoid::Document diff --git a/spec/support/models/label.rb b/spec/support/models/label.rb index c9ed1b7bd..0bc0bfda0 100644 --- a/spec/support/models/label.rb +++ b/spec/support/models/label.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Label include Mongoid::Document diff --git a/spec/support/models/language.rb b/spec/support/models/language.rb index e4a84f73f..22e6a5aac 100644 --- a/spec/support/models/language.rb +++ b/spec/support/models/language.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Language include Mongoid::Document diff --git a/spec/support/models/lat_lng.rb b/spec/support/models/lat_lng.rb index d65110a92..f2eac1919 100644 --- a/spec/support/models/lat_lng.rb +++ b/spec/support/models/lat_lng.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class LatLng attr_accessor :lat, :lng diff --git a/spec/support/models/league.rb b/spec/support/models/league.rb index a93a4d236..163dad70c 100644 --- a/spec/support/models/league.rb +++ b/spec/support/models/league.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class League include Mongoid::Document diff --git a/spec/support/models/learner.rb b/spec/support/models/learner.rb index 2be161e50..ebf8a95ff 100644 --- a/spec/support/models/learner.rb +++ b/spec/support/models/learner.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Learner < Driver end diff --git a/spec/support/models/line_item.rb b/spec/support/models/line_item.rb index a6491c766..b7807e55d 100644 --- a/spec/support/models/line_item.rb +++ b/spec/support/models/line_item.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class LineItem include Mongoid::Document diff --git a/spec/support/models/location.rb b/spec/support/models/location.rb index 87c01ef6c..0d02d01cf 100644 --- a/spec/support/models/location.rb +++ b/spec/support/models/location.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Location include Mongoid::Document diff --git a/spec/support/models/login.rb b/spec/support/models/login.rb index 4fda3d0d6..d4583a653 100644 --- a/spec/support/models/login.rb +++ b/spec/support/models/login.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Login include Mongoid::Document diff --git a/spec/support/models/manufacturer.rb b/spec/support/models/manufacturer.rb index 8cc685239..87a0a9960 100644 --- a/spec/support/models/manufacturer.rb +++ b/spec/support/models/manufacturer.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Manufacturer include Mongoid::Document diff --git a/spec/support/models/meat.rb b/spec/support/models/meat.rb index dc39e6d87..cf8fdabc5 100644 --- a/spec/support/models/meat.rb +++ b/spec/support/models/meat.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Meat include Mongoid::Document diff --git a/spec/support/models/membership.rb b/spec/support/models/membership.rb index 55f80e3b4..c0844b0be 100644 --- a/spec/support/models/membership.rb +++ b/spec/support/models/membership.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Membership include Mongoid::Document diff --git a/spec/support/models/message.rb b/spec/support/models/message.rb index 7b3c08903..73a98333c 100644 --- a/spec/support/models/message.rb +++ b/spec/support/models/message.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Message include Mongoid::Document diff --git a/spec/support/models/minim.rb b/spec/support/models/minim.rb index 43920dc3a..dc7f0121b 100644 --- a/spec/support/models/minim.rb +++ b/spec/support/models/minim.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all # Minimal model, do not add any fields class Minim diff --git a/spec/support/models/mixed_drink.rb b/spec/support/models/mixed_drink.rb index e0428ac36..b028aee12 100644 --- a/spec/support/models/mixed_drink.rb +++ b/spec/support/models/mixed_drink.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class MixedDrink include Mongoid::Document diff --git a/spec/support/models/mop.rb b/spec/support/models/mop.rb index 12782a083..ed23c03fd 100644 --- a/spec/support/models/mop.rb +++ b/spec/support/models/mop.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all # This class is used for embedded matcher testing. class Mop diff --git a/spec/support/models/movie.rb b/spec/support/models/movie.rb index 449ff0044..620af8d33 100644 --- a/spec/support/models/movie.rb +++ b/spec/support/models/movie.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Movie include Mongoid::Document diff --git a/spec/support/models/my_hash.rb b/spec/support/models/my_hash.rb index 1418add9b..c601da6b5 100644 --- a/spec/support/models/my_hash.rb +++ b/spec/support/models/my_hash.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class MyHash < ::Hash end diff --git a/spec/support/models/name.rb b/spec/support/models/name.rb index e6740e12e..83a43c71f 100644 --- a/spec/support/models/name.rb +++ b/spec/support/models/name.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Name include Mongoid::Document diff --git a/spec/support/models/name_only.rb b/spec/support/models/name_only.rb index 5604107dd..1f1a1794d 100644 --- a/spec/support/models/name_only.rb +++ b/spec/support/models/name_only.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all # Model with one field called name class NameOnly diff --git a/spec/support/models/node.rb b/spec/support/models/node.rb index 88e59a7ba..0d02d3bab 100644 --- a/spec/support/models/node.rb +++ b/spec/support/models/node.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Node include Mongoid::Document diff --git a/spec/support/models/note.rb b/spec/support/models/note.rb index 196e70acf..269b59254 100644 --- a/spec/support/models/note.rb +++ b/spec/support/models/note.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Note include Mongoid::Document diff --git a/spec/support/models/nut.rb b/spec/support/models/nut.rb index 8768df868..f1e6dc355 100644 --- a/spec/support/models/nut.rb +++ b/spec/support/models/nut.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Nut include Mongoid::Document diff --git a/spec/support/models/odd.rb b/spec/support/models/odd.rb index b9c552920..91458d57d 100644 --- a/spec/support/models/odd.rb +++ b/spec/support/models/odd.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Odd include Mongoid::Document diff --git a/spec/support/models/order.rb b/spec/support/models/order.rb index c8aa7f1a4..a589a8f5a 100644 --- a/spec/support/models/order.rb +++ b/spec/support/models/order.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Order include Mongoid::Document diff --git a/spec/support/models/ordered_post.rb b/spec/support/models/ordered_post.rb index 4ffff506b..543c7e270 100644 --- a/spec/support/models/ordered_post.rb +++ b/spec/support/models/ordered_post.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class OrderedPost include Mongoid::Document diff --git a/spec/support/models/ordered_preference.rb b/spec/support/models/ordered_preference.rb index f32d4fac2..bc45fea6e 100644 --- a/spec/support/models/ordered_preference.rb +++ b/spec/support/models/ordered_preference.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class OrderedPreference include Mongoid::Document diff --git a/spec/support/models/oscar.rb b/spec/support/models/oscar.rb index 1c3d3c1b0..bc4484657 100644 --- a/spec/support/models/oscar.rb +++ b/spec/support/models/oscar.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Oscar include Mongoid::Document diff --git a/spec/support/models/other_owner_object.rb b/spec/support/models/other_owner_object.rb index d3de850ba..96906e5e0 100644 --- a/spec/support/models/other_owner_object.rb +++ b/spec/support/models/other_owner_object.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class OtherOwnerObject end diff --git a/spec/support/models/override.rb b/spec/support/models/override.rb index 7ae766948..1a282bd75 100644 --- a/spec/support/models/override.rb +++ b/spec/support/models/override.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Override include Mongoid::Document diff --git a/spec/support/models/ownable.rb b/spec/support/models/ownable.rb index 8c948fbcf..c9ab0aeb5 100644 --- a/spec/support/models/ownable.rb +++ b/spec/support/models/ownable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Ownable extend ActiveSupport::Concern diff --git a/spec/support/models/owner.rb b/spec/support/models/owner.rb index 0663f4964..25f9af699 100644 --- a/spec/support/models/owner.rb +++ b/spec/support/models/owner.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Owner include Mongoid::Document diff --git a/spec/support/models/pack.rb b/spec/support/models/pack.rb index 1c0a58944..97daf4a5b 100644 --- a/spec/support/models/pack.rb +++ b/spec/support/models/pack.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Pack include Mongoid::Document diff --git a/spec/support/models/page.rb b/spec/support/models/page.rb index 1c6ec24c5..537a4cc01 100644 --- a/spec/support/models/page.rb +++ b/spec/support/models/page.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Page include Mongoid::Document diff --git a/spec/support/models/page_question.rb b/spec/support/models/page_question.rb index a88c9ce9a..9796e00ec 100644 --- a/spec/support/models/page_question.rb +++ b/spec/support/models/page_question.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class PageQuestion include Mongoid::Document diff --git a/spec/support/models/palette.rb b/spec/support/models/palette.rb index dd945aecf..b1078c1bd 100644 --- a/spec/support/models/palette.rb +++ b/spec/support/models/palette.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Palette include Mongoid::Document diff --git a/spec/support/models/parent.rb b/spec/support/models/parent.rb index 1ce7821d0..b51035fa3 100644 --- a/spec/support/models/parent.rb +++ b/spec/support/models/parent.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Parent include Mongoid::Document diff --git a/spec/support/models/parent_doc.rb b/spec/support/models/parent_doc.rb index c6672caea..c60a22422 100644 --- a/spec/support/models/parent_doc.rb +++ b/spec/support/models/parent_doc.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class ParentDoc include Mongoid::Document diff --git a/spec/support/models/passport.rb b/spec/support/models/passport.rb index 5008101bb..f1c11ae6d 100644 --- a/spec/support/models/passport.rb +++ b/spec/support/models/passport.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Passport include Mongoid::Document diff --git a/spec/support/models/patient.rb b/spec/support/models/patient.rb index abfecf75f..667c057bf 100644 --- a/spec/support/models/patient.rb +++ b/spec/support/models/patient.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Patient include Mongoid::Document diff --git a/spec/support/models/pdf_writer.rb b/spec/support/models/pdf_writer.rb index afc7f669c..e2dbc45cb 100644 --- a/spec/support/models/pdf_writer.rb +++ b/spec/support/models/pdf_writer.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class PdfWriter < Writer def write; end diff --git a/spec/support/models/pencil.rb b/spec/support/models/pencil.rb index 486bca41e..57687b021 100644 --- a/spec/support/models/pencil.rb +++ b/spec/support/models/pencil.rb @@ -1,3 +1,4 @@ # frozen_string_literal: true +# rubocop:todo all class Pencil < Tool; end diff --git a/spec/support/models/person.rb b/spec/support/models/person.rb index 713b09efe..a1a642c4c 100644 --- a/spec/support/models/person.rb +++ b/spec/support/models/person.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Person include Mongoid::Document diff --git a/spec/support/models/pet.rb b/spec/support/models/pet.rb index 9c41acd66..0adf5a4e6 100644 --- a/spec/support/models/pet.rb +++ b/spec/support/models/pet.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Pet include Mongoid::Document diff --git a/spec/support/models/pet_owner.rb b/spec/support/models/pet_owner.rb index 16ea2a6d5..2ba912fb1 100644 --- a/spec/support/models/pet_owner.rb +++ b/spec/support/models/pet_owner.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class PetOwner include Mongoid::Document diff --git a/spec/support/models/phone.rb b/spec/support/models/phone.rb index 3d8ca55dc..dede74d78 100644 --- a/spec/support/models/phone.rb +++ b/spec/support/models/phone.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Phone include Mongoid::Document diff --git a/spec/support/models/piano.rb b/spec/support/models/piano.rb index 9a3334dbd..2cdc6adab 100644 --- a/spec/support/models/piano.rb +++ b/spec/support/models/piano.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Piano < Instrument end diff --git a/spec/support/models/pizza.rb b/spec/support/models/pizza.rb index 5444c2a88..859e58772 100644 --- a/spec/support/models/pizza.rb +++ b/spec/support/models/pizza.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Pizza include Mongoid::Document diff --git a/spec/support/models/player.rb b/spec/support/models/player.rb index 914816248..fba2426a1 100644 --- a/spec/support/models/player.rb +++ b/spec/support/models/player.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Player include Mongoid::Document diff --git a/spec/support/models/post.rb b/spec/support/models/post.rb index cc295bd9b..73b0d9690 100644 --- a/spec/support/models/post.rb +++ b/spec/support/models/post.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Post include Mongoid::Document diff --git a/spec/support/models/post_genre.rb b/spec/support/models/post_genre.rb index bf659ecb7..c5315b75f 100644 --- a/spec/support/models/post_genre.rb +++ b/spec/support/models/post_genre.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class PostGenre include Mongoid::Document diff --git a/spec/support/models/powerup.rb b/spec/support/models/powerup.rb index 45521c3dc..6cc3dadd4 100644 --- a/spec/support/models/powerup.rb +++ b/spec/support/models/powerup.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Powerup include Mongoid::Document diff --git a/spec/support/models/preference.rb b/spec/support/models/preference.rb index 1cbe4a1a6..c872d5bfa 100644 --- a/spec/support/models/preference.rb +++ b/spec/support/models/preference.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Preference include Mongoid::Document diff --git a/spec/support/models/princess.rb b/spec/support/models/princess.rb index 8e106d893..86fceba24 100644 --- a/spec/support/models/princess.rb +++ b/spec/support/models/princess.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Princess include Mongoid::Document diff --git a/spec/support/models/product.rb b/spec/support/models/product.rb index 6d17d583f..9d9c96576 100644 --- a/spec/support/models/product.rb +++ b/spec/support/models/product.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Product include Mongoid::Document diff --git a/spec/support/models/profile.rb b/spec/support/models/profile.rb index 72fb1145f..a3725239a 100644 --- a/spec/support/models/profile.rb +++ b/spec/support/models/profile.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Profile include Mongoid::Document diff --git a/spec/support/models/pronunciation.rb b/spec/support/models/pronunciation.rb index 9f1b66b5d..828427c9d 100644 --- a/spec/support/models/pronunciation.rb +++ b/spec/support/models/pronunciation.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Pronunciation include Mongoid::Document diff --git a/spec/support/models/pub.rb b/spec/support/models/pub.rb index e1d416eaa..b7e4e1377 100644 --- a/spec/support/models/pub.rb +++ b/spec/support/models/pub.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Pub include Mongoid::Document diff --git a/spec/support/models/publication.rb b/spec/support/models/publication.rb index 5cbab1d8b..4947be361 100644 --- a/spec/support/models/publication.rb +++ b/spec/support/models/publication.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'support/models/publication/encyclopedia' require 'support/models/publication/review' diff --git a/spec/support/models/publication/encyclopedia.rb b/spec/support/models/publication/encyclopedia.rb index 72cd80db4..597b78395 100644 --- a/spec/support/models/publication/encyclopedia.rb +++ b/spec/support/models/publication/encyclopedia.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Publication class Encyclopedia diff --git a/spec/support/models/publication/review.rb b/spec/support/models/publication/review.rb index 99d54c2dd..b567872e7 100644 --- a/spec/support/models/publication/review.rb +++ b/spec/support/models/publication/review.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all module Publication class Review diff --git a/spec/support/models/purchase.rb b/spec/support/models/purchase.rb index 661f8816a..57a26f01f 100644 --- a/spec/support/models/purchase.rb +++ b/spec/support/models/purchase.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Purchase include Mongoid::Document diff --git a/spec/support/models/purchased_item.rb b/spec/support/models/purchased_item.rb index fb51474d9..bbc2767f2 100644 --- a/spec/support/models/purchased_item.rb +++ b/spec/support/models/purchased_item.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class PurchasedItem include Mongoid::Document diff --git a/spec/support/models/question.rb b/spec/support/models/question.rb index b7c15499b..fbd3b2e6d 100644 --- a/spec/support/models/question.rb +++ b/spec/support/models/question.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Question include Mongoid::Document diff --git a/spec/support/models/quiz.rb b/spec/support/models/quiz.rb index 3524394bc..d3754e6e1 100644 --- a/spec/support/models/quiz.rb +++ b/spec/support/models/quiz.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Quiz include Mongoid::Document diff --git a/spec/support/models/rating.rb b/spec/support/models/rating.rb index 42fec39dd..4678fc82c 100644 --- a/spec/support/models/rating.rb +++ b/spec/support/models/rating.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Rating include Mongoid::Document diff --git a/spec/support/models/record.rb b/spec/support/models/record.rb index 25682e044..3db4e8e98 100644 --- a/spec/support/models/record.rb +++ b/spec/support/models/record.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Record include Mongoid::Document diff --git a/spec/support/models/registry.rb b/spec/support/models/registry.rb index 3410e637f..a40de1de2 100644 --- a/spec/support/models/registry.rb +++ b/spec/support/models/registry.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Registry include Mongoid::Document diff --git a/spec/support/models/role.rb b/spec/support/models/role.rb index c3c258299..d38b91cee 100644 --- a/spec/support/models/role.rb +++ b/spec/support/models/role.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Role include Mongoid::Document diff --git a/spec/support/models/root_category.rb b/spec/support/models/root_category.rb index 2aaf06a2a..eb0ea4e32 100644 --- a/spec/support/models/root_category.rb +++ b/spec/support/models/root_category.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class RootCategory include Mongoid::Document diff --git a/spec/support/models/sandbox/app/models/app_models_message.rb b/spec/support/models/sandbox/app/models/app_models_message.rb index 27bd3700c..30accfc87 100644 --- a/spec/support/models/sandbox/app/models/app_models_message.rb +++ b/spec/support/models/sandbox/app/models/app_models_message.rb @@ -1,3 +1,4 @@ +# rubocop:todo all class AppModelsMessage include Mongoid::Document end diff --git a/spec/support/models/sandbox/lib/models/lib_models_message.rb b/spec/support/models/sandbox/lib/models/lib_models_message.rb index 6c5630cc5..3b6d601cc 100644 --- a/spec/support/models/sandbox/lib/models/lib_models_message.rb +++ b/spec/support/models/sandbox/lib/models/lib_models_message.rb @@ -1,3 +1,4 @@ +# rubocop:todo all class LibModelsMessage include Mongoid::Document end diff --git a/spec/support/models/sandbox/sandbox_message.rb b/spec/support/models/sandbox/sandbox_message.rb index 665723b42..ca8bf7a19 100644 --- a/spec/support/models/sandbox/sandbox_message.rb +++ b/spec/support/models/sandbox/sandbox_message.rb @@ -1,3 +1,4 @@ +# rubocop:todo all class SandboxMessage include Mongoid::Document end diff --git a/spec/support/models/sandbox/sandbox_user.rb b/spec/support/models/sandbox/sandbox_user.rb index 6b3564d75..709cb2f39 100644 --- a/spec/support/models/sandbox/sandbox_user.rb +++ b/spec/support/models/sandbox/sandbox_user.rb @@ -1,3 +1,4 @@ +# rubocop:todo all class SandboxUser include Mongoid::Document end diff --git a/spec/support/models/sandbox/subdir/sandbox_comment.rb b/spec/support/models/sandbox/subdir/sandbox_comment.rb index e42ec56f0..7bc820e4f 100644 --- a/spec/support/models/sandbox/subdir/sandbox_comment.rb +++ b/spec/support/models/sandbox/subdir/sandbox_comment.rb @@ -1,3 +1,4 @@ +# rubocop:todo all class SandboxComment include Mongoid::Document end diff --git a/spec/support/models/sandwich.rb b/spec/support/models/sandwich.rb index c53ec2fa1..ac1581ab5 100644 --- a/spec/support/models/sandwich.rb +++ b/spec/support/models/sandwich.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Sandwich include Mongoid::Document diff --git a/spec/support/models/scheduler.rb b/spec/support/models/scheduler.rb index 264022380..278d4ea9b 100644 --- a/spec/support/models/scheduler.rb +++ b/spec/support/models/scheduler.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Scheduler include Mongoid::Document diff --git a/spec/support/models/school.rb b/spec/support/models/school.rb index 15185d16a..2957fa882 100644 --- a/spec/support/models/school.rb +++ b/spec/support/models/school.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class School include Mongoid::Document diff --git a/spec/support/models/scribe.rb b/spec/support/models/scribe.rb index b4aa57da4..070b42c35 100644 --- a/spec/support/models/scribe.rb +++ b/spec/support/models/scribe.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Scribe include Mongoid::Document diff --git a/spec/support/models/sealer.rb b/spec/support/models/sealer.rb index 556fdbed1..aa3e51cb4 100644 --- a/spec/support/models/sealer.rb +++ b/spec/support/models/sealer.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Sealer include Mongoid::Document diff --git a/spec/support/models/seat.rb b/spec/support/models/seat.rb index c1a016995..fdc7faa39 100644 --- a/spec/support/models/seat.rb +++ b/spec/support/models/seat.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Seat include Mongoid::Document diff --git a/spec/support/models/seo.rb b/spec/support/models/seo.rb index 158ba9d6d..51ba402cd 100644 --- a/spec/support/models/seo.rb +++ b/spec/support/models/seo.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Seo include Mongoid::Document diff --git a/spec/support/models/series.rb b/spec/support/models/series.rb index 72e8219b6..0db642d52 100644 --- a/spec/support/models/series.rb +++ b/spec/support/models/series.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Series include Mongoid::Document diff --git a/spec/support/models/server.rb b/spec/support/models/server.rb index 8ddef36b3..c98249567 100644 --- a/spec/support/models/server.rb +++ b/spec/support/models/server.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Server include Mongoid::Document diff --git a/spec/support/models/service.rb b/spec/support/models/service.rb index bc5e442d4..7f3202f30 100644 --- a/spec/support/models/service.rb +++ b/spec/support/models/service.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Service include Mongoid::Document diff --git a/spec/support/models/shape.rb b/spec/support/models/shape.rb index 3180be3c7..47206d522 100644 --- a/spec/support/models/shape.rb +++ b/spec/support/models/shape.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Shape include Mongoid::Document diff --git a/spec/support/models/shelf.rb b/spec/support/models/shelf.rb index 2ab8cb1c7..bacecaf49 100644 --- a/spec/support/models/shelf.rb +++ b/spec/support/models/shelf.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Shelf include Mongoid::Document diff --git a/spec/support/models/shield.rb b/spec/support/models/shield.rb index 69c289711..4bc59c738 100644 --- a/spec/support/models/shield.rb +++ b/spec/support/models/shield.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Shield include Mongoid::Document diff --git a/spec/support/models/shipment_address.rb b/spec/support/models/shipment_address.rb index 70245b2f3..42ac98bcc 100644 --- a/spec/support/models/shipment_address.rb +++ b/spec/support/models/shipment_address.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class ShipmentAddress < Address field :shipping_name, localize: true diff --git a/spec/support/models/shipping_container.rb b/spec/support/models/shipping_container.rb index f30b1d78d..54f8b241c 100644 --- a/spec/support/models/shipping_container.rb +++ b/spec/support/models/shipping_container.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class ShippingContainer include Mongoid::Document diff --git a/spec/support/models/shipping_pack.rb b/spec/support/models/shipping_pack.rb index 491e28bdb..fb3f4f3ea 100644 --- a/spec/support/models/shipping_pack.rb +++ b/spec/support/models/shipping_pack.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class ShippingPack < Pack belongs_to :subscription, counter_cache: true diff --git a/spec/support/models/shirt.rb b/spec/support/models/shirt.rb index 4314c95dd..ecd4f2680 100644 --- a/spec/support/models/shirt.rb +++ b/spec/support/models/shirt.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Shirt include Mongoid::Document diff --git a/spec/support/models/shop.rb b/spec/support/models/shop.rb index 48e7b07ce..2a48fa34d 100644 --- a/spec/support/models/shop.rb +++ b/spec/support/models/shop.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Shop include Mongoid::Document diff --git a/spec/support/models/short_agent.rb b/spec/support/models/short_agent.rb index e1d3191e7..b4ff7772e 100644 --- a/spec/support/models/short_agent.rb +++ b/spec/support/models/short_agent.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class ShortAgent include Mongoid::Document diff --git a/spec/support/models/short_quiz.rb b/spec/support/models/short_quiz.rb index e6c585167..43947880f 100644 --- a/spec/support/models/short_quiz.rb +++ b/spec/support/models/short_quiz.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class ShortQuiz include Mongoid::Document diff --git a/spec/support/models/simple.rb b/spec/support/models/simple.rb index d5e1fbf6b..c87a07c49 100644 --- a/spec/support/models/simple.rb +++ b/spec/support/models/simple.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Simple include Mongoid::Document diff --git a/spec/support/models/slave.rb b/spec/support/models/slave.rb index 7882a5e0a..88c1e1396 100644 --- a/spec/support/models/slave.rb +++ b/spec/support/models/slave.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Slave include Mongoid::Document diff --git a/spec/support/models/song.rb b/spec/support/models/song.rb index 7cfe51517..d7fdf8f22 100644 --- a/spec/support/models/song.rb +++ b/spec/support/models/song.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Song include Mongoid::Document diff --git a/spec/support/models/sound.rb b/spec/support/models/sound.rb index 1440ec148..2f9510dbc 100644 --- a/spec/support/models/sound.rb +++ b/spec/support/models/sound.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Sound include Mongoid::Document diff --git a/spec/support/models/spacer.rb b/spec/support/models/spacer.rb index c67acecd3..f724ab474 100644 --- a/spec/support/models/spacer.rb +++ b/spec/support/models/spacer.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Spacer include Mongoid::Document diff --git a/spec/support/models/square.rb b/spec/support/models/square.rb index 51adcd8b1..df8b61108 100644 --- a/spec/support/models/square.rb +++ b/spec/support/models/square.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Square < Shape field :width, type: Integer, default: 0 diff --git a/spec/support/models/staff.rb b/spec/support/models/staff.rb index c661b2695..f7bb70932 100644 --- a/spec/support/models/staff.rb +++ b/spec/support/models/staff.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Staff include Mongoid::Document diff --git a/spec/support/models/store_as_dup_test1.rb b/spec/support/models/store_as_dup_test1.rb index 9721c171c..8eaf3cc48 100644 --- a/spec/support/models/store_as_dup_test1.rb +++ b/spec/support/models/store_as_dup_test1.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class StoreAsDupTest1 include Mongoid::Document diff --git a/spec/support/models/store_as_dup_test2.rb b/spec/support/models/store_as_dup_test2.rb index 7d7c26e26..11ccb82c0 100644 --- a/spec/support/models/store_as_dup_test2.rb +++ b/spec/support/models/store_as_dup_test2.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class StoreAsDupTest2 include Mongoid::Document diff --git a/spec/support/models/store_as_dup_test3.rb b/spec/support/models/store_as_dup_test3.rb index ddb20b21d..879f7c459 100644 --- a/spec/support/models/store_as_dup_test3.rb +++ b/spec/support/models/store_as_dup_test3.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class StoreAsDupTest3 include Mongoid::Document diff --git a/spec/support/models/store_as_dup_test4.rb b/spec/support/models/store_as_dup_test4.rb index bcd8a0c01..24e7d85f5 100644 --- a/spec/support/models/store_as_dup_test4.rb +++ b/spec/support/models/store_as_dup_test4.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class StoreAsDupTest4 include Mongoid::Document diff --git a/spec/support/models/strategy.rb b/spec/support/models/strategy.rb index 1b6d5bfa3..c5dd03e54 100644 --- a/spec/support/models/strategy.rb +++ b/spec/support/models/strategy.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Strategy include Mongoid::Document diff --git a/spec/support/models/student.rb b/spec/support/models/student.rb index 27aad7bce..b47d33882 100644 --- a/spec/support/models/student.rb +++ b/spec/support/models/student.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Student include Mongoid::Document diff --git a/spec/support/models/sub_item.rb b/spec/support/models/sub_item.rb index 4a20b017e..a4180ade7 100644 --- a/spec/support/models/sub_item.rb +++ b/spec/support/models/sub_item.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class SubItem < Item embedded_in :parent diff --git a/spec/support/models/subscription.rb b/spec/support/models/subscription.rb index 6868ab636..ec7fe165b 100644 --- a/spec/support/models/subscription.rb +++ b/spec/support/models/subscription.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Subscription include Mongoid::Document diff --git a/spec/support/models/survey.rb b/spec/support/models/survey.rb index 1a900eb75..ac1194ab0 100644 --- a/spec/support/models/survey.rb +++ b/spec/support/models/survey.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Survey include Mongoid::Document diff --git a/spec/support/models/symptom.rb b/spec/support/models/symptom.rb index 68f392ff5..43d096db5 100644 --- a/spec/support/models/symptom.rb +++ b/spec/support/models/symptom.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Symptom include Mongoid::Document diff --git a/spec/support/models/system_role.rb b/spec/support/models/system_role.rb index e8dff057a..663b83f43 100644 --- a/spec/support/models/system_role.rb +++ b/spec/support/models/system_role.rb @@ -1,3 +1,4 @@ +# rubocop:todo all class SystemRole include Mongoid::Document diff --git a/spec/support/models/tag.rb b/spec/support/models/tag.rb index 8e25946fc..e9f81a968 100644 --- a/spec/support/models/tag.rb +++ b/spec/support/models/tag.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Tag include Mongoid::Document diff --git a/spec/support/models/target.rb b/spec/support/models/target.rb index 7c2e77ed3..7e05a3caa 100644 --- a/spec/support/models/target.rb +++ b/spec/support/models/target.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Target include Mongoid::Document diff --git a/spec/support/models/template.rb b/spec/support/models/template.rb index 4f2093298..0ed6545c3 100644 --- a/spec/support/models/template.rb +++ b/spec/support/models/template.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Template include Mongoid::Document diff --git a/spec/support/models/thing.rb b/spec/support/models/thing.rb index 114af73cb..f50753331 100644 --- a/spec/support/models/thing.rb +++ b/spec/support/models/thing.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Thing include Mongoid::Document diff --git a/spec/support/models/threadlocker.rb b/spec/support/models/threadlocker.rb index ee3d2bd57..1c70eef41 100644 --- a/spec/support/models/threadlocker.rb +++ b/spec/support/models/threadlocker.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Threadlocker include Mongoid::Document diff --git a/spec/support/models/title.rb b/spec/support/models/title.rb index bea0caf04..698861411 100644 --- a/spec/support/models/title.rb +++ b/spec/support/models/title.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Title include Mongoid::Document diff --git a/spec/support/models/tool.rb b/spec/support/models/tool.rb index e2e71ae54..5e22acd2f 100644 --- a/spec/support/models/tool.rb +++ b/spec/support/models/tool.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Tool include Mongoid::Document diff --git a/spec/support/models/topping.rb b/spec/support/models/topping.rb index d424adfd9..c9333b352 100644 --- a/spec/support/models/topping.rb +++ b/spec/support/models/topping.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Topping include Mongoid::Document diff --git a/spec/support/models/toy.rb b/spec/support/models/toy.rb index 281384771..72abd6cbe 100644 --- a/spec/support/models/toy.rb +++ b/spec/support/models/toy.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Toy include Mongoid::Document diff --git a/spec/support/models/track.rb b/spec/support/models/track.rb index dadf33b9c..26c487194 100644 --- a/spec/support/models/track.rb +++ b/spec/support/models/track.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Track include Mongoid::Document diff --git a/spec/support/models/translation.rb b/spec/support/models/translation.rb index 1c91348aa..c8c639ae2 100644 --- a/spec/support/models/translation.rb +++ b/spec/support/models/translation.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Translation include Mongoid::Document diff --git a/spec/support/models/tree.rb b/spec/support/models/tree.rb index 0cb8aea03..30720b6cf 100644 --- a/spec/support/models/tree.rb +++ b/spec/support/models/tree.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Tree include Mongoid::Document diff --git a/spec/support/models/truck.rb b/spec/support/models/truck.rb index 21382c631..26c789c7f 100644 --- a/spec/support/models/truck.rb +++ b/spec/support/models/truck.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Truck < Vehicle embeds_one :bed diff --git a/spec/support/models/updatable.rb b/spec/support/models/updatable.rb index 041926af5..3106b5894 100644 --- a/spec/support/models/updatable.rb +++ b/spec/support/models/updatable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Updatable include Mongoid::Document diff --git a/spec/support/models/user.rb b/spec/support/models/user.rb index fc831d057..307395f67 100644 --- a/spec/support/models/user.rb +++ b/spec/support/models/user.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class User include Mongoid::Document diff --git a/spec/support/models/user_account.rb b/spec/support/models/user_account.rb index 099710395..7d9a98613 100644 --- a/spec/support/models/user_account.rb +++ b/spec/support/models/user_account.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class UserAccount include Mongoid::Document diff --git a/spec/support/models/validation_callback.rb b/spec/support/models/validation_callback.rb index 32aa38ebe..fb4b3e472 100644 --- a/spec/support/models/validation_callback.rb +++ b/spec/support/models/validation_callback.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class ValidationCallback include Mongoid::Document diff --git a/spec/support/models/vehicle.rb b/spec/support/models/vehicle.rb index 4885c9ee4..55770794c 100644 --- a/spec/support/models/vehicle.rb +++ b/spec/support/models/vehicle.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Vehicle include Mongoid::Document diff --git a/spec/support/models/version.rb b/spec/support/models/version.rb index ccb4c1922..959caab96 100644 --- a/spec/support/models/version.rb +++ b/spec/support/models/version.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Version include Mongoid::Document diff --git a/spec/support/models/vertex.rb b/spec/support/models/vertex.rb index ff89c4b57..9a64a8b4b 100644 --- a/spec/support/models/vertex.rb +++ b/spec/support/models/vertex.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Vertex include Mongoid::Document diff --git a/spec/support/models/vet_visit.rb b/spec/support/models/vet_visit.rb index ec2ec13c7..aa8e52f48 100644 --- a/spec/support/models/vet_visit.rb +++ b/spec/support/models/vet_visit.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class VetVisit include Mongoid::Document diff --git a/spec/support/models/video.rb b/spec/support/models/video.rb index 0a6f37ba2..21e3ac2de 100644 --- a/spec/support/models/video.rb +++ b/spec/support/models/video.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Video include Mongoid::Document diff --git a/spec/support/models/video_game.rb b/spec/support/models/video_game.rb index c2fa6cd85..37aa87838 100644 --- a/spec/support/models/video_game.rb +++ b/spec/support/models/video_game.rb @@ -1,3 +1,4 @@ # frozen_string_literal: true +# rubocop:todo all class VideoGame < Game; end diff --git a/spec/support/models/washer.rb b/spec/support/models/washer.rb index d0d099678..08b03ea86 100644 --- a/spec/support/models/washer.rb +++ b/spec/support/models/washer.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Washer include Mongoid::Document diff --git a/spec/support/models/weapon.rb b/spec/support/models/weapon.rb index 25e34d168..243c445e2 100644 --- a/spec/support/models/weapon.rb +++ b/spec/support/models/weapon.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Weapon include Mongoid::Document diff --git a/spec/support/models/wiki_page.rb b/spec/support/models/wiki_page.rb index 6ab08fb10..0a54364fe 100644 --- a/spec/support/models/wiki_page.rb +++ b/spec/support/models/wiki_page.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class WikiPage include Mongoid::Document diff --git a/spec/support/models/word.rb b/spec/support/models/word.rb index 07a8ab47f..9bc159bae 100644 --- a/spec/support/models/word.rb +++ b/spec/support/models/word.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Word include Mongoid::Document diff --git a/spec/support/models/word_origin.rb b/spec/support/models/word_origin.rb index 87eb2935c..d9f23f0bc 100644 --- a/spec/support/models/word_origin.rb +++ b/spec/support/models/word_origin.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class WordOrigin include Mongoid::Document diff --git a/spec/support/models/writer.rb b/spec/support/models/writer.rb index 719829296..710e67a61 100644 --- a/spec/support/models/writer.rb +++ b/spec/support/models/writer.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all class Writer include Mongoid::Document diff --git a/spec/support/rails_mock.rb b/spec/support/rails_mock.rb index be0ac1a47..35860d540 100644 --- a/spec/support/rails_mock.rb +++ b/spec/support/rails_mock.rb @@ -1,3 +1,4 @@ +# rubocop:todo all # A simplistic mock object to stand in for Rails, instead of adding an # otherwise unnecessary dependency on Rails itself. diff --git a/spec/support/shared/time.rb b/spec/support/shared/time.rb index 3a8e079fe..3c98efe17 100644 --- a/spec/support/shared/time.rb +++ b/spec/support/shared/time.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all shared_context 'setting ActiveSupport time zone' do before do diff --git a/spec/support/sinatra_mock.rb b/spec/support/sinatra_mock.rb index 645bff72a..4021a0fc9 100644 --- a/spec/support/sinatra_mock.rb +++ b/spec/support/sinatra_mock.rb @@ -1,3 +1,4 @@ +# rubocop:todo all module Sinatra module Base extend self diff --git a/spec/support/spec_config.rb b/spec/support/spec_config.rb index 9d8307146..12ebcfc66 100644 --- a/spec/support/spec_config.rb +++ b/spec/support/spec_config.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# rubocop:todo all require 'singleton'