diff --git a/Gemfile b/Gemfile index 0f62f53..35e3fb8 100644 --- a/Gemfile +++ b/Gemfile @@ -19,3 +19,6 @@ gem "kettle-soup-cover", "~> 1.0", ">= 1.0.2" gem "rubocop-lts", "~> 10.1", ">= 10.1.1" gem "rubocop-packaging", "~> 0.5", ">= 0.5.2" gem "rubocop-rspec", "~> 2.10" + +# Quality +gem "reek" diff --git a/Gemfile.lock b/Gemfile.lock index 59a89ad..5ab8feb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -100,6 +100,33 @@ GEM diffy (3.4.2) docile (1.4.0) drb (2.2.1) + dry-configurable (1.1.0) + dry-core (~> 1.0, < 2) + zeitwerk (~> 2.6) + dry-core (1.0.1) + concurrent-ruby (~> 1.0) + zeitwerk (~> 2.6) + dry-inflector (1.0.0) + dry-initializer (3.1.1) + dry-logic (1.5.0) + concurrent-ruby (~> 1.0) + dry-core (~> 1.0, < 2) + zeitwerk (~> 2.6) + dry-schema (1.13.3) + concurrent-ruby (~> 1.0) + dry-configurable (~> 1.0, >= 1.0.1) + dry-core (~> 1.0, < 2) + dry-initializer (~> 3.0) + dry-logic (>= 1.4, < 2) + dry-types (>= 1.7, < 2) + zeitwerk (~> 2.6) + dry-types (1.7.2) + bigdecimal (~> 3.0) + concurrent-ruby (~> 1.0) + dry-core (~> 1.0) + dry-inflector (~> 1.0) + dry-logic (~> 1.4) + zeitwerk (~> 2.6) erubi (1.12.0) globalid (1.2.1) activesupport (>= 6.1) @@ -203,6 +230,11 @@ GEM rake (13.1.0) rdoc (6.6.3.1) psych (>= 4.0.0) + reek (6.3.0) + dry-schema (~> 1.13.0) + parser (~> 3.3.0) + rainbow (>= 2.0, < 4.0) + rexml (~> 3.1) regexp_parser (2.9.0) reline (0.4.3) io-console (~> 0.5) @@ -338,6 +370,7 @@ DEPENDENCIES rails (>= 3.0, <= 8) rake (>= 12) rdoc (>= 3.12) + reek rspec (>= 3) rspec-block_is_expected (~> 1.0, >= 1.0.5) rubocop-lts (~> 10.1, >= 10.1.1) diff --git a/Rakefile b/Rakefile index 69fd7fe..06702c0 100644 --- a/Rakefile +++ b/Rakefile @@ -19,17 +19,7 @@ begin t.source_files = "lib/**/*.rb" end rescue LoadError - warn("Failed to load reek") -end - -begin - require "roodi" - require "roodi_task" - RoodiTask.new do |t| - t.verbose = false - end -rescue LoadError - warn("Failed to load roodi") + warn("reek is not installed") end require_relative "lib/sanitize_email/version" @@ -50,4 +40,4 @@ rescue LoadError puts "Linting not available" end -task default: %i[spec rubocop_gradual] +task default: %i[spec reek rubocop_gradual]