-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrubocop.yml
91 lines (69 loc) · 2.03 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
---
AllCops:
DisabledByDefault: false
DisplayCopNames: true
TargetRubyVersion: 2.7
Exclude:
- 'coverage/**/*'
- 'vendor/**/*'
- 'db/schema.rb'
- 'scratch.rb'
Lint/AmbiguousBlockAssociation:
Exclude:
- 'spec/**/*'
Style/BlockDelimiters:
EnforcedStyle: semantic
Style/FrozenStringLiteralComment:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/SymbolArray:
Enabled: false
Style/TrailingCommaInArrayLiteral:
Enabled: false
Style/TrailingCommaInHashLiteral:
Enabled: false
Style/TrailingUnderscoreVariable:
Enabled: false
# The following cops were added to RuboCop, but are not configured.
# For more information: https://docs.rubocop.org/en/latest/versioning/
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/SpaceAroundMethodCallOperator:
Description: Checks method call operators to not have spaces around them.
Enabled: true
Lint/DeprecatedOpenSSLConstant:
Enabled: true
Lint/MixedRegexpCaptureTypes:
Enabled: true
Lint/RaiseException:
Description: >-
Checks for `raise` or `fail` statements which are raising
`Exception` class.
Enabled: true
Lint/StructNewOverride:
Description: >-
'Disallow overriding the `Struct` built-in methods via
`Struct.new`.'
Enabled: true
Style/ExponentialNotation:
Description: >-
When using exponential notation, favor a mantissa between 1
(inclusive) and 10 (exclusive).
Enabled: true
Style/HashEachMethods:
Description: 'Use Hash#each_key and Hash#each_value.'
Enabled: true
Style/HashTransformKeys:
Description: 'Prefer `transform_keys` over `each_with_object` and `map`.'
Enabled: true
Style/HashTransformValues:
Description: 'Prefer `transform_values` over `each_with_object` and `map`.'
Enabled: true
Style/RedundantRegexpCharacterClass:
Enabled: true
Style/RedundantRegexpEscape:
Enabled: true
Style/SlicingWithRange:
Description: 'Checks array slicing is done with endless ranges when suitable.'
Enabled: true