forked from renatolond/mastodon-twitter-poster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
79 lines (58 loc) · 1.67 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
require: rubocop-performance
AllCops:
TargetRubyVersion: 2.6
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
# to ignore them, so only the ones explicitly set in this file are enabled.
Exclude:
- '**/templates/**/*'
- '**/vendor/**/*'
- '**/vendor/**/.*'
- '**/node_modules/**/*'
# Additional exclude files by rubocop-rails_config
- 'db/migrate/**/*.rb'
- 'db/*.rb'
# Align `end` with the matching keyword or starting expression except for
# assignments, where it should be aligned with the LHS.
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
# Method definitions after `private` or `protected` isolated calls need one
# extra level of indentation.
Layout/IndentationConsistency:
EnforcedStyle: indented_internal_methods
Style/FrozenStringLiteralComment:
EnforcedStyle: always
# Check quotes usage according to lint rule below.
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/RedundantReturn:
AllowMultipleReturnValues: true
Style/Semicolon:
AllowAsExpressionSeparator: true
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Lint/DeprecatedOpenSSLConstant:
Enabled: true
Lint/MixedRegexpCaptureTypes:
Enabled: true
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Style/ExponentialNotation:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/RedundantRegexpCharacterClass:
Enabled: true
Style/RedundantRegexpEscape:
Enabled: true
Style/SlicingWithRange:
Enabled: true
Layout/LineLength:
Enabled: false