Skip to content

Instantly share code, notes, and snippets.

@davidbenton
Last active June 25, 2018 03:49
Show Gist options
  • Save davidbenton/6e007d2870cff7f7f9df85054dc08885 to your computer and use it in GitHub Desktop.
Save davidbenton/6e007d2870cff7f7f9df85054dc08885 to your computer and use it in GitHub Desktop.
Rails Project Defaults
AllCops:
Include:
- Rakefile
- config.ru
- lib/**/*.rake
Exclude:
- 'db/schema.rb'
Layout/AlignHash:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Metrics/ClassLength:
Enabled: false
Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Max: 20
Style/FrozenStringLiteralComment:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/SymbolArray:
Enabled: true
gem 'haml-rails'
gem_group :development, :test do
gem 'awesome_print'
gem 'factory_bot_rails'
gem 'rspec-rails', '~> 3.7'
gem 'shoulda-matchers'
end
gem_group :development do
gem 'guard'
gem 'guard-rspec'
gem 'guard-rubocop'
gem 'web-console'
end
gem_group :test do
gem 'cucumber-rails', require: false
gem 'database_cleaner'
end
after_bundle do
run 'rm -rf test'
run 'spring stop'
generate 'rspec:install'
generate 'cucumber:install'
run 'bundle exec guard init'
run 'bundle exec guard init rubocop'
get 'https://gist.githubusercontent.com/davidbenton/6e007d2870cff7f7f9df85054dc08885/raw/.rubocop.yml', '.rubocop.yml'
run 'bundle exec rubocop --auto-gen-config'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment