gitlab-org--gitlab-foss/spec/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_spec.rb Resolve "Make a Rubocop that forbids returning from a block" 2018-04-18 09:19:40 +00:00
avoid_return_from_blocks_spec.rb Resolve "Make a Rubocop that forbids returning from a block" 2018-04-18 09:19:40 +00:00
destroy_all_spec.rb Whitelist existing destroy_all offenses 2018-08-16 17:29:37 +02:00
include_sidekiq_worker_spec.rb Use gitlab-styles 2017-12-22 08:34:44 -06:00
line_break_around_conditional_block_spec.rb Allow comment after if/unless clause 2018-05-29 10:38:59 +02:00
project_path_helper_spec.rb Use gitlab-styles 2017-12-22 08:34:44 -06:00
ruby_interpolation_in_translation_spec.rb Reject ruby interpolation in externalized strings 2018-08-25 18:43:21 +02:00
sidekiq_options_queue_spec.rb Use gitlab-styles 2017-12-22 08:34:44 -06:00