gitlab-org--gitlab-foss/spec/rubocop/cop
Yorick Peterse 9722158c15
Fix detecting nested EE constants in RuboCop
The InjectEnterpriseEditionModule cop would not detect certain nested EE
constants such as `EE::Foo::Bar::Baz`. This could result in it not
enforcing `prepend` being placed on the last line. This commit fixes
this by just performing a string match on the line, instead of relying
on AST matching.
2019-01-16 16:48:18 +01:00
..
code_reuse
gitlab
migration Fix ActiveRecord::Migration deprecations 2018-12-12 16:38:40 +01:00
qa Add a new QA::ElementWithPattern cop 2018-10-15 14:28:03 +02:00
rspec
avoid_break_from_strong_memoize_spec.rb
avoid_return_from_blocks_spec.rb
avoid_route_redirect_leading_slash_spec.rb
destroy_all_spec.rb
group_public_or_visible_to_user_spec.rb
include_sidekiq_worker_spec.rb
inject_enterprise_edition_module_spec.rb Fix detecting nested EE constants in RuboCop 2019-01-16 16:48:18 +01:00
line_break_around_conditional_block_spec.rb
prefer_class_methods_over_module_spec.rb
project_path_helper_spec.rb
ruby_interpolation_in_translation_spec.rb
safe_params_spec.rb Add cop prohibiting params argument in url_for 2018-11-22 10:08:18 +01:00
sidekiq_options_queue_spec.rb