Skip to content

Instantly share code, notes, and snippets.

@quanon
Created April 20, 2018 08:43
Show Gist options
  • Save quanon/15a1ae6ea0716526499ffebbff530b02 to your computer and use it in GitHub Desktop.
Save quanon/15a1ae6ea0716526499ffebbff530b02 to your computer and use it in GitHub Desktop.
inherit_from: .rubocop_todo.yml
AllCops:
Exclude:
- 'vendor/**/*'
- 'node_modules/**/*'
- 'bin/**/*'
- 'config/**/*'
- 'db/**/*'
- 'frontend/node_modules/**/*'
TargetRubyVersion: 2.5
# (参考) .rubocop.yml設定例
# http://qiita.com/hi-nakamura/items/fb841be12566e7f579f0
# 日本語のコメントを許可する。
Style/AsciiComments:
Enabled: false
# スラッシュの数に関わらず %r 記法を利用することを許可する。
Style/RegexpLiteral:
Enabled: false
# メソッドチェインの途中で改行するときのドットの位置は前方にする。
Layout/DotPosition:
EnforcedStyle: leading
# インスタンス変数名とアクセサのメソッド名が統一されている場合のみ
# アクセサと判断してチェックする。
Style/TrivialAccessors:
ExactNameMatch: true
# class にコメントを残さなくてもよい。
Documentation:
Enabled: false
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
Layout/MultilineOperationIndentation:
Enabled: false
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Style/FrozenStringLiteralComment:
Enabled: false
# Gemfile での gem の並び順を限定しない。
Bundler/OrderedGems:
Enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment