From b7c54a265c512c6c1d7add4e99cd43d19025e720 Mon Sep 17 00:00:00 2001 From: Marcelo Oliveira Date: Tue, 23 May 2017 17:22:13 -0300 Subject: [PATCH] Add RuboCop at Gemfile Signed-off-by: Marcelo Oliveira --- Gemfile | 3 +++ Gemfile.lock | 17 ++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index e2a648b0..7b90bbe8 100644 --- a/Gemfile +++ b/Gemfile @@ -67,6 +67,9 @@ gem 'http_accept_language' # Routes for JS files gem 'js-routes', '~> 1.1.0' +# RuboCop static code analyzer +gem 'rubocop', '~> 0.48.1', require: false + group :test do # Easier test writing gem "shoulda-matchers", '~> 2.8.0' diff --git a/Gemfile.lock b/Gemfile.lock index 0aba83b9..5cc17fb1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -37,6 +37,7 @@ GEM thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) arel (6.0.3) + ast (2.3.0) bcrypt (3.1.10) better_errors (2.1.1) coderay (>= 1.0.0) @@ -210,12 +211,15 @@ GEM mini_portile (~> 0.6.0) ntlm-http (0.1.1) orm_adapter (0.5.0) + parser (2.4.0.0) + ast (~> 2.2) pg (0.18.3) poltergeist (1.7.0) capybara (~> 2.1) cliver (~> 0.3.1) multi_json (~> 1.0) websocket-driver (>= 0.2.0) + powerpack (0.1.1) rack (1.6.4) rack-test (0.6.3) rack (>= 1.0) @@ -246,6 +250,8 @@ GEM activesupport (= 4.2.4) rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) + rainbow (2.2.2) + rake rake (10.4.2) rdoc (4.2.0) ref (2.0.0) @@ -268,6 +274,13 @@ GEM rspec-mocks (~> 3.3.0) rspec-support (~> 3.3.0) rspec-support (3.3.0) + rubocop (0.48.1) + parser (>= 2.3.3.1, < 3.0) + powerpack (~> 0.1) + rainbow (>= 1.99.1, < 3.0) + ruby-progressbar (~> 1.7) + unicode-display_width (~> 1.0, >= 1.0.1) + ruby-progressbar (1.8.1) sass (3.4.18) sass-rails (5.0.4) railties (>= 4.0.0, < 5.0) @@ -320,6 +333,7 @@ GEM unf (0.1.4) unf_ext unf_ext (0.0.7.1) + unicode-display_width (1.2.1) warden (1.2.3) rack (>= 1.0) web-console (2.0.0) @@ -375,6 +389,7 @@ DEPENDENCIES rails-html-sanitizer (~> 1.0) railsstrap (~> 3.3.4) rspec-rails (~> 3.3.2) + rubocop (~> 0.48.1) sass-rails (~> 5.0.0) sdoc (~> 0.4.0) shoulda-matchers (~> 2.8.0) @@ -390,4 +405,4 @@ DEPENDENCIES web-console (~> 2.0.0) BUNDLED WITH - 1.11.2 + 1.14.6