-
Notifications
You must be signed in to change notification settings - Fork 5
/
.rubocop.yml
93 lines (71 loc) · 1.52 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
require:
- rubocop-rails
- rubocop-rspec
AllCops:
TargetRubyVersion: 3.0
NewCops: enable
Exclude:
- 'bin/bundle'
- 'bin/rails'
- 'bin/rake'
- 'bin/setup'
- 'bin/update'
- 'db/schema.rb'
- 'db/migrate/*'
- 'log/**/*'
- 'vendor/bundle/**/*'
- 'public/**/*'
- 'tmp/**/*'
- 'node_modules/**/*'
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Layout/LineLength:
Max: 130
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Exclude:
- 'config/environments/development.rb'
- 'config/environments/production.rb'
- 'config/routes.rb'
- 'spec/**/*.rb'
Metrics/MethodLength:
Enabled: false
Naming/VariableName:
EnforcedStyle: snake_case
Enabled: true
Rails/HelperInstanceVariable:
Enabled: false
Style/BlockDelimiters:
FunctionalMethods:
- let
- let!
- subject
Exclude:
- "spec/**/*_spec.rb"
Style/Documentation:
Enabled: false
Style/AsciiComments:
Enabled: false
Style/PercentLiteralDelimiters:
Enabled: false
# NOTE: 商品情報の属性値の取得はdigで統一したい
Style/SingleArgumentDig:
Exclude:
- 'app/models/product.rb'
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Rails/UniqueValidationWithoutIndex:
Enabled: false
Rails/EnvironmentVariableAccess:
AllowReads: true
RSpec/ContextWording:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/LetSetup:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false