From 22bee6b5c324bfd5de24d96f8c57723b81dfe500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gw=C3=A9na=C3=ABl=20Rault?= Date: Fri, 2 Aug 2024 09:47:31 +0200 Subject: [PATCH] Setup rubocop policy --- Gemfile | 2 +- Gemfile.lock | 32 +++++++++++++++++++++++--------- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/Gemfile b/Gemfile index 15385e9..ffa5721 100644 --- a/Gemfile +++ b/Gemfile @@ -41,6 +41,6 @@ end group :development, :test do gem 'byebug' - gem 'rubocop' + gem 'rubocop-policy', git: 'https://github.com/cartoway/rubocop-policy' gem 'redis', '< 5' # redis-store is buggy with redis 5 https://github.com/redis-store/redis-store/issues/358 end diff --git a/Gemfile.lock b/Gemfile.lock index 26ca318..a7e4a3f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,12 @@ +GIT + remote: https://github.com/cartoway/rubocop-policy + revision: 209bde9a8088d4204b22829b2a9150860c16dcac + specs: + rubocop-policy (0.1.0) + rubocop (~> 1.56.1) + rubocop-minitest (~> 0.31.0) + rubocop-performance (~> 1.19.0) + GEM remote: https://rubygems.org/ specs: @@ -79,7 +88,7 @@ GEM domain_name (~> 0.5) i18n (1.14.1) concurrent-ruby (~> 1.0) - json (2.6.3) + json (2.7.2) language_server-protocol (3.17.0.3) loofah (2.21.3) crass (~> 1.0.2) @@ -105,8 +114,8 @@ GEM nio4r (2.5.9) nokogiri (1.15.4-x86_64-linux) racc (~> 1.4) - parallel (1.23.0) - parser (3.2.2.3) + parallel (1.25.1) + parser (3.3.4.0) ast (~> 2.4.1) racc puma (6.3.1) @@ -145,14 +154,14 @@ GEM redis-store (>= 1.3, < 2) redis-store (1.10.0) redis (>= 4, < 6) - regexp_parser (2.8.1) + regexp_parser (2.9.2) rest-client (2.1.0) http-accept (>= 1.7.0, < 2.0) http-cookie (>= 1.0.2, < 2.0) mime-types (>= 1.16, < 4.0) netrc (~> 0.8) rexml (3.2.6) - rubocop (1.56.3) + rubocop (1.56.4) base64 (~> 0.1.1) json (~> 2.3) language_server-protocol (>= 3.17.0) @@ -164,8 +173,13 @@ GEM rubocop-ast (>= 1.28.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.29.0) - parser (>= 3.2.1.0) + rubocop-ast (1.31.3) + parser (>= 3.3.1.0) + rubocop-minitest (0.31.1) + rubocop (>= 1.39, < 2.0) + rubocop-performance (1.19.1) + rubocop (>= 1.7.0, < 2.0) + rubocop-ast (>= 0.4.0) ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) sentry-rails (5.18.2) @@ -189,7 +203,7 @@ GEM unf (0.1.4) unf_ext unf_ext (0.0.8.2) - unicode-display_width (2.4.2) + unicode-display_width (2.5.0) zeitwerk (2.6.11) PLATFORMS @@ -222,7 +236,7 @@ DEPENDENCIES redis-activesupport rest-client rexml - rubocop + rubocop-policy! sentry-rails sentry-ruby simplecov