forked from scenic-views/scenic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
129 lines (122 loc) · 2.91 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
AllCops:
TargetRubyVersion: 2.3.0
Exclude:
- "tmp/**/*"
- "bin/*"
- "spec/dummy/**/*"
Bundler/OrderedGems:
Enabled: false
Gemspec/OrderedDependencies:
Enabled: false
Layout/AlignParameters:
Enabled: true
EnforcedStyle: with_fixed_indentation
Layout/ConditionPosition:
Enabled: false
Layout/DotPosition:
EnforcedStyle: leading
Layout/ExtraSpacing:
Enabled: true
Layout/IndentAssignment:
Enabled: False
Layout/MultilineOperationIndentation:
Enabled: true
EnforcedStyle: indented
Layout/MultilineMethodCallIndentation:
Enabled: true
EnforcedStyle: indented
Lint/AmbiguousOperator:
Enabled: true
Lint/AmbiguousRegexpLiteral:
Enabled: true
Lint/DuplicatedKey:
Enabled: true
Metrics/ClassLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
CountComments: true # count full line comments?
Max: 25
ExcludedMethods: []
Exclude:
- "spec/**/*"
- "*.gemspec"
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/LineLength:
Max: 80
Metrics/MethodLength:
Enabled: false
Security/Eval:
Enabled: true
Exclude:
- "spec/scenic/schema_dumper_spec.rb"
Style/BlockDelimiters:
Enabled: false
Style/CollectionMethods:
Enabled: true
PreferredMethods:
find: find
inject: reduce
collect: map
find_all: select
Style/ConditionalAssignment:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: true
Exclude:
- "spec/**/*"
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Description: >-
Add the frozen_string_literal comment to the top of files
to help transition from Ruby 2.3.0 to Ruby 3.0.
Enabled: false
Style/GuardClause:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/Lambda:
Enabled: false
Style/NumericLiterals:
Enabled: false
Style/OneLineConditional:
Enabled: false
Style/PercentLiteralDelimiters:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Enabled: true
Style/TrailingCommaInArguments:
Description: 'Checks for trailing comma in argument lists.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
EnforcedStyleForMultiline: comma
SupportedStylesForMultiline:
- comma
- consistent_comma
- no_comma
Enabled: true
Style/TrailingCommaInArrayLiteral:
Description: 'Checks for trailing comma in array literals.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
EnforcedStyleForMultiline: comma
SupportedStylesForMultiline:
- comma
- consistent_comma
- no_comma
Enabled: true
Style/TrailingCommaInHashLiteral:
Description: 'Checks for trailing comma in hash literals.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
EnforcedStyleForMultiline: comma
SupportedStylesForMultiline:
- comma
- consistent_comma
- no_comma
Enabled: true
Style/WordArray:
Enabled: false