Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bennett <lbennett@gitlab.com>2019-01-28 21:07:08 +0300
committerLuke Bennett <lbennett@gitlab.com>2019-01-28 21:07:08 +0300
commitb5f089f2b7100dffb1a346e95022f88e6ff06415 (patch)
tree38facae5f7be8d710e8a2a9afdc4fb6fbea5186e
parentc243b154abf5c29ba35fd2fab2ca3bc010fdc324 (diff)
Added rubocop-i18n to lint untrasnslated strings
-rw-r--r--.rubocop.yml6
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.lock3
3 files changed, 10 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index bcff67ded8c..48147c2654c 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -6,6 +6,7 @@ inherit_from: .rubocop_todo.yml
require:
- ./rubocop/rubocop
- rubocop-rspec
+ - rubocop-i18n
AllCops:
TargetRailsVersion: 5.0
@@ -22,6 +23,11 @@ AllCops:
- 'plugins/**/*'
CacheRootDirectory: tmp
+GetText:
+ Enabled: true
+RailsI18n:
+ Enabled: false
+
# This cop checks whether some constant value isn't a
# mutable literal (e.g. array or hash).
Style/MutableConstant:
diff --git a/Gemfile b/Gemfile
index b3eeb3ec0ec..f4e402723e6 100644
--- a/Gemfile
+++ b/Gemfile
@@ -283,6 +283,7 @@ gem 'rails-i18n', '~> 5.1'
gem 'gettext_i18n_rails', '~> 1.8.0'
gem 'gettext_i18n_rails_js', '~> 1.3'
gem 'gettext', '~> 3.2.2', require: false, group: :development
+gem 'rubocop-i18n', '~> 2.0'
gem 'batch-loader', '~> 1.2.2'
diff --git a/Gemfile.lock b/Gemfile.lock
index 419a6831924..b76c00df7a9 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -769,6 +769,8 @@ GEM
unicode-display_width (~> 1.0, >= 1.0.1)
rubocop-gitlab-security (0.1.1)
rubocop (>= 0.51)
+ rubocop-i18n (2.0.0)
+ rubocop (~> 0.51)
rubocop-rspec (1.22.2)
rubocop (>= 0.52.1)
ruby-enum (0.7.2)
@@ -1132,6 +1134,7 @@ DEPENDENCIES
rspec_junit_formatter
rspec_profiling (~> 0.0.5)
rubocop (~> 0.54.0)
+ rubocop-i18n (~> 2.0)
rubocop-rspec (~> 1.22.1)
ruby-fogbugz (~> 0.2.1)
ruby-prof (~> 0.17.0)