From 18855c5e3de802258b75017509c472ce40ac8199 Mon Sep 17 00:00:00 2001 From: Alain ANDRE Date: Mon, 26 Sep 2022 16:02:12 +0200 Subject: [PATCH] Add rubocop --- .rubocop.yml | 3 +++ Gemfile | 1 + Gemfile.lock | 30 ++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 .rubocop.yml diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000..a862a83 --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,3 @@ +inherit_gem: + mapotempo_rubocop: + - rubocop-default.yml diff --git a/Gemfile b/Gemfile index 7e1bb2f..3e208b2 100644 --- a/Gemfile +++ b/Gemfile @@ -32,6 +32,7 @@ end group :development, :test do gem 'byebug' + gem 'mapotempo_rubocop', :git => 'https://github.com/Mapotempo/mapotempo_rubocop.git' end gem 'dotenv' diff --git a/Gemfile.lock b/Gemfile.lock index f960737..bac6444 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,12 @@ +GIT + remote: https://github.com/Mapotempo/mapotempo_rubocop.git + revision: d17258c53f75511d3cca64fe0872ab6af4537a99 + specs: + mapotempo_rubocop (0.1.0) + rubocop (~> 0.81.0) + rubocop-minitest (~> 0.8.1) + rubocop-performance (~> 1.5.2) + GEM remote: https://rubygems.org/ specs: @@ -22,6 +31,7 @@ GEM addressable (2.8.0) public_suffix (>= 2.0.2, < 5.0) ansi (1.5.0) + ast (2.4.2) border_patrol (0.2.1) nokogiri (>= 1.4.3.1) builder (3.2.4) @@ -76,6 +86,7 @@ GEM domain_name (~> 0.5) i18n (1.8.9) concurrent-ruby (~> 1.0) + jaro_winkler (1.5.4) loofah (2.9.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) @@ -101,6 +112,9 @@ GEM nokogiri (1.11.1) mini_portile2 (~> 2.5.0) racc (~> 1.4) + parallel (1.22.1) + parser (3.1.2.1) + ast (~> 2.4.1) polylines (0.4.0) public_suffix (4.0.6) puma (5.5.1) @@ -122,6 +136,7 @@ GEM nokogiri (>= 1.6) rails-html-sanitizer (1.3.0) loofah (~> 2.3) + rainbow (3.1.1) rake (13.0.3) redis (4.2.5) redis-activesupport (5.2.0) @@ -134,6 +149,19 @@ GEM http-cookie (>= 1.0.2, < 2.0) mime-types (>= 1.16, < 4.0) netrc (~> 0.8) + rexml (3.2.5) + rubocop (0.81.0) + jaro_winkler (~> 1.5.1) + parallel (~> 1.10) + parser (>= 2.7.0.1) + rainbow (>= 2.2.2, < 4.0) + rexml + 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) ruby-progressbar (1.11.0) ruby2_keywords (0.0.4) simplecov (0.21.2) @@ -148,6 +176,7 @@ GEM unf (0.1.4) unf_ext unf_ext (0.0.7.7) + unicode-display_width (1.8.0) PLATFORMS ruby @@ -166,6 +195,7 @@ DEPENDENCIES grape-swagger-entity grape_logging i18n + mapotempo_rubocop! minitest minitest-focus minitest-reporters