Slide 70
Slide 70 text
$ rails new example && cd $_
$ rails new example && cd $_
$ cat Gemfile | grep rubocop
# Omakase Ruby styling [https://github.com/rails/rubocop
gem "rubocop-rails-omakase", require: false
3BJMTͰͷSBJMTOFX
$ rails new example && cd $_
$ cat Gemfile | grep rubocop
# Omakase Ruby styling [https://github.com/rails/rubocop
gem "rubocop-rails-omakase", require: false
$ cat .rubocop.yml
# Omakase Ruby styling for Rails
inherit_gem: { rubocop-rails-omakase: rubocop.yml }
# Overwrite or add rules to create your own house style
#
# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
# Layout/SpaceInsideArrayLiteralBrackets:
# Enabled: false