-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
141 lines (119 loc) · 4.14 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
129
130
131
132
133
134
135
136
137
138
139
140
141
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2016-12-04 10:48:23 +0200 using RuboCop version 0.46.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 17
Metrics/AbcSize:
Max: 35
# Offense count: 3
# Configuration parameters: CountComments.
Metrics/BlockLength:
Max: 30
# Offense count: 6
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 182
# Offense count: 4
Metrics/CyclomaticComplexity:
Max: 9
# Offense count: 189
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 236
# Offense count: 25
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 44
# Offense count: 1
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 7
# Offense count: 3
Metrics/PerceivedComplexity:
Max: 11
# Offense count: 1
# Cop supports --auto-correct.
Style/AlignArray:
Exclude:
- 'test/rails_routes_analyzer/route_analysis_test.rb'
# Offense count: 12
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'lib/rails_routes_analyzer/action_analysis.rb'
- 'lib/rails_routes_analyzer/gem_manager.rb'
- 'lib/rails_routes_analyzer/parameter_handler.rb'
- 'lib/rails_routes_analyzer/rails_routes_analyzer.rb'
- 'lib/rails_routes_analyzer/railtie.rb'
- 'lib/rails_routes_analyzer/route_analysis.rb'
- 'lib/rails_routes_analyzer/route_file_annotator.rb'
- 'lib/rails_routes_analyzer/route_issue/base.rb'
- 'lib/rails_routes_analyzer/route_issue/no_action.rb'
- 'lib/rails_routes_analyzer/route_issue/no_controller.rb'
- 'lib/rails_routes_analyzer/route_issue/resources.rb'
# Offense count: 15
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
Style/EmptyLinesAroundClassBody:
Enabled: false
# Offense count: 29
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
Style/EmptyLinesAroundModuleBody:
Enabled: false
# Offense count: 9
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: compact, expanded
Style/EmptyMethod:
Enabled: false
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: SupportedStyles, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
Style/IndentArray:
EnforcedStyle: consistent
# Offense count: 1
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: module_function, extend_self
Style/ModuleFunction:
EnforcedStyle: extend_self
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral:
EnforcedStyle: mixed
# Offense count: 337
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Enabled: false
# Offense count: 10
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
# SupportedStyles: comma, consistent_comma, no_comma
Style/TrailingCommaInArguments:
Enabled: false
# Offense count: 13
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
# SupportedStyles: comma, consistent_comma, no_comma
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: consistent_comma
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: snake_case, normalcase, non_integer
Style/VariableNumber:
Enabled: false
AllCops:
Exclude:
- 'test/dummy/routes*.rb'
- 'test/dummy/tmp/*.rb'