gitlab-org--gitlab-foss/rubocop/cop
Bob Van Landuyt 08c0a1b852 Reject ruby interpolation in externalized strings
When using ruby interpolation in externalized strings, they can't be
detected. Which means they will never be presented to be translated.

To mix variables into translations we need to use `sprintf`
instead.

Instead of:

    _("Hello #{subject}")

Use:

    _("Hello %{subject}) % { subject: 'world' }
2018-08-25 18:43:21 +02:00
..
gitlab Add a cop for FinderMethods 2018-06-20 18:13:13 +02:00
migration Add rubocop check for add_reference to require index. 2018-08-08 23:30:48 +02:00
rspec Introduce a new FactoriesInMigrationSpecs cop 2018-04-06 17:41:52 +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
destroy_all.rb Blacklist the use of "destroy_all" 2018-08-16 17:29:33 +02:00
include_sidekiq_worker.rb Use gitlab-styles 2017-12-22 08:34:44 -06:00
line_break_around_conditional_block.rb Reject ruby interpolation in externalized strings 2018-08-25 18:43:21 +02:00
project_path_helper.rb Use gitlab-styles 2017-12-22 08:34:44 -06:00
ruby_interpolation_in_translation.rb Reject ruby interpolation in externalized strings 2018-08-25 18:43:21 +02:00
sidekiq_options_queue.rb Use gitlab-styles 2017-12-22 08:34:44 -06:00