Skip to content

Commit

Permalink
small improvements procfile and rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
damienlethiec committed Apr 5, 2018
1 parent 9d5652f commit bf378fd
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 5 deletions.
1 change: 0 additions & 1 deletion .rubocop
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
--rails
--extra-details
--auto-correct
29 changes: 28 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,38 @@ AllCops:
- bin/*
- node_modules/**/*

Style/Documentation:
Enabled: false

Style/DoubleNegation:
Enabled: false

Style/ClassAndModuleChildren:
Enabled: false

Style/StructInheritance:
Exclude:
- app/policies/*

Rails/InverseOf:
Enabled: false

Metrics/BlockLength:
Exclude:
- config/environments/development.rb
- Guardfile
- lib/tasks/auto_annotate_models.rake
- config/initializers/simple_form_bootstrap.rb
- lib/tasks/*
- app/admin/*

Layout/AlignHash:
Enabled: False

GlobalVars:
AllowedVariables:
- $redis

Rails/Output:
Exclude:
- db/seeds.rb

2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
release: bundle exec rails db:migrate
web: bundle exec puma -C config/puma.rb
web: bin/rails server
3 changes: 2 additions & 1 deletion Procfile.dev
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
web: bundle exec puma -C config/puma.rb
web: bin/rails server
assets: bin/webpack-dev-server
2 changes: 1 addition & 1 deletion template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def apply_template!
add_template_repository_to_source_path

# temporary fix bootsnap bug
comment_lines 'config/boot.rb', /bootsnap/
# comment_lines 'config/boot.rb', /bootsnap/

template "Gemfile.tt", force: true
template 'README.md.tt', force: true
Expand Down

0 comments on commit bf378fd

Please sign in to comment.