diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 00000000..43a09811 --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,5 @@ +AllCops: + TargetRubyVersion: 2.3 + +Rails: + Enabled: true diff --git a/.ruby-version b/.ruby-version index 378bc559..ac2cdeba 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -ruby-2.1.3 +2.1.3 diff --git a/Gemfile b/Gemfile index 5840a752..4dafd315 100644 --- a/Gemfile +++ b/Gemfile @@ -59,4 +59,5 @@ group :development, :test do gem 'pry-rails' gem 'quiet_assets' gem 'tunemygc' + gem 'rubocop' end diff --git a/Gemfile.lock b/Gemfile.lock index f62a561a..c385bd81 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -40,6 +40,7 @@ GEM tzinfo (~> 1.1) addressable (2.3.8) arel (6.0.3) + ast (2.3.0) aws-sdk (1.66.0) aws-sdk-v1 (= 1.66.0) aws-sdk-v1 (1.66.0) @@ -151,8 +152,11 @@ GEM cocaine (~> 0.5.5) mime-types mimemagic (= 0.3.0) + parser (2.3.1.2) + ast (~> 2.2) pg (0.18.4) pkg-config (1.1.7) + powerpack (0.1.1) pry (0.10.3) coderay (~> 1.1.0) method_source (~> 0.8.1) @@ -202,6 +206,7 @@ GEM activesupport (= 4.2.6) rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) + rainbow (2.1.0) rake (11.2.2) redis (3.3.0) responders (2.2.0) @@ -223,6 +228,13 @@ GEM rspec-mocks (~> 3.4.0) rspec-support (~> 3.4.0) rspec-support (3.4.1) + rubocop (0.41.1) + parser (>= 2.3.1.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.22) sass-rails (5.0.4) railties (>= 4.0.0, < 5.0) @@ -256,6 +268,7 @@ GEM thread_safe (~> 0.1) uglifier (3.0.0) execjs (>= 0.3.0, < 3) + unicode-display_width (1.1.0) uservoice-ruby (0.0.11) ezcrypto (>= 0.7.2) json (>= 1.7.5) @@ -303,6 +316,7 @@ DEPENDENCIES rails_12factor redis rspec-rails + rubocop sass-rails shoulda-matchers simplecov