-
Notifications
You must be signed in to change notification settings - Fork 51
/
.rubocop.yml
51 lines (40 loc) · 1023 Bytes
/
.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
inherit_from: .rubocop_todo.yml
require:
- rubocop-minitest
- rubocop-packaging
- rubocop-performance
- rubocop-rake
- rubocop-thread_safety
AllCops:
TargetRubyVersion: 3.1
NewCops: enable
SuggestExtensions: false
Exclude:
- 'vendor/**/*'
- 'ext/**/*'
- 'lib/couchbase/protostellar/generated/**/*'
# Copied from Rails v6.1.0-38-gbf165e3e19
- 'test/active_support/behaviors/*.rb'
- 'test/active_support/behaviors.rb'
Metrics/ParameterLists:
Max: 30
Layout/LineLength:
Max: 140
Metrics/BlockNesting:
Max: 4
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
EnforcedStyleForEmptyBraces: no_space
Style/Lambda:
EnforcedStyle: lambda
Style/SymbolArray:
EnforcedStyle: brackets
Style/RegexpLiteral:
EnforcedStyle: mixed
AllowInnerSlashes: true
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent