Improve rubocop (#28)

Add good settings for Rubocop from DNSimple blog :
https://blog.dnsimple.com/2018/06/quick-tips-for-practical-rubocop-workflow/

Add Rubocop command in INSTALL.md
This commit is contained in:
Jérémy Lecour 2018-06-14 22:17:11 +02:00 committed by GitHub
parent c2f561f2ea
commit 2530264708
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,7 @@
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
ExtraDetails: false
TargetRubyVersion: 2.5
Exclude:
- 'node_modules/**/*'
@ -29,7 +32,6 @@ Metrics/BlockLength:
Exclude:
- lib/tasks/**/*
AsciiComments:
Enabled: false

View File

@ -72,6 +72,8 @@ This will also generate a code coverage report in `coverage/index.html`.
With `# bundle exec guard` your test suite is run completely a first time, then once for each file you change and save. Take a look at https://guardgem.org for more information.
To execute Rubocop (the style-guide linter for Ruby), run `# bundle exec rubocop`.
## Local execution
If you want to start the Rails application manually, with a simple Puma configuration, you have to execute `# bundle exec rails server`. You will be able to open http://127.0.0.1:3000 in your browser and see Chexpire in action.