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:
authorBrian Neel <brian@gitlab.com>2017-06-15 01:17:44 +0300
committerBrian Neel <brian@gitlab.com>2017-06-15 01:17:44 +0300
commitd6c746040bee5f327f6fe46f938cad1b93b6d64a (patch)
tree2f5ee941fd057afa3785b56289798042ec968b18
parentb75b3bf3a69c10252f5c6c6ba5e4493e6051cb72 (diff)
Add rubocop-gitlab-security gem
-rw-r--r--.rubocop.yml7
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.lock3
3 files changed, 11 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 4537e710dd4..754023afdb4 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -1,5 +1,6 @@
require:
- rubocop-rspec
+ - rubocop-gitlab-security
- ./rubocop/rubocop
inherit_from: .rubocop_todo.yml
@@ -1078,3 +1079,9 @@ RSpec/SubjectStub:
# Prefer using verifying doubles over normal doubles.
RSpec/VerifiedDoubles:
Enabled: false
+
+# GitlabSecurity ##############################################################
+GitlabSecurity/PublicSend:
+ Enabled: true
+ Exclude:
+ - 'spec/**/*'
diff --git a/Gemfile b/Gemfile
index 2c200f2fa7a..8296b50db5a 100644
--- a/Gemfile
+++ b/Gemfile
@@ -332,6 +332,7 @@ group :development, :test do
gem 'spring-commands-spinach', '~> 1.1.0'
gem 'rubocop', '~> 0.47.1', require: false
+ gem 'rubocop-gitlab-security', '~> 0.0.2', require: false
gem 'rubocop-rspec', '~> 1.15.0', require: false
gem 'scss_lint', '~> 0.47.0', require: false
gem 'haml_lint', '~> 0.21.0', require: false
diff --git a/Gemfile.lock b/Gemfile.lock
index 6755c75e331..dfd2556c733 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -731,6 +731,8 @@ GEM
rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
+ rubocop-gitlab-security (0.0.2)
+ rubocop (>= 0.47.0)
rubocop-rspec (1.15.0)
rubocop (>= 0.42.0)
ruby-fogbugz (0.2.1)
@@ -1070,6 +1072,7 @@ DEPENDENCIES
rspec-set (~> 0.1.3)
rspec_profiling (~> 0.0.5)
rubocop (~> 0.47.1)
+ rubocop-gitlab-security (~> 0.0.2)
rubocop-rspec (~> 1.15.0)
ruby-fogbugz (~> 0.2.1)
ruby-prof (~> 0.16.2)