-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
73 lines (57 loc) · 1.42 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
require:
- rubocop-rails
AllCops:
TargetRubyVersion: 2.7
NewCops: enable # rubocopの新機能をactiveにする
Exclude:
- "assets/**/*"
- "bin/**/*"
- "db/schema.rb"
- "log/**/*"
- "node_modules/**/*"
- "tmp/**/*"
- "vendor/**/*"
inherit_from:
- config/rubocop/rubocop.yml
- config/rubocop/rails.yml
- config/rubocop/rspec.yml
# 日本語のコメントを許可
Style/AsciiComments:
Enabled: false
# ドキュメントの無い public class を許可
Style/Documentation:
Enabled: false
# frozen_string_literal の指定強制を解除
Style/FrozenStringLiteralComment:
Enabled: false
# 1行の最大
Layout/LineLength:
Max: 170
# (お好みで設定)文字列はダブルクォートに統一
Style/StringLiterals:
EnforcedStyle: double_quotes
# (お好みで設定)%w, %i を使用強制を解除(使用しても使用しなくてもOKにする)
Style/WordArray:
Enabled: false
Style/SymbolArray:
Enabled: false
# コメントアウト可能
Layout/CommentIndentation:
Enabled: false
# 最大ネスト
RSpec/NestedGroups:
Max: 10
# 最大expect数
RSpec/MultipleExpectations:
Enabled: false
# 環境変数の読み込み設定
Rails/EnvironmentVariableAccess:
AllowReads: true
# 同じ文言の許可
RSpec/ExampleLength:
Enabled: false
Rails/BulkChangeTable:
Enabled: false
# 同じ文言のcontextを許可
RSpec/RepeatedExampleGroupBody:
Enabled: false