-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path.rubocop.yml
98 lines (71 loc) · 1.6 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
94
95
96
97
98
inherit_mode:
merge:
- Exclude
AllCops:
TargetRubyVersion: 3.2
DisplayCopNames: true
Exclude:
- bin/*
- tmp/**/*
- db/schema.rb
- vendor/*/**
SuggestExtensions:
rubocop-capybara: true
rubocop-factory_bot: true
rubocop-rails: true
rubocop-rspec: true
rubocop-rspec_rails: false # set to true and add `require: rubocop-rspec` to enable (https://stackoverflow.com/a/74034344)
Layout/EmptyLinesAroundClassBody:
Enabled: false
Layout/HashAlignment:
Enabled: true
Lint/ConstantDefinitionInBlock:
Enabled: false
Metrics/ClassLength:
Enabled: false
Naming/VariableNumber:
Enabled: false
Naming/MemoizedInstanceVariableName:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/Documentation:
Enabled: false
Style/GuardClause:
Enabled: false
Style/HashSyntax:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/NumericLiterals:
Enabled: false
Style/RedundantFreeze:
Enabled: false
Style/RedundantSelf:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/SymbolArray:
Enabled: false
Style/WordArray:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Metrics/CyclomaticComplexity:
Max: 20
Metrics/MethodLength:
Max: 60
Metrics/BlockLength:
Enabled: false
Metrics/AbcSize:
Max: 50
Metrics/PerceivedComplexity:
Max: 20
Layout/LineLength:
Severity: warning
Max: 250
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
# Global variable is the only way to subscribe for more tickers in the websocket connection between Rails <-> Polygon
Style/GlobalVars:
Enabled: false