gitlab-org--gitlab-foss/rubocop/cop
Kamil Trzciński 650f40865e Forbid the use of #reload and prefer #reset
The `#reload` makes to load all objects into memory,
and the main purpose of `#reload` is to drop the association cache.

The `#reset` seems to solve exactly that case.
2019-04-15 13:05:14 +02:00
..
code_reuse Whitelist none method from ActiveRecord::Querying 2018-10-31 15:46:36 -03:00
gitlab Added FromUnion to easily select from a UNION 2018-09-17 12:39:43 +02:00
migration Properly handle ee migration specs 2019-03-28 05:48:53 +08:00
qa Add a new QA::ElementWithPattern cop 2018-10-15 14:28:03 +02:00
rspec Introduce a new FactoriesInMigrationSpecs cop 2018-04-06 17:41:52 +02:00
active_record_association_reload.rb Forbid the use of #reload and prefer #reset 2019-04-15 13:05:14 +02:00
avoid_break_from_strong_memoize.rb Resolve "Make a Rubocop that forbids returning from a block" 2018-04-18 09:19:40 +00:00
avoid_return_from_blocks.rb Resolve "Make a Rubocop that forbids returning from a block" 2018-04-18 09:19:40 +00:00
avoid_route_redirect_leading_slash.rb Fix leading slash in redirects and add cop 2018-09-21 14:10:20 +00:00
destroy_all.rb Blacklist the use of "destroy_all" 2018-08-16 17:29:33 +02:00
group_public_or_visible_to_user.rb Applies the CE backport of EE#657 2018-09-24 12:02:01 +01:00
include_sidekiq_worker.rb Use gitlab-styles 2017-12-22 08:34:44 -06:00
inject_enterprise_edition_module.rb Fix detecting nested EE constants in RuboCop 2019-01-16 16:48:18 +01:00
line_break_around_conditional_block.rb Fix LineBreakAroundConditionalBlock cop for a conditional after rescue 2018-09-05 09:34:11 -07:00
prefer_class_methods_over_module.rb Minor renames for clarity 2018-08-29 16:56:34 +02:00
project_path_helper.rb Use gitlab-styles 2017-12-22 08:34:44 -06:00
ruby_interpolation_in_translation.rb Remove unused constant 2018-09-19 15:01:27 +02:00
safe_params.rb Add cop prohibiting params argument in url_for 2018-11-22 10:08:18 +01:00
sidekiq_options_queue.rb Use gitlab-styles 2017-12-22 08:34:44 -06:00