diff --git a/.rubocop.yml b/.rubocop.yml index f25d73fdf0965678da43faa23109f9ebaa2dbd52..8f5407c64c57835867338a03649650cf929d00df 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -620,3 +620,12 @@ Gitlab/NamespacedClass: - 'ee/elastic/**/*.rb' - 'scripts/**/*' - 'spec/migrations/**/*.rb' + +Lint/HashCompareByIdentity: + Enabled: true + +Lint/RedundantSafeNavigation: + Enabled: true + +Style/ClassEqualityComparison: + Enabled: true diff --git a/Gemfile b/Gemfile index 3273ba6dfd65b3122aa384192113ad4bc10e7e3c..4a89d5ced53a26ba0c0e657f0eab1901c2d63956 100644 --- a/Gemfile +++ b/Gemfile @@ -379,7 +379,7 @@ group :development, :test do gem 'spring', '~> 2.1.0' gem 'spring-commands-rspec', '~> 1.0.4' - gem 'gitlab-styles', '~> 6.0.0', require: false + gem 'gitlab-styles', '~> 6.1.0', require: false gem 'haml_lint', '~> 0.36.0', require: false gem 'bundler-audit', '~> 0.7.0.1', require: false diff --git a/Gemfile.lock b/Gemfile.lock index f1d9d106838f56b193842b3149740baf74c529b6..2da8e2a7dcf93f0209e026c520495f416d3a99e3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -88,7 +88,7 @@ GEM asciidoctor (~> 2.0) asciidoctor-plantuml (0.0.12) asciidoctor (>= 1.5.6, < 3.0.0) - ast (2.4.1) + ast (2.4.2) atlassian-jwt (0.2.0) jwt (~> 2.1.0) attr_encrypted (3.1.0) @@ -195,7 +195,7 @@ GEM concord (0.1.5) adamantium (~> 0.2.0) equalizer (~> 0.0.9) - concurrent-ruby (1.1.7) + concurrent-ruby (1.1.8) connection_pool (2.2.2) contracts (0.11.0) cork (0.3.0) @@ -463,8 +463,8 @@ GEM pry (~> 0.13.0) gitlab-sidekiq-fetcher (0.5.5) sidekiq (~> 5) - gitlab-styles (6.0.0) - rubocop (~> 0.91.1) + gitlab-styles (6.1.0) + rubocop (~> 0.91, >= 0.91.1) rubocop-gitlab-security (~> 0.1.1) rubocop-performance (~> 1.9.2) rubocop-rails (~> 2.9) @@ -608,7 +608,7 @@ GEM mime-types (~> 3.0) multi_xml (>= 0.5.2) httpclient (2.8.3) - i18n (1.8.7) + i18n (1.8.9) concurrent-ruby (~> 1.0) i18n_data (0.8.0) icalendar (2.4.1) @@ -1076,16 +1076,16 @@ GEM pg rails sqlite3 - rubocop (0.91.1) + rubocop (0.93.1) parallel (~> 1.10) - parser (>= 2.7.1.1) + parser (>= 2.7.1.5) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.7) + regexp_parser (>= 1.8) rexml - rubocop-ast (>= 0.4.0, < 1.0) + rubocop-ast (>= 0.6.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (0.8.0) + rubocop-ast (1.4.1) parser (>= 2.7.1.5) rubocop-gitlab-security (0.1.1) rubocop (>= 0.51) @@ -1422,7 +1422,7 @@ DEPENDENCIES gitlab-net-dns (~> 0.9.1) gitlab-pry-byebug gitlab-sidekiq-fetcher (= 0.5.5) - gitlab-styles (~> 6.0.0) + gitlab-styles (~> 6.1.0) gitlab_chronic_duration (~> 0.10.6.2) gitlab_omniauth-ldap (~> 2.1.1) gon (~> 6.2)