From 402c22634cad3a140881f198fa23f2036f2f42f0 Mon Sep 17 00:00:00 2001 From: lujanfernaud Date: Wed, 23 May 2018 14:37:13 +0100 Subject: [PATCH] Add guard-rubycritic gem --- Gemfile | 1 + Gemfile.lock | 35 +++++++++++++++++++++++++++++++++++ Guardfile | 5 +++++ 3 files changed, 41 insertions(+) diff --git a/Gemfile b/Gemfile index bcbbffb9..58af03fc 100644 --- a/Gemfile +++ b/Gemfile @@ -79,6 +79,7 @@ group :development do gem 'binding_of_caller', '~> 0.8.0' gem 'bullet', '~> 5.7', '>= 5.7.5' gem 'guard-livereload', '~> 2.5', '>= 2.5.2' + gem 'guard-rubycritic', '~> 2.9', '>= 2.9.3' gem 'rails-erd', '~> 1.5', '>= 1.5.2', require: false gem 'web-console', '>= 3.3.0' gem 'listen', '>= 3.0.5', '< 3.2' diff --git a/Gemfile.lock b/Gemfile.lock index 778b6aa1..89c92f35 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -93,6 +93,8 @@ GEM cloudinary (1.9.1) aws_cf_signer rest-client + codeclimate-engine-rb (0.4.1) + virtus (~> 1.0) coderay (1.1.2) coercible (1.0.0) descendants_tracker (~> 0.0.1) @@ -132,6 +134,7 @@ GEM http_parser.rb (~> 0.6.0) equalizer (0.0.11) erubi (1.7.1) + erubis (2.7.0) eventmachine (1.2.5) execjs (2.7.0) faker (1.8.7) @@ -139,6 +142,15 @@ GEM ffi (1.9.23) figaro (1.1.1) thor (~> 0.14) + flay (2.12.0) + erubis (~> 2.7.0) + path_expander (~> 1.0) + ruby_parser (~> 3.0) + sexp_processor (~> 4.0) + flog (4.6.2) + path_expander (~> 1.0) + ruby_parser (~> 3.1, > 3.1.0) + sexp_processor (~> 4.8) formatador (0.2.5) friendly_id (5.2.4) activerecord (>= 4.0.0) @@ -164,6 +176,9 @@ GEM guard-minitest (2.4.6) guard-compat (~> 1.2) minitest (>= 3.0) + guard-rubycritic (2.9.3) + guard (~> 2.6) + rubycritic (>= 2.9.3) hashdiff (0.3.7) http-cookie (1.0.3) domain_name (~> 0.5) @@ -223,6 +238,7 @@ GEM parallel (1.12.1) parser (2.5.1.0) ast (~> 2.4.0) + path_expander (1.0.3) pg (0.21.0) pg_search (2.1.2) activerecord (>= 4.2) @@ -282,6 +298,10 @@ GEM rb-fsevent (0.10.3) rb-inotify (0.9.10) ffi (>= 0.5.0, < 2) + reek (4.8.1) + codeclimate-engine-rb (~> 0.4.0) + parser (>= 2.5.0.0, < 2.6) + rainbow (>= 2.0, < 4.0) responders (2.4.0) actionpack (>= 4.2.0, < 5.3) railties (>= 4.2.0, < 5.3) @@ -304,6 +324,18 @@ GEM ruby-graphviz (1.2.3) ruby-progressbar (1.9.0) ruby_dep (1.5.0) + ruby_parser (3.11.0) + sexp_processor (~> 4.9) + rubycritic (3.4.0) + flay (~> 2.8) + flog (~> 4.4) + launchy (= 2.4.3) + parser (~> 2.5.0) + rainbow (~> 3.0) + reek (~> 4.4) + ruby_parser (~> 3.8) + tty-which (~> 0.3.0) + virtus (~> 1.0) safe_yaml (1.0.4) sass (3.5.6) sass-listen (~> 4.0.0) @@ -316,6 +348,7 @@ GEM sprockets (>= 2.8, < 4.0) sprockets-rails (>= 2.0, < 4.0) tilt (>= 1.1, < 3) + sexp_processor (4.11.0) shellany (0.0.1) simplecov (0.16.1) docile (~> 1.1) @@ -345,6 +378,7 @@ GEM thor (0.20.0) thread_safe (0.3.6) tilt (2.0.8) + tty-which (0.3.0) turbolinks (5.1.1) turbolinks-source (~> 5.1) turbolinks-source (5.1.0) @@ -409,6 +443,7 @@ DEPENDENCIES guard (= 2.14.0) guard-livereload (~> 2.5, >= 2.5.2) guard-minitest (= 2.4.6) + guard-rubycritic (~> 2.9, >= 2.9.3) inline_svg (~> 1.3, >= 1.3.1) jbuilder (~> 2.5) jquery-rails (= 4.3.1) diff --git a/Guardfile b/Guardfile index 55316446..0c06fe2e 100644 --- a/Guardfile +++ b/Guardfile @@ -67,3 +67,8 @@ guard 'livereload' do watch(%r{app/helpers/.+\.rb}) watch(%r{config/locales/.+\.yml}) end + +guard "rubycritic" do + watch(%r{^app/(.+)\.rb$}) + watch(%r{^lib/(.+)\.rb$}) +end