• Yorick Peterse's avatar
    Fix detecting nested EE constants in RuboCop · 9722158c
    Yorick Peterse authored
    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.
    9722158c
Name
Last commit
Last update
..
code_reuse Loading commit data...
gitlab Loading commit data...
migration Loading commit data...
qa Loading commit data...
rspec Loading commit data...
avoid_break_from_strong_memoize_spec.rb Loading commit data...
avoid_return_from_blocks_spec.rb Loading commit data...
avoid_route_redirect_leading_slash_spec.rb Loading commit data...
destroy_all_spec.rb Loading commit data...
group_public_or_visible_to_user_spec.rb Loading commit data...
include_sidekiq_worker_spec.rb Loading commit data...
inject_enterprise_edition_module_spec.rb Loading commit data...
line_break_around_conditional_block_spec.rb Loading commit data...
prefer_class_methods_over_module_spec.rb Loading commit data...
project_path_helper_spec.rb Loading commit data...
ruby_interpolation_in_translation_spec.rb Loading commit data...
safe_params_spec.rb Loading commit data...
sidekiq_options_queue_spec.rb Loading commit data...