Last active
June 25, 2018 03:49
-
-
Save davidbenton/6e007d2870cff7f7f9df85054dc08885 to your computer and use it in GitHub Desktop.
Rails Project Defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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