add rubocop, 4849 offenses

This commit is contained in:
Peter Bhat Harkins 2018-03-01 22:30:57 -06:00
parent bb65fddd2a
commit 5851346765
4 changed files with 53 additions and 0 deletions

33
.rubocop.yml Normal file
View File

@ -0,0 +1,33 @@
# Project setup:
Rails:
Enabled: true
AllCops:
Include:
- '**/Rakefile'
- '**/config.ru'
Exclude:
- 'db/**/*'
# Cop configuration:
# Bundler
# Gemspec
# Layout
Layout/AccessModifierIndentation:
EnforcedStyle: outdent
# Lint
# Metrics
# Naming
# Performance
# Rails
# Security
# Style

View File

@ -38,6 +38,7 @@ gem "mail"
group :test, :development do
gem "rspec-rails", "~> 3.6"
gem "machinist"
gem "rubocop"
gem "sqlite3"
gem "faker"
end

View File

@ -41,6 +41,7 @@ GEM
minitest (~> 5.1)
tzinfo (~> 1.1)
arel (8.0.0)
ast (2.4.0)
bcrypt (3.1.11)
builder (3.2.3)
chunky_png (1.3.8)
@ -82,6 +83,10 @@ GEM
nokogiri (1.8.1)
mini_portile2 (~> 2.3.0)
oauth (0.5.3)
parallel (1.12.1)
parser (2.5.0.2)
ast (~> 2.4.0)
powerpack (0.1.1)
rack (2.0.3)
rack-test (0.6.3)
rack (>= 1.0)
@ -108,6 +113,7 @@ GEM
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rainbow (3.0.0)
raindrops (0.18.0)
rake (12.0.0)
rotp (3.3.0)
@ -130,8 +136,16 @@ GEM
rspec-mocks (~> 3.6.0)
rspec-support (~> 3.6.0)
rspec-support (3.6.0)
rubocop (0.52.1)
parallel (~> 1.10)
parser (>= 2.4.0.2, < 3.0)
powerpack (~> 0.1)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-enum (0.7.1)
i18n
ruby-progressbar (1.9.0)
scenic (1.4.0)
activerecord (>= 4.0.0)
railties (>= 4.0.0)
@ -151,6 +165,7 @@ GEM
thread_safe (~> 0.1)
uglifier (3.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (1.3.0)
unicorn (5.3.0)
kgio (~> 2.6)
raindrops (~> 0.7)
@ -180,6 +195,7 @@ DEPENDENCIES
rotp
rqrcode
rspec-rails (~> 3.6)
rubocop
scenic
scenic-mysql
sqlite3

View File

@ -2,5 +2,8 @@
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
require 'rubocop/rake_task'
RuboCop::RakeTask.new
Lobsters::Application.load_tasks