-
-
Notifications
You must be signed in to change notification settings - Fork 624
Expand file tree
/
Copy path.rubocop.yml
More file actions
108 lines (80 loc) · 1.94 KB
/
.rubocop.yml
File metadata and controls
108 lines (80 loc) · 1.94 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
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
99
100
101
102
103
104
105
106
107
108
inherit_gem:
rubocop-lts: config/rubygem_rspec.yml
inherit_from:
- .rubocop_rspec.yml
plugins: rubocop-on-rbs
RBS:
Enabled: true
# This tells RuboCop to add the exclusions in this file
# to the default exclusions (and those from other inherited files),
# rather than overwriting them.
inherit_mode:
merge:
- Exclude
AllCops:
DisplayCopNames: true # Display the name of the failing cops
Exclude:
- 'bin/*'
- 'gemfiles/vendor/**/*'
- 'vendor/**/*'
- '**/.irbrc'
Layout/IndentationConsistency:
Exclude: ['*.md']
Metrics/BlockLength:
Enabled: false
Gemspec/RequiredRubyVersion:
Enabled: false
Metrics/BlockNesting:
Max: 2
Layout/LineLength:
Enabled: false
Metrics/ParameterLists:
Max: 4
Layout/AccessModifierIndentation:
EnforcedStyle: outdent
Layout/DotPosition:
EnforcedStyle: trailing
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Lint/UnusedBlockArgument:
Exclude:
- 'spec/**/*.rb'
- 'gemfiles/vendor/**/*'
- 'vendor/**/*'
- '**/.irbrc'
# Test if we can turn this back on after upgrading rubocop-md.
# It is still an open issue, so not expecting it to be fixed.
# See: https://github.com/rubocop/rubocop-md/issues/28
Layout/InitialIndentation:
Enabled: false
Style/ClassVars:
Enabled: false
Style/CollectionMethods:
PreferredMethods:
map: 'collect'
reduce: 'inject'
find: 'detect'
find_all: 'select'
Style/Documentation:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/EmptyMethod:
EnforcedStyle: expanded
Style/Encoding:
Enabled: false
# Does not work with older rubies
#Style/MapToHash:
# Enabled: false
# Does not work with older rubies
#Style/RedundantBegin:
# Enabled: false
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
Gemspec/DependencyVersion:
Enabled: false
Lint/LiteralInInterpolation:
Exclude:
- 'spec/**/*.rb'