From 503d22c180e6faf33ae0e00ef2be54078ad1cd38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gw=C3=A9na=C3=ABl=20Rault?= Date: Fri, 2 Aug 2024 09:51:10 +0200 Subject: [PATCH] Use rubocop policy --- Gemfile | 2 +- Gemfile.lock | 54 ++++++++++++++++++++++++++++++++-------------------- 2 files changed, 34 insertions(+), 22 deletions(-) diff --git a/Gemfile b/Gemfile index ff4eebe..d6b31fb 100644 --- a/Gemfile +++ b/Gemfile @@ -32,7 +32,7 @@ end group :development, :test do gem 'byebug' - gem 'mapotempo_rubocop', :git => 'https://github.com/Mapotempo/mapotempo_rubocop.git' + gem 'rubocop-policy', git: 'https://github.com/cartoway/rubocop-policy' end gem 'dotenv' diff --git a/Gemfile.lock b/Gemfile.lock index 4fffac8..6205f05 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,11 +1,11 @@ GIT - remote: https://github.com/Mapotempo/mapotempo_rubocop.git - revision: d17258c53f75511d3cca64fe0872ab6af4537a99 + remote: https://github.com/cartoway/rubocop-policy + revision: 209bde9a8088d4204b22829b2a9150860c16dcac specs: - mapotempo_rubocop (0.1.0) - rubocop (~> 0.81.0) - rubocop-minitest (~> 0.8.1) - rubocop-performance (~> 1.5.2) + rubocop-policy (0.1.0) + rubocop (~> 1.56.1) + rubocop-minitest (~> 0.31.0) + rubocop-performance (~> 1.19.0) GEM remote: https://rubygems.org/ @@ -32,6 +32,7 @@ GEM public_suffix (>= 2.0.2, < 6.0) ansi (1.5.0) ast (2.4.2) + base64 (0.1.1) border_patrol (0.2.1) nokogiri (>= 1.4.3.1) builder (3.2.4) @@ -83,7 +84,8 @@ GEM domain_name (~> 0.5) i18n (1.14.1) concurrent-ruby (~> 1.0) - jaro_winkler (1.5.6) + json (2.7.2) + language_server-protocol (3.17.0.3) loofah (2.21.3) crass (~> 1.0.2) nokogiri (>= 1.12.0) @@ -107,8 +109,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 polylines (0.4.0) @@ -142,24 +144,33 @@ GEM redis-store (>= 1.3, < 2) redis-store (1.10.0) redis (>= 4, < 6) + 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 (0.81.0) - jaro_winkler (~> 1.5.1) + rexml (3.3.4) + strscan + rubocop (1.56.4) + base64 (~> 0.1.1) + json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 2.7.0.1) + parser (>= 3.2.2.3) rainbow (>= 2.2.2, < 4.0) - rexml + regexp_parser (>= 1.8, < 3.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.28.1, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 2.0) - rubocop-minitest (0.8.1) - rubocop (>= 0.74) - rubocop-performance (1.5.2) - rubocop (>= 0.71.0) + unicode-display_width (>= 2.4.0, < 3.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) simplecov (0.22.0) @@ -168,12 +179,13 @@ GEM simplecov_json_formatter (~> 0.1) simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) + strscan (3.1.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) unf (0.1.4) unf_ext unf_ext (0.0.8.2) - unicode-display_width (1.8.0) + unicode-display_width (2.5.0) zeitwerk (2.6.11) PLATFORMS @@ -194,7 +206,6 @@ DEPENDENCIES grape-swagger-entity grape_logging i18n - mapotempo_rubocop! minitest minitest-focus minitest-reporters @@ -210,6 +221,7 @@ DEPENDENCIES redis-activesupport redis-store rest-client + rubocop-policy! simplecov RUBY VERSION