From a22063f376172da1e78abb3df32616f64e34d06c Mon Sep 17 00:00:00 2001 From: tknzk Date: Wed, 29 Sep 2021 15:31:07 +0900 Subject: [PATCH 1/2] enable NewCops --- .rubocop.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.rubocop.yml b/.rubocop.yml index 31728b87..8a0a1209 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,6 +3,7 @@ AllCops: - 'jpostcode.gemspec' - 'jpostcode-data/**/*' - 'vendor/bundle/**/*' + NewCops: enable Style/AsciiComments: Enabled: false From bb72600988f8175deece57ba45be0e9ca3737e53 Mon Sep 17 00:00:00 2001 From: tknzk Date: Wed, 29 Sep 2021 15:31:20 +0900 Subject: [PATCH 2/2] add rubocop-rake, rubocop-rspec --- Gemfile.lock | 6 ++++++ jpostcode.gemspec | 2 ++ 2 files changed, 8 insertions(+) diff --git a/Gemfile.lock b/Gemfile.lock index b0f4a3c8..987368fc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -85,6 +85,10 @@ GEM rubocop-performance (1.11.5) rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) + rubocop-rake (0.6.0) + rubocop (~> 1.0) + rubocop-rspec (2.5.0) + rubocop (~> 1.19) ruby-progressbar (1.11.0) shellany (0.0.1) thor (1.1.0) @@ -106,6 +110,8 @@ DEPENDENCIES rspec rubocop rubocop-performance + rubocop-rake + rubocop-rspec BUNDLED WITH 2.2.26 diff --git a/jpostcode.gemspec b/jpostcode.gemspec index 63a1dd0a..89203ff4 100644 --- a/jpostcode.gemspec +++ b/jpostcode.gemspec @@ -38,6 +38,8 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'pry' spec.add_development_dependency 'pry-byebug' spec.add_development_dependency 'rubocop' + spec.add_development_dependency 'rubocop-rake' + spec.add_development_dependency 'rubocop-rspec' spec.add_development_dependency 'rubocop-performance' spec.add_development_dependency 'rake', '~> 13' spec.add_development_dependency 'rspec'