-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy path.rubocop.yml
More file actions
57 lines (44 loc) · 1.11 KB
/
.rubocop.yml
File metadata and controls
57 lines (44 loc) · 1.11 KB
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
inherit_from: .rubocop_todo.yml
plugins:
- rubocop-minitest
- rubocop-packaging
- rubocop-performance
- rubocop-rake
- rubocop-thread_safety
AllCops:
TargetRubyVersion: 3.2
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
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Style/OneClassPerFile:
Enabled: false