solargraph 0.56.2 → 0.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/linting.yml +125 -0
- data/.github/workflows/plugins.yml +148 -6
- data/.github/workflows/rspec.yml +39 -4
- data/.github/workflows/typecheck.yml +5 -2
- data/.gitignore +5 -0
- data/.overcommit.yml +72 -0
- data/.rspec +1 -0
- data/.rubocop.yml +66 -0
- data/.rubocop_todo.yml +2627 -0
- data/.yardopts +1 -0
- data/CHANGELOG.md +42 -0
- data/README.md +8 -4
- data/Rakefile +125 -13
- data/lib/solargraph/api_map/cache.rb +3 -2
- data/lib/solargraph/api_map/constants.rb +218 -0
- data/lib/solargraph/api_map/index.rb +20 -26
- data/lib/solargraph/api_map/source_to_yard.rb +10 -4
- data/lib/solargraph/api_map/store.rb +126 -18
- data/lib/solargraph/api_map.rb +212 -234
- data/lib/solargraph/bench.rb +1 -0
- data/lib/solargraph/complex_type/type_methods.rb +1 -0
- data/lib/solargraph/complex_type/unique_type.rb +7 -7
- data/lib/solargraph/complex_type.rb +5 -1
- data/lib/solargraph/convention/active_support_concern.rb +111 -0
- data/lib/solargraph/convention/base.rb +17 -0
- data/lib/solargraph/convention/data_definition/data_assignment_node.rb +1 -0
- data/lib/solargraph/convention/data_definition/data_definition_node.rb +3 -1
- data/lib/solargraph/convention/data_definition.rb +2 -1
- data/lib/solargraph/convention/gemspec.rb +1 -1
- data/lib/solargraph/convention/struct_definition/struct_assignment_node.rb +1 -0
- data/lib/solargraph/convention/struct_definition/struct_definition_node.rb +3 -1
- data/lib/solargraph/convention/struct_definition.rb +36 -13
- data/lib/solargraph/convention.rb +31 -2
- data/lib/solargraph/diagnostics/rubocop.rb +6 -1
- data/lib/solargraph/diagnostics/rubocop_helpers.rb +1 -1
- data/lib/solargraph/doc_map.rb +40 -12
- data/lib/solargraph/environ.rb +9 -2
- data/lib/solargraph/gem_pins.rb +17 -11
- data/lib/solargraph/language_server/host/dispatch.rb +2 -0
- data/lib/solargraph/language_server/host/message_worker.rb +3 -0
- data/lib/solargraph/language_server/host.rb +2 -1
- data/lib/solargraph/language_server/message/base.rb +2 -1
- data/lib/solargraph/language_server/message/extended/check_gem_version.rb +1 -1
- data/lib/solargraph/language_server/message/text_document/definition.rb +2 -0
- data/lib/solargraph/language_server/message/text_document/formatting.rb +16 -2
- data/lib/solargraph/language_server/message/text_document/type_definition.rb +1 -0
- data/lib/solargraph/language_server/message/workspace/did_change_workspace_folders.rb +2 -0
- data/lib/solargraph/language_server/progress.rb +8 -0
- data/lib/solargraph/language_server/request.rb +1 -0
- data/lib/solargraph/library.rb +8 -15
- data/lib/solargraph/location.rb +2 -0
- data/lib/solargraph/logging.rb +11 -2
- data/lib/solargraph/page.rb +4 -0
- data/lib/solargraph/parser/comment_ripper.rb +8 -1
- data/lib/solargraph/parser/flow_sensitive_typing.rb +32 -4
- data/lib/solargraph/parser/node_methods.rb +2 -2
- data/lib/solargraph/parser/node_processor/base.rb +1 -1
- data/lib/solargraph/parser/node_processor.rb +6 -2
- data/lib/solargraph/parser/parser_gem/class_methods.rb +1 -1
- data/lib/solargraph/parser/parser_gem/flawed_builder.rb +1 -0
- data/lib/solargraph/parser/parser_gem/node_chainer.rb +3 -1
- data/lib/solargraph/parser/parser_gem/node_methods.rb +4 -2
- data/lib/solargraph/parser/parser_gem/node_processors/block_node.rb +3 -2
- data/lib/solargraph/parser/parser_gem/node_processors/if_node.rb +2 -0
- data/lib/solargraph/parser/parser_gem/node_processors/masgn_node.rb +3 -0
- data/lib/solargraph/parser/parser_gem/node_processors/send_node.rb +35 -14
- data/lib/solargraph/parser/region.rb +3 -0
- data/lib/solargraph/parser/snippet.rb +2 -0
- data/lib/solargraph/pin/base.rb +50 -8
- data/lib/solargraph/pin/base_variable.rb +1 -2
- data/lib/solargraph/pin/callable.rb +9 -0
- data/lib/solargraph/pin/closure.rb +2 -0
- data/lib/solargraph/pin/common.rb +6 -2
- data/lib/solargraph/pin/constant.rb +2 -0
- data/lib/solargraph/pin/delegated_method.rb +1 -0
- data/lib/solargraph/pin/local_variable.rb +4 -1
- data/lib/solargraph/pin/method.rb +8 -5
- data/lib/solargraph/pin/method_alias.rb +3 -0
- data/lib/solargraph/pin/parameter.rb +18 -8
- data/lib/solargraph/pin/proxy_type.rb +1 -0
- data/lib/solargraph/pin/reference/override.rb +15 -1
- data/lib/solargraph/pin/reference/superclass.rb +5 -0
- data/lib/solargraph/pin/reference.rb +26 -0
- data/lib/solargraph/pin/search.rb +3 -1
- data/lib/solargraph/pin/signature.rb +2 -0
- data/lib/solargraph/pin/symbol.rb +5 -0
- data/lib/solargraph/pin_cache.rb +64 -4
- data/lib/solargraph/position.rb +2 -0
- data/lib/solargraph/range.rb +1 -0
- data/lib/solargraph/rbs_map/conversions.rb +7 -5
- data/lib/solargraph/rbs_map/core_map.rb +3 -0
- data/lib/solargraph/rbs_map.rb +15 -2
- data/lib/solargraph/shell.rb +3 -0
- data/lib/solargraph/source/chain/link.rb +10 -1
- data/lib/solargraph/source/chain.rb +9 -2
- data/lib/solargraph/source/change.rb +2 -2
- data/lib/solargraph/source/cursor.rb +2 -3
- data/lib/solargraph/source/source_chainer.rb +1 -1
- data/lib/solargraph/source.rb +5 -2
- data/lib/solargraph/source_map/clip.rb +1 -1
- data/lib/solargraph/source_map/data.rb +4 -0
- data/lib/solargraph/source_map/mapper.rb +4 -2
- data/lib/solargraph/source_map.rb +21 -14
- data/lib/solargraph/type_checker/param_def.rb +2 -0
- data/lib/solargraph/type_checker/rules.rb +8 -0
- data/lib/solargraph/type_checker.rb +173 -120
- data/lib/solargraph/version.rb +1 -1
- data/lib/solargraph/workspace/config.rb +0 -2
- data/lib/solargraph/workspace/require_paths.rb +98 -0
- data/lib/solargraph/workspace.rb +16 -48
- data/lib/solargraph/yard_map/mapper/to_method.rb +2 -2
- data/lib/solargraph/yardoc.rb +16 -3
- data/lib/solargraph.rb +2 -0
- data/rbs/fills/tuple.rbs +2 -3
- data/sig/shims/parser/3.2.0.1/builders/default.rbs +195 -0
- data/sig/shims/thor/1.2.0.1/.rbs_meta.yaml +9 -0
- data/sig/shims/thor/1.2.0.1/manifest.yaml +7 -0
- data/sig/shims/thor/1.2.0.1/thor.rbs +17 -0
- data/solargraph.gemspec +14 -4
- metadata +123 -9
- data/lib/.rubocop.yml +0 -22
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,2627 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config --no-exclude-limit --no-offense-counts --no-auto-gen-timestamp`
|
3
|
+
# using RuboCop version 1.80.2.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# This cop supports safe autocorrection (--autocorrect).
|
10
|
+
Gemspec/AddRuntimeDependency:
|
11
|
+
Exclude:
|
12
|
+
- 'solargraph.gemspec'
|
13
|
+
|
14
|
+
# This cop supports safe autocorrection (--autocorrect).
|
15
|
+
# Configuration parameters: Severity.
|
16
|
+
Gemspec/DeprecatedAttributeAssignment:
|
17
|
+
Exclude:
|
18
|
+
- 'solargraph.gemspec'
|
19
|
+
- 'spec/fixtures/rdoc-lib/rdoc-lib.gemspec'
|
20
|
+
|
21
|
+
# Configuration parameters: EnforcedStyle, AllowedGems.
|
22
|
+
# SupportedStyles: Gemfile, gems.rb, gemspec
|
23
|
+
Gemspec/DevelopmentDependencies:
|
24
|
+
Exclude:
|
25
|
+
- 'solargraph.gemspec'
|
26
|
+
|
27
|
+
# This cop supports safe autocorrection (--autocorrect).
|
28
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation.
|
29
|
+
Gemspec/OrderedDependencies:
|
30
|
+
Exclude:
|
31
|
+
- 'solargraph.gemspec'
|
32
|
+
|
33
|
+
# This cop supports safe autocorrection (--autocorrect).
|
34
|
+
# Configuration parameters: Severity.
|
35
|
+
Gemspec/RequireMFA:
|
36
|
+
Exclude:
|
37
|
+
- 'solargraph.gemspec'
|
38
|
+
- 'spec/fixtures/rdoc-lib/rdoc-lib.gemspec'
|
39
|
+
- 'spec/fixtures/rubocop-custom-version/specifications/rubocop-0.0.0.gemspec'
|
40
|
+
|
41
|
+
# Configuration parameters: Severity.
|
42
|
+
Gemspec/RequiredRubyVersion:
|
43
|
+
Exclude:
|
44
|
+
- 'spec/fixtures/rdoc-lib/rdoc-lib.gemspec'
|
45
|
+
- 'spec/fixtures/rubocop-custom-version/specifications/rubocop-0.0.0.gemspec'
|
46
|
+
- 'spec/fixtures/vendored/vendor/do_not_use.gemspec'
|
47
|
+
|
48
|
+
# This cop supports safe autocorrection (--autocorrect).
|
49
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
50
|
+
# SupportedStyles: with_first_argument, with_fixed_indentation
|
51
|
+
Layout/ArgumentAlignment:
|
52
|
+
Exclude:
|
53
|
+
- 'lib/solargraph/pin/callable.rb'
|
54
|
+
- 'spec/source/source_chainer_spec.rb'
|
55
|
+
|
56
|
+
# This cop supports safe autocorrection (--autocorrect).
|
57
|
+
# Configuration parameters: EnforcedStyleAlignWith.
|
58
|
+
# SupportedStylesAlignWith: either, start_of_block, start_of_line
|
59
|
+
Layout/BlockAlignment:
|
60
|
+
Exclude:
|
61
|
+
- 'spec/source_map/mapper_spec.rb'
|
62
|
+
|
63
|
+
# This cop supports safe autocorrection (--autocorrect).
|
64
|
+
Layout/ClosingHeredocIndentation:
|
65
|
+
Exclude:
|
66
|
+
- 'spec/diagnostics/rubocop_spec.rb'
|
67
|
+
|
68
|
+
# This cop supports safe autocorrection (--autocorrect).
|
69
|
+
# Configuration parameters: AllowForAlignment.
|
70
|
+
Layout/CommentIndentation:
|
71
|
+
Exclude:
|
72
|
+
- 'lib/solargraph/language_server/host.rb'
|
73
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
74
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
75
|
+
|
76
|
+
# This cop supports safe autocorrection (--autocorrect).
|
77
|
+
Layout/ElseAlignment:
|
78
|
+
Exclude:
|
79
|
+
- 'lib/solargraph.rb'
|
80
|
+
- 'lib/solargraph/api_map/store.rb'
|
81
|
+
- 'lib/solargraph/diagnostics/rubocop.rb'
|
82
|
+
- 'lib/solargraph/language_server/message/extended/check_gem_version.rb'
|
83
|
+
- 'lib/solargraph/library.rb'
|
84
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
85
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/block_node.rb'
|
86
|
+
- 'lib/solargraph/pin/method.rb'
|
87
|
+
- 'lib/solargraph/pin/namespace.rb'
|
88
|
+
- 'lib/solargraph/rbs_map.rb'
|
89
|
+
- 'lib/solargraph/shell.rb'
|
90
|
+
- 'lib/solargraph/source/chain/call.rb'
|
91
|
+
- 'lib/solargraph/source_map/clip.rb'
|
92
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
93
|
+
- 'lib/solargraph/type_checker/rules.rb'
|
94
|
+
- 'lib/solargraph/yard_map/mapper.rb'
|
95
|
+
|
96
|
+
# This cop supports safe autocorrection (--autocorrect).
|
97
|
+
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, DefLikeMacros, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
98
|
+
Layout/EmptyLineBetweenDefs:
|
99
|
+
Exclude:
|
100
|
+
- 'lib/solargraph/doc_map.rb'
|
101
|
+
- 'lib/solargraph/language_server/message/initialize.rb'
|
102
|
+
- 'lib/solargraph/pin/delegated_method.rb'
|
103
|
+
|
104
|
+
# This cop supports safe autocorrection (--autocorrect).
|
105
|
+
Layout/EmptyLines:
|
106
|
+
Exclude:
|
107
|
+
- 'lib/solargraph/bench.rb'
|
108
|
+
- 'lib/solargraph/complex_type/unique_type.rb'
|
109
|
+
- 'lib/solargraph/doc_map.rb'
|
110
|
+
- 'lib/solargraph/language_server/message/extended/check_gem_version.rb'
|
111
|
+
- 'lib/solargraph/language_server/message/initialize.rb'
|
112
|
+
- 'lib/solargraph/pin/delegated_method.rb'
|
113
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
114
|
+
- 'spec/complex_type_spec.rb'
|
115
|
+
- 'spec/pin/local_variable_spec.rb'
|
116
|
+
- 'spec/pin/symbol_spec.rb'
|
117
|
+
- 'spec/type_checker/levels/strict_spec.rb'
|
118
|
+
|
119
|
+
# This cop supports safe autocorrection (--autocorrect).
|
120
|
+
# Configuration parameters: EnforcedStyle.
|
121
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
122
|
+
Layout/EmptyLinesAroundClassBody:
|
123
|
+
Exclude:
|
124
|
+
- 'lib/solargraph/rbs_map/core_map.rb'
|
125
|
+
|
126
|
+
# This cop supports safe autocorrection (--autocorrect).
|
127
|
+
# Configuration parameters: EnforcedStyle.
|
128
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
129
|
+
Layout/EmptyLinesAroundModuleBody:
|
130
|
+
Exclude:
|
131
|
+
- 'lib/solargraph/api_map/source_to_yard.rb'
|
132
|
+
|
133
|
+
# This cop supports safe autocorrection (--autocorrect).
|
134
|
+
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
135
|
+
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
136
|
+
Layout/EndAlignment:
|
137
|
+
Exclude:
|
138
|
+
- 'lib/solargraph.rb'
|
139
|
+
- 'lib/solargraph/api_map/store.rb'
|
140
|
+
- 'lib/solargraph/diagnostics/rubocop.rb'
|
141
|
+
- 'lib/solargraph/language_server/message/extended/check_gem_version.rb'
|
142
|
+
- 'lib/solargraph/library.rb'
|
143
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
144
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/block_node.rb'
|
145
|
+
- 'lib/solargraph/pin/method.rb'
|
146
|
+
- 'lib/solargraph/pin/namespace.rb'
|
147
|
+
- 'lib/solargraph/rbs_map.rb'
|
148
|
+
- 'lib/solargraph/shell.rb'
|
149
|
+
- 'lib/solargraph/source/chain/call.rb'
|
150
|
+
- 'lib/solargraph/source_map/clip.rb'
|
151
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
152
|
+
- 'lib/solargraph/type_checker/rules.rb'
|
153
|
+
- 'lib/solargraph/yard_map/mapper.rb'
|
154
|
+
|
155
|
+
# Configuration parameters: EnforcedStyle.
|
156
|
+
# SupportedStyles: native, lf, crlf
|
157
|
+
Layout/EndOfLine:
|
158
|
+
Exclude:
|
159
|
+
- 'Gemfile'
|
160
|
+
- 'Rakefile'
|
161
|
+
- 'lib/solargraph/source/encoding_fixes.rb'
|
162
|
+
- 'solargraph.gemspec'
|
163
|
+
|
164
|
+
# This cop supports safe autocorrection (--autocorrect).
|
165
|
+
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
166
|
+
Layout/ExtraSpacing:
|
167
|
+
Exclude:
|
168
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/opasgn_node.rb'
|
169
|
+
- 'lib/solargraph/pin/closure.rb'
|
170
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
171
|
+
- 'lib/solargraph/type_checker.rb'
|
172
|
+
- 'spec/spec_helper.rb'
|
173
|
+
|
174
|
+
# This cop supports safe autocorrection (--autocorrect).
|
175
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
176
|
+
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
177
|
+
Layout/FirstArgumentIndentation:
|
178
|
+
Exclude:
|
179
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/args_node.rb'
|
180
|
+
- 'spec/source/source_chainer_spec.rb'
|
181
|
+
|
182
|
+
# This cop supports safe autocorrection (--autocorrect).
|
183
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
184
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
185
|
+
Layout/FirstArrayElementIndentation:
|
186
|
+
Exclude:
|
187
|
+
- 'lib/solargraph/source.rb'
|
188
|
+
- 'spec/diagnostics/update_errors_spec.rb'
|
189
|
+
- 'spec/source/cursor_spec.rb'
|
190
|
+
- 'spec/source/source_chainer_spec.rb'
|
191
|
+
- 'spec/source_spec.rb'
|
192
|
+
|
193
|
+
# This cop supports safe autocorrection (--autocorrect).
|
194
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
195
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
196
|
+
Layout/FirstHashElementIndentation:
|
197
|
+
Exclude:
|
198
|
+
- 'lib/solargraph/language_server/message/extended/check_gem_version.rb'
|
199
|
+
- 'lib/solargraph/language_server/message/extended/document_gems.rb'
|
200
|
+
- 'lib/solargraph/language_server/message/text_document/completion.rb'
|
201
|
+
- 'lib/solargraph/language_server/message/text_document/rename.rb'
|
202
|
+
- 'lib/solargraph/language_server/message/text_document/signature_help.rb'
|
203
|
+
- 'lib/solargraph/pin/base_variable.rb'
|
204
|
+
- 'spec/language_server/host_spec.rb'
|
205
|
+
- 'spec/language_server/message/completion_item/resolve_spec.rb'
|
206
|
+
- 'spec/language_server/message/initialize_spec.rb'
|
207
|
+
- 'spec/language_server/message/text_document/definition_spec.rb'
|
208
|
+
- 'spec/language_server/message/text_document/formatting_spec.rb'
|
209
|
+
- 'spec/language_server/message/text_document/hover_spec.rb'
|
210
|
+
- 'spec/language_server/message/text_document/rename_spec.rb'
|
211
|
+
- 'spec/language_server/message/text_document/type_definition_spec.rb'
|
212
|
+
- 'spec/language_server/message/workspace/did_change_watched_files_spec.rb'
|
213
|
+
|
214
|
+
# This cop supports safe autocorrection (--autocorrect).
|
215
|
+
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
216
|
+
# SupportedHashRocketStyles: key, separator, table
|
217
|
+
# SupportedColonStyles: key, separator, table
|
218
|
+
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
219
|
+
Layout/HashAlignment:
|
220
|
+
Exclude:
|
221
|
+
- 'lib/solargraph/workspace/config.rb'
|
222
|
+
|
223
|
+
# This cop supports safe autocorrection (--autocorrect).
|
224
|
+
Layout/HeredocIndentation:
|
225
|
+
Exclude:
|
226
|
+
- 'spec/diagnostics/rubocop_spec.rb'
|
227
|
+
- 'spec/yard_map/mapper/to_method_spec.rb'
|
228
|
+
|
229
|
+
# This cop supports safe autocorrection (--autocorrect).
|
230
|
+
# Configuration parameters: Width, AllowedPatterns.
|
231
|
+
Layout/IndentationWidth:
|
232
|
+
Exclude:
|
233
|
+
- 'lib/solargraph.rb'
|
234
|
+
- 'lib/solargraph/api_map/store.rb'
|
235
|
+
- 'lib/solargraph/diagnostics/rubocop.rb'
|
236
|
+
- 'lib/solargraph/language_server/message/extended/check_gem_version.rb'
|
237
|
+
- 'lib/solargraph/library.rb'
|
238
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
239
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/block_node.rb'
|
240
|
+
- 'lib/solargraph/pin/method.rb'
|
241
|
+
- 'lib/solargraph/pin/namespace.rb'
|
242
|
+
- 'lib/solargraph/rbs_map.rb'
|
243
|
+
- 'lib/solargraph/shell.rb'
|
244
|
+
- 'lib/solargraph/source/chain/call.rb'
|
245
|
+
- 'lib/solargraph/source_map/clip.rb'
|
246
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
247
|
+
- 'lib/solargraph/type_checker.rb'
|
248
|
+
- 'lib/solargraph/type_checker/rules.rb'
|
249
|
+
- 'lib/solargraph/yard_map/mapper.rb'
|
250
|
+
- 'spec/api_map/config_spec.rb'
|
251
|
+
- 'spec/shell_spec.rb'
|
252
|
+
- 'spec/source_map/mapper_spec.rb'
|
253
|
+
|
254
|
+
# This cop supports safe autocorrection (--autocorrect).
|
255
|
+
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment, AllowRBSInlineAnnotation, AllowSteepAnnotation.
|
256
|
+
Layout/LeadingCommentSpace:
|
257
|
+
Exclude:
|
258
|
+
- 'lib/solargraph/complex_type.rb'
|
259
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
260
|
+
- 'lib/solargraph/source/chain/call.rb'
|
261
|
+
- 'lib/solargraph/source_map/clip.rb'
|
262
|
+
|
263
|
+
# This cop supports safe autocorrection (--autocorrect).
|
264
|
+
# Configuration parameters: EnforcedStyle.
|
265
|
+
# SupportedStyles: space, no_space
|
266
|
+
Layout/LineContinuationSpacing:
|
267
|
+
Exclude:
|
268
|
+
- 'lib/solargraph/diagnostics/rubocop_helpers.rb'
|
269
|
+
|
270
|
+
# This cop supports safe autocorrection (--autocorrect).
|
271
|
+
# Configuration parameters: EnforcedStyle.
|
272
|
+
# SupportedStyles: symmetrical, new_line, same_line
|
273
|
+
Layout/MultilineMethodCallBraceLayout:
|
274
|
+
Exclude:
|
275
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
276
|
+
- 'spec/source/source_chainer_spec.rb'
|
277
|
+
|
278
|
+
# This cop supports safe autocorrection (--autocorrect).
|
279
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
280
|
+
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
281
|
+
Layout/MultilineMethodCallIndentation:
|
282
|
+
Exclude:
|
283
|
+
- 'lib/solargraph/api_map.rb'
|
284
|
+
- 'lib/solargraph/diagnostics/type_check.rb'
|
285
|
+
- 'lib/solargraph/language_server/message/completion_item/resolve.rb'
|
286
|
+
- 'lib/solargraph/language_server/message/text_document/hover.rb'
|
287
|
+
- 'lib/solargraph/library.rb'
|
288
|
+
- 'lib/solargraph/pin/search.rb'
|
289
|
+
- 'lib/solargraph/type_checker.rb'
|
290
|
+
|
291
|
+
# This cop supports safe autocorrection (--autocorrect).
|
292
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
293
|
+
# SupportedStyles: aligned, indented
|
294
|
+
Layout/MultilineOperationIndentation:
|
295
|
+
Exclude:
|
296
|
+
- 'lib/solargraph/api_map.rb'
|
297
|
+
- 'lib/solargraph/language_server/host/dispatch.rb'
|
298
|
+
- 'lib/solargraph/source.rb'
|
299
|
+
|
300
|
+
# This cop supports safe autocorrection (--autocorrect).
|
301
|
+
Layout/SpaceAfterComma:
|
302
|
+
Exclude:
|
303
|
+
- 'spec/source/cursor_spec.rb'
|
304
|
+
|
305
|
+
# This cop supports safe autocorrection (--autocorrect).
|
306
|
+
# Configuration parameters: EnforcedStyle.
|
307
|
+
# SupportedStyles: space, no_space
|
308
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
309
|
+
Exclude:
|
310
|
+
- 'lib/solargraph/pin/base.rb'
|
311
|
+
- 'lib/solargraph/pin/base_variable.rb'
|
312
|
+
- 'lib/solargraph/pin/callable.rb'
|
313
|
+
- 'lib/solargraph/pin/closure.rb'
|
314
|
+
- 'lib/solargraph/pin/local_variable.rb'
|
315
|
+
- 'lib/solargraph/pin/parameter.rb'
|
316
|
+
|
317
|
+
# This cop supports safe autocorrection (--autocorrect).
|
318
|
+
Layout/SpaceAroundKeyword:
|
319
|
+
Exclude:
|
320
|
+
- 'spec/rbs_map/conversions_spec.rb'
|
321
|
+
|
322
|
+
# This cop supports safe autocorrection (--autocorrect).
|
323
|
+
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
|
324
|
+
# SupportedStylesForExponentOperator: space, no_space
|
325
|
+
# SupportedStylesForRationalLiterals: space, no_space
|
326
|
+
Layout/SpaceAroundOperators:
|
327
|
+
Exclude:
|
328
|
+
- 'lib/solargraph/library.rb'
|
329
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
330
|
+
- 'lib/solargraph/source.rb'
|
331
|
+
- 'lib/solargraph/source/change.rb'
|
332
|
+
- 'lib/solargraph/source/cursor.rb'
|
333
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
334
|
+
- 'lib/solargraph/source_map/clip.rb'
|
335
|
+
- 'lib/solargraph/workspace/config.rb'
|
336
|
+
- 'spec/library_spec.rb'
|
337
|
+
- 'spec/yard_map/mapper_spec.rb'
|
338
|
+
|
339
|
+
# This cop supports safe autocorrection (--autocorrect).
|
340
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
341
|
+
# SupportedStyles: space, no_space
|
342
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
343
|
+
Layout/SpaceBeforeBlockBraces:
|
344
|
+
Exclude:
|
345
|
+
- 'lib/solargraph/api_map.rb'
|
346
|
+
- 'lib/solargraph/api_map/store.rb'
|
347
|
+
- 'lib/solargraph/diagnostics/rubocop.rb'
|
348
|
+
- 'lib/solargraph/diagnostics/update_errors.rb'
|
349
|
+
- 'lib/solargraph/language_server/host.rb'
|
350
|
+
- 'lib/solargraph/library.rb'
|
351
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
352
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/and_node.rb'
|
353
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/if_node.rb'
|
354
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
355
|
+
- 'lib/solargraph/pin/base.rb'
|
356
|
+
- 'lib/solargraph/source.rb'
|
357
|
+
- 'lib/solargraph/source/chain/call.rb'
|
358
|
+
- 'lib/solargraph/source/chain/class_variable.rb'
|
359
|
+
- 'lib/solargraph/source/chain/constant.rb'
|
360
|
+
- 'lib/solargraph/source/chain/global_variable.rb'
|
361
|
+
- 'lib/solargraph/source/chain/instance_variable.rb'
|
362
|
+
- 'lib/solargraph/source/chain/variable.rb'
|
363
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
364
|
+
- 'lib/solargraph/source_map/clip.rb'
|
365
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
366
|
+
- 'lib/solargraph/workspace/config.rb'
|
367
|
+
- 'spec/language_server/host_spec.rb'
|
368
|
+
- 'spec/language_server/protocol_spec.rb'
|
369
|
+
- 'spec/library_spec.rb'
|
370
|
+
- 'spec/pin/constant_spec.rb'
|
371
|
+
- 'spec/pin/instance_variable_spec.rb'
|
372
|
+
- 'spec/rbs_map/core_map_spec.rb'
|
373
|
+
- 'spec/source_map/mapper_spec.rb'
|
374
|
+
- 'spec/source_map_spec.rb'
|
375
|
+
- 'spec/source_spec.rb'
|
376
|
+
|
377
|
+
# This cop supports safe autocorrection (--autocorrect).
|
378
|
+
Layout/SpaceBeforeComma:
|
379
|
+
Exclude:
|
380
|
+
- 'spec/source/cursor_spec.rb'
|
381
|
+
|
382
|
+
# This cop supports safe autocorrection (--autocorrect).
|
383
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
384
|
+
# SupportedStyles: space, no_space
|
385
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
386
|
+
Layout/SpaceInsideBlockBraces:
|
387
|
+
Exclude:
|
388
|
+
- 'lib/solargraph/api_map.rb'
|
389
|
+
- 'lib/solargraph/api_map/store.rb'
|
390
|
+
- 'lib/solargraph/diagnostics/update_errors.rb'
|
391
|
+
- 'lib/solargraph/language_server/host.rb'
|
392
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
393
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/and_node.rb'
|
394
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/if_node.rb'
|
395
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
396
|
+
- 'lib/solargraph/source/chain/call.rb'
|
397
|
+
- 'lib/solargraph/source/chain/class_variable.rb'
|
398
|
+
- 'lib/solargraph/source/chain/global_variable.rb'
|
399
|
+
- 'lib/solargraph/source/chain/instance_variable.rb'
|
400
|
+
- 'lib/solargraph/source/chain/variable.rb'
|
401
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
402
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
403
|
+
- 'spec/language_server/protocol_spec.rb'
|
404
|
+
- 'spec/library_spec.rb'
|
405
|
+
- 'spec/pin/constant_spec.rb'
|
406
|
+
- 'spec/rbs_map/core_map_spec.rb'
|
407
|
+
- 'spec/source_map/mapper_spec.rb'
|
408
|
+
- 'spec/source_spec.rb'
|
409
|
+
|
410
|
+
# This cop supports safe autocorrection (--autocorrect).
|
411
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
412
|
+
# SupportedStyles: space, no_space, compact
|
413
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
414
|
+
Layout/SpaceInsideHashLiteralBraces:
|
415
|
+
Exclude:
|
416
|
+
- 'lib/solargraph/language_server/message/extended/search.rb'
|
417
|
+
- 'lib/solargraph/language_server/message/initialize.rb'
|
418
|
+
- 'lib/solargraph/workspace/config.rb'
|
419
|
+
- 'spec/language_server/host/message_worker_spec.rb'
|
420
|
+
- 'spec/language_server/message/extended/check_gem_version_spec.rb'
|
421
|
+
|
422
|
+
# This cop supports safe autocorrection (--autocorrect).
|
423
|
+
# Configuration parameters: EnforcedStyle.
|
424
|
+
# SupportedStyles: space, compact, no_space
|
425
|
+
Layout/SpaceInsideParens:
|
426
|
+
Exclude:
|
427
|
+
- 'lib/solargraph/pin/namespace.rb'
|
428
|
+
- 'lib/solargraph/source_map.rb'
|
429
|
+
|
430
|
+
# This cop supports safe autocorrection (--autocorrect).
|
431
|
+
# Configuration parameters: AllowInHeredoc.
|
432
|
+
Layout/TrailingWhitespace:
|
433
|
+
Exclude:
|
434
|
+
- 'lib/solargraph/language_server/message/client/register_capability.rb'
|
435
|
+
- 'spec/api_map/config_spec.rb'
|
436
|
+
- 'spec/convention_spec.rb'
|
437
|
+
|
438
|
+
# This cop supports safe autocorrection (--autocorrect).
|
439
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
440
|
+
Lint/AmbiguousBlockAssociation:
|
441
|
+
Exclude:
|
442
|
+
- 'lib/solargraph/api_map.rb'
|
443
|
+
- 'lib/solargraph/language_server/host.rb'
|
444
|
+
|
445
|
+
# This cop supports safe autocorrection (--autocorrect).
|
446
|
+
Lint/AmbiguousOperator:
|
447
|
+
Exclude:
|
448
|
+
- 'lib/solargraph/api_map.rb'
|
449
|
+
- 'lib/solargraph/complex_type.rb'
|
450
|
+
- 'lib/solargraph/language_server/message/workspace/did_change_watched_files.rb'
|
451
|
+
- 'lib/solargraph/parser/parser_gem/class_methods.rb'
|
452
|
+
- 'lib/solargraph/pin/constant.rb'
|
453
|
+
- 'lib/solargraph/pin/method.rb'
|
454
|
+
|
455
|
+
# This cop supports safe autocorrection (--autocorrect).
|
456
|
+
Lint/AmbiguousOperatorPrecedence:
|
457
|
+
Exclude:
|
458
|
+
- 'lib/solargraph/pin/method.rb'
|
459
|
+
- 'lib/solargraph/source.rb'
|
460
|
+
|
461
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
462
|
+
# Configuration parameters: RequireParenthesesForMethodChains.
|
463
|
+
Lint/AmbiguousRange:
|
464
|
+
Exclude:
|
465
|
+
- 'lib/solargraph/library.rb'
|
466
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
467
|
+
- 'lib/solargraph/source.rb'
|
468
|
+
- 'lib/solargraph/source/change.rb'
|
469
|
+
- 'lib/solargraph/source/cursor.rb'
|
470
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
471
|
+
- 'lib/solargraph/source_map/clip.rb'
|
472
|
+
- 'spec/library_spec.rb'
|
473
|
+
|
474
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
475
|
+
# Configuration parameters: AllowSafeAssignment.
|
476
|
+
Lint/AssignmentInCondition:
|
477
|
+
Exclude:
|
478
|
+
- 'lib/solargraph/library.rb'
|
479
|
+
|
480
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
481
|
+
Exclude:
|
482
|
+
- 'lib/solargraph/api_map/source_to_yard.rb'
|
483
|
+
|
484
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
485
|
+
Lint/BooleanSymbol:
|
486
|
+
Exclude:
|
487
|
+
- 'lib/solargraph/convention/struct_definition/struct_definition_node.rb'
|
488
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
489
|
+
- 'lib/solargraph/source/chain/literal.rb'
|
490
|
+
|
491
|
+
# Configuration parameters: AllowedMethods.
|
492
|
+
# AllowedMethods: enums
|
493
|
+
Lint/ConstantDefinitionInBlock:
|
494
|
+
Exclude:
|
495
|
+
- 'spec/complex_type_spec.rb'
|
496
|
+
|
497
|
+
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
|
498
|
+
Lint/DuplicateBranch:
|
499
|
+
Exclude:
|
500
|
+
- 'lib/solargraph/complex_type/type_methods.rb'
|
501
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
502
|
+
- 'lib/solargraph/pin/base.rb'
|
503
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
504
|
+
|
505
|
+
Lint/DuplicateMethods:
|
506
|
+
Exclude:
|
507
|
+
- 'lib/solargraph/complex_type.rb'
|
508
|
+
- 'lib/solargraph/location.rb'
|
509
|
+
- 'lib/solargraph/pin/base.rb'
|
510
|
+
- 'lib/solargraph/pin/signature.rb'
|
511
|
+
- 'lib/solargraph/rbs_map.rb'
|
512
|
+
- 'lib/solargraph/rbs_map/core_map.rb'
|
513
|
+
- 'lib/solargraph/source/chain/link.rb'
|
514
|
+
|
515
|
+
# Configuration parameters: AllowComments, AllowEmptyLambdas.
|
516
|
+
Lint/EmptyBlock:
|
517
|
+
Exclude:
|
518
|
+
- 'spec/convention_spec.rb'
|
519
|
+
|
520
|
+
# Configuration parameters: AllowComments.
|
521
|
+
Lint/EmptyClass:
|
522
|
+
Exclude:
|
523
|
+
- 'spec/fixtures/rubocop-validation-error/app.rb'
|
524
|
+
- 'spec/fixtures/workspace-with-gemfile/lib/other.rb'
|
525
|
+
- 'spec/fixtures/workspace/lib/other.rb'
|
526
|
+
- 'spec/fixtures/workspace/lib/something.rb'
|
527
|
+
- 'spec/fixtures/workspace_folders/folder1/app.rb'
|
528
|
+
- 'spec/fixtures/workspace_folders/folder2/app.rb'
|
529
|
+
|
530
|
+
# Configuration parameters: AllowComments.
|
531
|
+
Lint/EmptyFile:
|
532
|
+
Exclude:
|
533
|
+
- 'spec/fixtures/vendored/vendor/do_not_use.gemspec'
|
534
|
+
|
535
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
536
|
+
Lint/InterpolationCheck:
|
537
|
+
Exclude:
|
538
|
+
- 'spec/complex_type_spec.rb'
|
539
|
+
- 'spec/parser/node_methods_spec.rb'
|
540
|
+
- 'spec/source/chain_spec.rb'
|
541
|
+
- 'spec/source/cursor_spec.rb'
|
542
|
+
|
543
|
+
# Configuration parameters: AllowedParentClasses.
|
544
|
+
Lint/MissingSuper:
|
545
|
+
Exclude:
|
546
|
+
- 'lib/solargraph/source/chain/call.rb'
|
547
|
+
- 'lib/solargraph/source/chain/constant.rb'
|
548
|
+
- 'lib/solargraph/source/chain/if.rb'
|
549
|
+
- 'lib/solargraph/source/chain/literal.rb'
|
550
|
+
- 'lib/solargraph/source/chain/or.rb'
|
551
|
+
|
552
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
553
|
+
Lint/NonAtomicFileOperation:
|
554
|
+
Exclude:
|
555
|
+
- 'spec/diagnostics/rubocop_spec.rb'
|
556
|
+
|
557
|
+
# This cop supports safe autocorrection (--autocorrect).
|
558
|
+
Lint/ParenthesesAsGroupedExpression:
|
559
|
+
Exclude:
|
560
|
+
- 'lib/solargraph.rb'
|
561
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
562
|
+
- 'spec/language_server/host_spec.rb'
|
563
|
+
- 'spec/source_map/clip_spec.rb'
|
564
|
+
|
565
|
+
# This cop supports safe autocorrection (--autocorrect).
|
566
|
+
Lint/RedundantRequireStatement:
|
567
|
+
Exclude:
|
568
|
+
- 'spec/language_server/protocol_spec.rb'
|
569
|
+
|
570
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
571
|
+
# Configuration parameters: AllowedMethods, InferNonNilReceiver, AdditionalNilMethods.
|
572
|
+
# AllowedMethods: instance_of?, kind_of?, is_a?, eql?, respond_to?, equal?
|
573
|
+
# AdditionalNilMethods: present?, blank?, try, try!
|
574
|
+
Lint/RedundantSafeNavigation:
|
575
|
+
Exclude:
|
576
|
+
- 'lib/solargraph/api_map/source_to_yard.rb'
|
577
|
+
- 'lib/solargraph/rbs_map.rb'
|
578
|
+
|
579
|
+
# This cop supports safe autocorrection (--autocorrect).
|
580
|
+
Lint/RedundantStringCoercion:
|
581
|
+
Exclude:
|
582
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
583
|
+
- 'lib/solargraph/pin/conversions.rb'
|
584
|
+
- 'lib/solargraph/pin/method.rb'
|
585
|
+
- 'lib/solargraph/pin/namespace.rb'
|
586
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
587
|
+
|
588
|
+
# This cop supports safe autocorrection (--autocorrect).
|
589
|
+
Lint/RedundantWithIndex:
|
590
|
+
Exclude:
|
591
|
+
- 'lib/solargraph/language_server/message/completion_item/resolve.rb'
|
592
|
+
|
593
|
+
# This cop supports safe autocorrection (--autocorrect).
|
594
|
+
# Configuration parameters: EnforcedStyle.
|
595
|
+
# SupportedStyles: strict, consistent
|
596
|
+
Lint/SymbolConversion:
|
597
|
+
Exclude:
|
598
|
+
- 'lib/solargraph/pin/base.rb'
|
599
|
+
|
600
|
+
# Configuration parameters: AllowKeywordBlockArguments.
|
601
|
+
Lint/UnderscorePrefixedVariableName:
|
602
|
+
Exclude:
|
603
|
+
- 'lib/solargraph/library.rb'
|
604
|
+
|
605
|
+
# Configuration parameters: Methods.
|
606
|
+
Lint/UnexpectedBlockArity:
|
607
|
+
Exclude:
|
608
|
+
- 'lib/solargraph/language_server/message/completion_item/resolve.rb'
|
609
|
+
- 'lib/solargraph/type_checker.rb'
|
610
|
+
|
611
|
+
Lint/UnmodifiedReduceAccumulator:
|
612
|
+
Exclude:
|
613
|
+
- 'lib/solargraph/pin/method.rb'
|
614
|
+
|
615
|
+
# This cop supports safe autocorrection (--autocorrect).
|
616
|
+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
617
|
+
Lint/UnusedBlockArgument:
|
618
|
+
Exclude:
|
619
|
+
- 'lib/solargraph/language_server/message/workspace/did_change_workspace_folders.rb'
|
620
|
+
- 'lib/solargraph/logging.rb'
|
621
|
+
- 'spec/language_server/transport/data_reader_spec.rb'
|
622
|
+
|
623
|
+
# This cop supports safe autocorrection (--autocorrect).
|
624
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
|
625
|
+
# NotImplementedExceptions: NotImplementedError
|
626
|
+
Lint/UnusedMethodArgument:
|
627
|
+
Exclude:
|
628
|
+
- 'lib/solargraph.rb'
|
629
|
+
- 'lib/solargraph/complex_type/type_methods.rb'
|
630
|
+
- 'lib/solargraph/convention/base.rb'
|
631
|
+
- 'lib/solargraph/diagnostics/base.rb'
|
632
|
+
- 'lib/solargraph/diagnostics/update_errors.rb'
|
633
|
+
- 'lib/solargraph/doc_map.rb'
|
634
|
+
- 'lib/solargraph/pin/namespace.rb'
|
635
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
636
|
+
- 'lib/solargraph/source.rb'
|
637
|
+
- 'lib/solargraph/source/chain.rb'
|
638
|
+
- 'lib/solargraph/source/chain/block_symbol.rb'
|
639
|
+
- 'lib/solargraph/source/chain/block_variable.rb'
|
640
|
+
- 'lib/solargraph/source/chain/call.rb'
|
641
|
+
- 'lib/solargraph/source/chain/class_variable.rb'
|
642
|
+
- 'lib/solargraph/source/chain/constant.rb'
|
643
|
+
- 'lib/solargraph/source/chain/global_variable.rb'
|
644
|
+
- 'lib/solargraph/source/chain/hash.rb'
|
645
|
+
- 'lib/solargraph/source/chain/head.rb'
|
646
|
+
- 'lib/solargraph/source/chain/instance_variable.rb'
|
647
|
+
- 'lib/solargraph/source/chain/link.rb'
|
648
|
+
- 'lib/solargraph/source/chain/literal.rb'
|
649
|
+
- 'lib/solargraph/source/chain/variable.rb'
|
650
|
+
- 'lib/solargraph/source/chain/z_super.rb'
|
651
|
+
- 'spec/doc_map_spec.rb'
|
652
|
+
|
653
|
+
# This cop supports safe autocorrection (--autocorrect).
|
654
|
+
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
655
|
+
Lint/UselessAccessModifier:
|
656
|
+
Exclude:
|
657
|
+
- 'lib/solargraph/api_map.rb'
|
658
|
+
|
659
|
+
# This cop supports safe autocorrection (--autocorrect).
|
660
|
+
Lint/UselessAssignment:
|
661
|
+
Exclude:
|
662
|
+
- 'lib/solargraph/api_map.rb'
|
663
|
+
- 'lib/solargraph/doc_map.rb'
|
664
|
+
- 'lib/solargraph/language_server/message/extended/check_gem_version.rb'
|
665
|
+
- 'lib/solargraph/language_server/message/extended/document_gems.rb'
|
666
|
+
- 'lib/solargraph/language_server/message/text_document/completion.rb'
|
667
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
668
|
+
- 'lib/solargraph/pin/method.rb'
|
669
|
+
- 'lib/solargraph/pin/parameter.rb'
|
670
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
671
|
+
- 'lib/solargraph/source.rb'
|
672
|
+
- 'lib/solargraph/source/chain/call.rb'
|
673
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
674
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
675
|
+
- 'lib/solargraph/type_checker.rb'
|
676
|
+
- 'spec/fixtures/long_squiggly_heredoc.rb'
|
677
|
+
- 'spec/fixtures/rubocop-unused-variable-error/app.rb'
|
678
|
+
- 'spec/fixtures/unicode.rb'
|
679
|
+
- 'spec/language_server/host_spec.rb'
|
680
|
+
- 'spec/language_server/protocol_spec.rb'
|
681
|
+
- 'spec/library_spec.rb'
|
682
|
+
- 'spec/pin/namespace_spec.rb'
|
683
|
+
- 'spec/source/chain/call_spec.rb'
|
684
|
+
- 'spec/source_map/mapper_spec.rb'
|
685
|
+
|
686
|
+
Lint/UselessConstantScoping:
|
687
|
+
Exclude:
|
688
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
689
|
+
|
690
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
691
|
+
Lint/UselessMethodDefinition:
|
692
|
+
Exclude:
|
693
|
+
- 'lib/solargraph/pin/signature.rb'
|
694
|
+
|
695
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
696
|
+
Metrics/AbcSize:
|
697
|
+
Exclude:
|
698
|
+
- 'lib/solargraph/api_map.rb'
|
699
|
+
- 'lib/solargraph/api_map/source_to_yard.rb'
|
700
|
+
- 'lib/solargraph/complex_type.rb'
|
701
|
+
- 'lib/solargraph/doc_map.rb'
|
702
|
+
- 'lib/solargraph/language_server/host.rb'
|
703
|
+
- 'lib/solargraph/language_server/message/initialize.rb'
|
704
|
+
- 'lib/solargraph/library.rb'
|
705
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
706
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/sclass_node.rb'
|
707
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
708
|
+
- 'lib/solargraph/pin/method.rb'
|
709
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
710
|
+
- 'lib/solargraph/source/chain/call.rb'
|
711
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
712
|
+
- 'lib/solargraph/source_map/clip.rb'
|
713
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
714
|
+
- 'lib/solargraph/type_checker.rb'
|
715
|
+
|
716
|
+
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
|
717
|
+
# AllowedMethods: refine
|
718
|
+
Metrics/BlockLength:
|
719
|
+
Exclude:
|
720
|
+
- 'lib/solargraph/api_map.rb'
|
721
|
+
- 'lib/solargraph/api_map/source_to_yard.rb'
|
722
|
+
- 'lib/solargraph/complex_type.rb'
|
723
|
+
- 'lib/solargraph/convention/struct_definition.rb'
|
724
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
725
|
+
- 'lib/solargraph/source/chain/call.rb'
|
726
|
+
- 'lib/solargraph/type_checker.rb'
|
727
|
+
|
728
|
+
# Configuration parameters: CountBlocks, CountModifierForms, Max.
|
729
|
+
Metrics/BlockNesting:
|
730
|
+
Exclude:
|
731
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
732
|
+
- 'lib/solargraph/source_map/clip.rb'
|
733
|
+
- 'lib/solargraph/type_checker.rb'
|
734
|
+
|
735
|
+
# Configuration parameters: CountComments, Max, CountAsOne.
|
736
|
+
Metrics/ClassLength:
|
737
|
+
Exclude:
|
738
|
+
- 'lib/solargraph/api_map.rb'
|
739
|
+
- 'lib/solargraph/language_server/host.rb'
|
740
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
741
|
+
- 'lib/solargraph/type_checker.rb'
|
742
|
+
|
743
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
744
|
+
Metrics/CyclomaticComplexity:
|
745
|
+
Exclude:
|
746
|
+
- 'lib/solargraph/api_map/source_to_yard.rb'
|
747
|
+
- 'lib/solargraph/complex_type.rb'
|
748
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
749
|
+
- 'lib/solargraph/pin/method.rb'
|
750
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
751
|
+
- 'lib/solargraph/source/chain/call.rb'
|
752
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
753
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
754
|
+
- 'lib/solargraph/type_checker.rb'
|
755
|
+
|
756
|
+
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns.
|
757
|
+
Metrics/MethodLength:
|
758
|
+
Exclude:
|
759
|
+
- 'lib/solargraph/api_map.rb'
|
760
|
+
- 'lib/solargraph/complex_type.rb'
|
761
|
+
- 'lib/solargraph/convention/struct_definition.rb'
|
762
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
763
|
+
- 'lib/solargraph/source/chain/call.rb'
|
764
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
765
|
+
|
766
|
+
# Configuration parameters: CountComments, Max, CountAsOne.
|
767
|
+
Metrics/ModuleLength:
|
768
|
+
Exclude:
|
769
|
+
- 'lib/solargraph/complex_type/type_methods.rb'
|
770
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
771
|
+
- 'lib/solargraph/pin_cache.rb'
|
772
|
+
|
773
|
+
# Configuration parameters: Max, CountKeywordArgs, MaxOptionalParameters.
|
774
|
+
Metrics/ParameterLists:
|
775
|
+
Exclude:
|
776
|
+
- 'lib/solargraph/api_map.rb'
|
777
|
+
- 'lib/solargraph/pin/callable.rb'
|
778
|
+
- 'lib/solargraph/type_checker.rb'
|
779
|
+
- 'lib/solargraph/yard_map/mapper/to_method.rb'
|
780
|
+
- 'lib/solargraph/yard_map/to_method.rb'
|
781
|
+
|
782
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
783
|
+
Metrics/PerceivedComplexity:
|
784
|
+
Exclude:
|
785
|
+
- 'lib/solargraph/complex_type.rb'
|
786
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
787
|
+
- 'lib/solargraph/source/chain/call.rb'
|
788
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
789
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
790
|
+
- 'lib/solargraph/type_checker.rb'
|
791
|
+
|
792
|
+
Naming/AccessorMethodName:
|
793
|
+
Exclude:
|
794
|
+
- 'lib/solargraph/api_map.rb'
|
795
|
+
- 'lib/solargraph/api_map/store.rb'
|
796
|
+
- 'lib/solargraph/language_server/message/base.rb'
|
797
|
+
|
798
|
+
# Configuration parameters: AsciiConstants.
|
799
|
+
Naming/AsciiIdentifiers:
|
800
|
+
Exclude:
|
801
|
+
- 'spec/fixtures/unicode.rb'
|
802
|
+
|
803
|
+
# Configuration parameters: ForbiddenDelimiters.
|
804
|
+
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
805
|
+
Naming/HeredocDelimiterNaming:
|
806
|
+
Exclude:
|
807
|
+
- 'spec/yard_map/mapper/to_method_spec.rb'
|
808
|
+
|
809
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
810
|
+
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
811
|
+
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
812
|
+
Naming/MemoizedInstanceVariableName:
|
813
|
+
Exclude:
|
814
|
+
- 'lib/solargraph/complex_type/type_methods.rb'
|
815
|
+
- 'lib/solargraph/convention/gemfile.rb'
|
816
|
+
- 'lib/solargraph/convention/gemspec.rb'
|
817
|
+
- 'lib/solargraph/convention/rakefile.rb'
|
818
|
+
- 'lib/solargraph/doc_map.rb'
|
819
|
+
- 'lib/solargraph/rbs_map.rb'
|
820
|
+
- 'lib/solargraph/workspace.rb'
|
821
|
+
|
822
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
823
|
+
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
824
|
+
Naming/MethodParameterName:
|
825
|
+
Exclude:
|
826
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
827
|
+
- 'lib/solargraph/pin/base.rb'
|
828
|
+
- 'lib/solargraph/range.rb'
|
829
|
+
- 'lib/solargraph/source.rb'
|
830
|
+
- 'lib/solargraph/yard_map/mapper/to_method.rb'
|
831
|
+
- 'lib/solargraph/yard_map/to_method.rb'
|
832
|
+
|
833
|
+
# Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
|
834
|
+
# AllowedMethods: call
|
835
|
+
# WaywardPredicates: nonzero?
|
836
|
+
Naming/PredicateMethod:
|
837
|
+
Exclude:
|
838
|
+
- 'lib/solargraph/api_map/store.rb'
|
839
|
+
- 'lib/solargraph/convention/data_definition.rb'
|
840
|
+
- 'lib/solargraph/convention/struct_definition.rb'
|
841
|
+
- 'lib/solargraph/language_server/progress.rb'
|
842
|
+
- 'lib/solargraph/library.rb'
|
843
|
+
- 'lib/solargraph/parser/node_processor/base.rb'
|
844
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
845
|
+
- 'lib/solargraph/pin/base.rb'
|
846
|
+
- 'lib/solargraph/pin/local_variable.rb'
|
847
|
+
- 'lib/solargraph/workspace.rb'
|
848
|
+
|
849
|
+
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros, UseSorbetSigs.
|
850
|
+
# NamePrefix: is_, has_, have_, does_
|
851
|
+
# ForbiddenPrefixes: is_, has_, have_, does_
|
852
|
+
# AllowedMethods: is_a?
|
853
|
+
# MethodDefinitionMacros: define_method, define_singleton_method
|
854
|
+
Naming/PredicatePrefix:
|
855
|
+
Exclude:
|
856
|
+
- 'spec/**/*'
|
857
|
+
- 'lib/solargraph/api_map.rb'
|
858
|
+
- 'lib/solargraph/language_server/host.rb'
|
859
|
+
- 'lib/solargraph/parser/parser_gem/class_methods.rb'
|
860
|
+
- 'lib/solargraph/pin_cache.rb'
|
861
|
+
- 'lib/solargraph/workspace.rb'
|
862
|
+
|
863
|
+
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns.
|
864
|
+
# SupportedStyles: snake_case, camelCase
|
865
|
+
Naming/VariableName:
|
866
|
+
Exclude:
|
867
|
+
- 'spec/fixtures/unicode.rb'
|
868
|
+
|
869
|
+
RSpec/Be:
|
870
|
+
Exclude:
|
871
|
+
- 'spec/rbs_map/stdlib_map_spec.rb'
|
872
|
+
- 'spec/rbs_map_spec.rb'
|
873
|
+
- 'spec/source/source_chainer_spec.rb'
|
874
|
+
|
875
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
876
|
+
RSpec/BeEq:
|
877
|
+
Exclude:
|
878
|
+
- 'spec/complex_type_spec.rb'
|
879
|
+
- 'spec/pin/method_spec.rb'
|
880
|
+
|
881
|
+
# This cop supports safe autocorrection (--autocorrect).
|
882
|
+
# Configuration parameters: EnforcedStyle.
|
883
|
+
# SupportedStyles: be, be_nil
|
884
|
+
RSpec/BeNil:
|
885
|
+
Exclude:
|
886
|
+
- 'spec/api_map/source_to_yard_spec.rb'
|
887
|
+
- 'spec/language_server/host_spec.rb'
|
888
|
+
|
889
|
+
RSpec/BeforeAfterAll:
|
890
|
+
Exclude:
|
891
|
+
- '**/spec/spec_helper.rb'
|
892
|
+
- '**/spec/rails_helper.rb'
|
893
|
+
- '**/spec/support/**/*.rb'
|
894
|
+
- 'spec/api_map_spec.rb'
|
895
|
+
- 'spec/doc_map_spec.rb'
|
896
|
+
- 'spec/language_server/host/dispatch_spec.rb'
|
897
|
+
- 'spec/language_server/protocol_spec.rb'
|
898
|
+
|
899
|
+
# Configuration parameters: Prefixes, AllowedPatterns.
|
900
|
+
# Prefixes: when, with, without
|
901
|
+
RSpec/ContextWording:
|
902
|
+
Exclude:
|
903
|
+
- 'spec/complex_type_spec.rb'
|
904
|
+
- 'spec/library_spec.rb'
|
905
|
+
- 'spec/pin/method_spec.rb'
|
906
|
+
- 'spec/pin/parameter_spec.rb'
|
907
|
+
- 'spec/pin/symbol_spec.rb'
|
908
|
+
- 'spec/type_checker/levels/normal_spec.rb'
|
909
|
+
- 'spec/type_checker/levels/strict_spec.rb'
|
910
|
+
- 'spec/type_checker/levels/strong_spec.rb'
|
911
|
+
- 'spec/type_checker/levels/typed_spec.rb'
|
912
|
+
|
913
|
+
# Configuration parameters: IgnoredMetadata.
|
914
|
+
RSpec/DescribeClass:
|
915
|
+
Exclude:
|
916
|
+
- '**/spec/features/**/*'
|
917
|
+
- '**/spec/requests/**/*'
|
918
|
+
- '**/spec/routing/**/*'
|
919
|
+
- '**/spec/system/**/*'
|
920
|
+
- '**/spec/views/**/*'
|
921
|
+
- 'spec/api_map_method_spec.rb'
|
922
|
+
- 'spec/complex_type_spec.rb'
|
923
|
+
- 'spec/source_map/node_processor_spec.rb'
|
924
|
+
|
925
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
926
|
+
# Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
|
927
|
+
# SupportedStyles: described_class, explicit
|
928
|
+
RSpec/DescribedClass:
|
929
|
+
Exclude:
|
930
|
+
- 'spec/api_map/cache_spec.rb'
|
931
|
+
- 'spec/api_map/source_to_yard_spec.rb'
|
932
|
+
- 'spec/api_map/store_spec.rb'
|
933
|
+
- 'spec/api_map_spec.rb'
|
934
|
+
- 'spec/diagnostics/base_spec.rb'
|
935
|
+
- 'spec/diagnostics/require_not_found_spec.rb'
|
936
|
+
- 'spec/diagnostics/rubocop_helpers_spec.rb'
|
937
|
+
- 'spec/diagnostics/rubocop_spec.rb'
|
938
|
+
- 'spec/diagnostics/type_check_spec.rb'
|
939
|
+
- 'spec/diagnostics/update_errors_spec.rb'
|
940
|
+
- 'spec/diagnostics_spec.rb'
|
941
|
+
- 'spec/doc_map_spec.rb'
|
942
|
+
- 'spec/gem_pins_spec.rb'
|
943
|
+
- 'spec/language_server/host/diagnoser_spec.rb'
|
944
|
+
- 'spec/language_server/host/dispatch_spec.rb'
|
945
|
+
- 'spec/language_server/host/message_worker_spec.rb'
|
946
|
+
- 'spec/language_server/host_spec.rb'
|
947
|
+
- 'spec/language_server/message/completion_item/resolve_spec.rb'
|
948
|
+
- 'spec/language_server/message/extended/check_gem_version_spec.rb'
|
949
|
+
- 'spec/language_server/message/initialize_spec.rb'
|
950
|
+
- 'spec/language_server/message/text_document/definition_spec.rb'
|
951
|
+
- 'spec/language_server/message/text_document/formatting_spec.rb'
|
952
|
+
- 'spec/language_server/message/text_document/hover_spec.rb'
|
953
|
+
- 'spec/language_server/message/text_document/rename_spec.rb'
|
954
|
+
- 'spec/language_server/message/text_document/type_definition_spec.rb'
|
955
|
+
- 'spec/language_server/message/workspace/did_change_watched_files_spec.rb'
|
956
|
+
- 'spec/language_server/message_spec.rb'
|
957
|
+
- 'spec/language_server/protocol_spec.rb'
|
958
|
+
- 'spec/language_server/transport/data_reader_spec.rb'
|
959
|
+
- 'spec/language_server/uri_helpers_spec.rb'
|
960
|
+
- 'spec/library_spec.rb'
|
961
|
+
- 'spec/logging_spec.rb'
|
962
|
+
- 'spec/parser/node_methods_spec.rb'
|
963
|
+
- 'spec/parser/node_processor_spec.rb'
|
964
|
+
- 'spec/parser_spec.rb'
|
965
|
+
- 'spec/pin/base_spec.rb'
|
966
|
+
- 'spec/pin/delegated_method_spec.rb'
|
967
|
+
- 'spec/pin/instance_variable_spec.rb'
|
968
|
+
- 'spec/pin/keyword_spec.rb'
|
969
|
+
- 'spec/pin/local_variable_spec.rb'
|
970
|
+
- 'spec/pin/method_spec.rb'
|
971
|
+
- 'spec/pin/namespace_spec.rb'
|
972
|
+
- 'spec/pin/parameter_spec.rb'
|
973
|
+
- 'spec/pin/search_spec.rb'
|
974
|
+
- 'spec/pin/symbol_spec.rb'
|
975
|
+
- 'spec/position_spec.rb'
|
976
|
+
- 'spec/rbs_map/conversions_spec.rb'
|
977
|
+
- 'spec/rbs_map/core_map_spec.rb'
|
978
|
+
- 'spec/rbs_map/stdlib_map_spec.rb'
|
979
|
+
- 'spec/rbs_map_spec.rb'
|
980
|
+
- 'spec/source/chain/class_variable_spec.rb'
|
981
|
+
- 'spec/source/chain/global_variable_spec.rb'
|
982
|
+
- 'spec/source/chain/head_spec.rb'
|
983
|
+
- 'spec/source/chain/instance_variable_spec.rb'
|
984
|
+
- 'spec/source/chain/z_super_spec.rb'
|
985
|
+
- 'spec/source/change_spec.rb'
|
986
|
+
- 'spec/source/source_chainer_spec.rb'
|
987
|
+
- 'spec/source/updater_spec.rb'
|
988
|
+
- 'spec/source_map/mapper_spec.rb'
|
989
|
+
- 'spec/source_map_spec.rb'
|
990
|
+
- 'spec/source_spec.rb'
|
991
|
+
- 'spec/type_checker/checks_spec.rb'
|
992
|
+
- 'spec/type_checker/levels/normal_spec.rb'
|
993
|
+
- 'spec/type_checker/levels/strict_spec.rb'
|
994
|
+
- 'spec/type_checker/rules_spec.rb'
|
995
|
+
- 'spec/type_checker_spec.rb'
|
996
|
+
- 'spec/workspace/config_spec.rb'
|
997
|
+
- 'spec/workspace_spec.rb'
|
998
|
+
- 'spec/yard_map/mapper/to_method_spec.rb'
|
999
|
+
- 'spec/yard_map/mapper_spec.rb'
|
1000
|
+
|
1001
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1002
|
+
RSpec/EmptyExampleGroup:
|
1003
|
+
Exclude:
|
1004
|
+
- 'spec/convention_spec.rb'
|
1005
|
+
|
1006
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1007
|
+
RSpec/EmptyLineAfterFinalLet:
|
1008
|
+
Exclude:
|
1009
|
+
- 'spec/workspace/config_spec.rb'
|
1010
|
+
|
1011
|
+
# Configuration parameters: Max, CountAsOne.
|
1012
|
+
RSpec/ExampleLength:
|
1013
|
+
Exclude:
|
1014
|
+
- 'spec/api_map_spec.rb'
|
1015
|
+
- 'spec/complex_type_spec.rb'
|
1016
|
+
- 'spec/language_server/host_spec.rb'
|
1017
|
+
- 'spec/language_server/message/initialize_spec.rb'
|
1018
|
+
- 'spec/language_server/message/text_document/definition_spec.rb'
|
1019
|
+
- 'spec/language_server/message/text_document/hover_spec.rb'
|
1020
|
+
- 'spec/language_server/message/text_document/rename_spec.rb'
|
1021
|
+
- 'spec/language_server/message/text_document/type_definition_spec.rb'
|
1022
|
+
- 'spec/language_server/message/workspace/did_change_watched_files_spec.rb'
|
1023
|
+
- 'spec/language_server/protocol_spec.rb'
|
1024
|
+
- 'spec/library_spec.rb'
|
1025
|
+
- 'spec/parser/flow_sensitive_typing_spec.rb'
|
1026
|
+
- 'spec/parser/node_methods_spec.rb'
|
1027
|
+
- 'spec/parser/node_processor_spec.rb'
|
1028
|
+
- 'spec/pin/base_variable_spec.rb'
|
1029
|
+
- 'spec/pin/delegated_method_spec.rb'
|
1030
|
+
- 'spec/pin/local_variable_spec.rb'
|
1031
|
+
- 'spec/pin/parameter_spec.rb'
|
1032
|
+
- 'spec/source/chain/call_spec.rb'
|
1033
|
+
- 'spec/source/chain_spec.rb'
|
1034
|
+
- 'spec/source_map/clip_spec.rb'
|
1035
|
+
- 'spec/source_map/mapper_spec.rb'
|
1036
|
+
- 'spec/source_map_spec.rb'
|
1037
|
+
- 'spec/source_spec.rb'
|
1038
|
+
- 'spec/type_checker/levels/strict_spec.rb'
|
1039
|
+
- 'spec/type_checker_spec.rb'
|
1040
|
+
|
1041
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1042
|
+
# Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
|
1043
|
+
# DisallowedExamples: works
|
1044
|
+
RSpec/ExampleWording:
|
1045
|
+
Exclude:
|
1046
|
+
- 'spec/pin/base_spec.rb'
|
1047
|
+
- 'spec/pin/method_spec.rb'
|
1048
|
+
|
1049
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1050
|
+
RSpec/ExcessiveDocstringSpacing:
|
1051
|
+
Exclude:
|
1052
|
+
- 'spec/rbs_map/conversions_spec.rb'
|
1053
|
+
- 'spec/source/chain/call_spec.rb'
|
1054
|
+
|
1055
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1056
|
+
RSpec/ExpectActual:
|
1057
|
+
Exclude:
|
1058
|
+
- '**/spec/routing/**/*'
|
1059
|
+
- 'spec/rbs_map/stdlib_map_spec.rb'
|
1060
|
+
- 'spec/source_map/mapper_spec.rb'
|
1061
|
+
|
1062
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1063
|
+
# Configuration parameters: EnforcedStyle.
|
1064
|
+
# SupportedStyles: implicit, each, example
|
1065
|
+
RSpec/HookArgument:
|
1066
|
+
Exclude:
|
1067
|
+
- 'spec/api_map/config_spec.rb'
|
1068
|
+
- 'spec/diagnostics/require_not_found_spec.rb'
|
1069
|
+
- 'spec/language_server/host/dispatch_spec.rb'
|
1070
|
+
- 'spec/language_server/host_spec.rb'
|
1071
|
+
- 'spec/language_server/message/extended/check_gem_version_spec.rb'
|
1072
|
+
- 'spec/language_server/protocol_spec.rb'
|
1073
|
+
- 'spec/workspace/config_spec.rb'
|
1074
|
+
- 'spec/workspace_spec.rb'
|
1075
|
+
|
1076
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1077
|
+
# Configuration parameters: .
|
1078
|
+
# SupportedStyles: is_expected, should
|
1079
|
+
RSpec/ImplicitExpect:
|
1080
|
+
EnforcedStyle: should
|
1081
|
+
|
1082
|
+
# Configuration parameters: AssignmentOnly.
|
1083
|
+
RSpec/InstanceVariable:
|
1084
|
+
Exclude:
|
1085
|
+
- 'spec/api_map/config_spec.rb'
|
1086
|
+
- 'spec/diagnostics/require_not_found_spec.rb'
|
1087
|
+
- 'spec/language_server/host/dispatch_spec.rb'
|
1088
|
+
- 'spec/language_server/host_spec.rb'
|
1089
|
+
- 'spec/language_server/protocol_spec.rb'
|
1090
|
+
|
1091
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1092
|
+
RSpec/LeadingSubject:
|
1093
|
+
Exclude:
|
1094
|
+
- 'spec/rbs_map/conversions_spec.rb'
|
1095
|
+
|
1096
|
+
RSpec/LeakyConstantDeclaration:
|
1097
|
+
Exclude:
|
1098
|
+
- 'spec/complex_type_spec.rb'
|
1099
|
+
|
1100
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1101
|
+
RSpec/LetBeforeExamples:
|
1102
|
+
Exclude:
|
1103
|
+
- 'spec/complex_type_spec.rb'
|
1104
|
+
|
1105
|
+
# Configuration parameters: EnforcedStyle.
|
1106
|
+
# SupportedStyles: have_received, receive
|
1107
|
+
RSpec/MessageSpies:
|
1108
|
+
Exclude:
|
1109
|
+
- 'spec/doc_map_spec.rb'
|
1110
|
+
- 'spec/language_server/host/diagnoser_spec.rb'
|
1111
|
+
- 'spec/language_server/host/message_worker_spec.rb'
|
1112
|
+
|
1113
|
+
RSpec/MissingExampleGroupArgument:
|
1114
|
+
Exclude:
|
1115
|
+
- 'spec/diagnostics/rubocop_helpers_spec.rb'
|
1116
|
+
|
1117
|
+
# Configuration parameters: Max.
|
1118
|
+
RSpec/MultipleExpectations:
|
1119
|
+
Exclude:
|
1120
|
+
- 'spec/api_map/cache_spec.rb'
|
1121
|
+
- 'spec/api_map/config_spec.rb'
|
1122
|
+
- 'spec/api_map/source_to_yard_spec.rb'
|
1123
|
+
- 'spec/api_map/store_spec.rb'
|
1124
|
+
- 'spec/api_map_spec.rb'
|
1125
|
+
- 'spec/complex_type_spec.rb'
|
1126
|
+
- 'spec/convention/struct_definition_spec.rb'
|
1127
|
+
- 'spec/diagnostics/rubocop_spec.rb'
|
1128
|
+
- 'spec/diagnostics/type_check_spec.rb'
|
1129
|
+
- 'spec/diagnostics/update_errors_spec.rb'
|
1130
|
+
- 'spec/diagnostics_spec.rb'
|
1131
|
+
- 'spec/doc_map_spec.rb'
|
1132
|
+
- 'spec/gem_pins_spec.rb'
|
1133
|
+
- 'spec/language_server/host/message_worker_spec.rb'
|
1134
|
+
- 'spec/language_server/host_spec.rb'
|
1135
|
+
- 'spec/language_server/message/completion_item/resolve_spec.rb'
|
1136
|
+
- 'spec/language_server/message/initialize_spec.rb'
|
1137
|
+
- 'spec/language_server/message/text_document/rename_spec.rb'
|
1138
|
+
- 'spec/language_server/message/workspace/did_change_watched_files_spec.rb'
|
1139
|
+
- 'spec/language_server/protocol_spec.rb'
|
1140
|
+
- 'spec/language_server/transport/adapter_spec.rb'
|
1141
|
+
- 'spec/language_server/transport/data_reader_spec.rb'
|
1142
|
+
- 'spec/library_spec.rb'
|
1143
|
+
- 'spec/parser/flow_sensitive_typing_spec.rb'
|
1144
|
+
- 'spec/parser/node_chainer_spec.rb'
|
1145
|
+
- 'spec/parser/node_methods_spec.rb'
|
1146
|
+
- 'spec/parser/node_processor_spec.rb'
|
1147
|
+
- 'spec/pin/base_spec.rb'
|
1148
|
+
- 'spec/pin/base_variable_spec.rb'
|
1149
|
+
- 'spec/pin/constant_spec.rb'
|
1150
|
+
- 'spec/pin/instance_variable_spec.rb'
|
1151
|
+
- 'spec/pin/local_variable_spec.rb'
|
1152
|
+
- 'spec/pin/method_spec.rb'
|
1153
|
+
- 'spec/pin/namespace_spec.rb'
|
1154
|
+
- 'spec/pin/parameter_spec.rb'
|
1155
|
+
- 'spec/position_spec.rb'
|
1156
|
+
- 'spec/rbs_map/core_map_spec.rb'
|
1157
|
+
- 'spec/rbs_map/stdlib_map_spec.rb'
|
1158
|
+
- 'spec/rbs_map_spec.rb'
|
1159
|
+
- 'spec/shell_spec.rb'
|
1160
|
+
- 'spec/source/chain/call_spec.rb'
|
1161
|
+
- 'spec/source/chain/class_variable_spec.rb'
|
1162
|
+
- 'spec/source/chain/global_variable_spec.rb'
|
1163
|
+
- 'spec/source/chain/head_spec.rb'
|
1164
|
+
- 'spec/source/chain/instance_variable_spec.rb'
|
1165
|
+
- 'spec/source/chain_spec.rb'
|
1166
|
+
- 'spec/source/cursor_spec.rb'
|
1167
|
+
- 'spec/source/source_chainer_spec.rb'
|
1168
|
+
- 'spec/source_map/clip_spec.rb'
|
1169
|
+
- 'spec/source_map/mapper_spec.rb'
|
1170
|
+
- 'spec/source_map/node_processor_spec.rb'
|
1171
|
+
- 'spec/source_map_spec.rb'
|
1172
|
+
- 'spec/source_spec.rb'
|
1173
|
+
- 'spec/type_checker/checks_spec.rb'
|
1174
|
+
- 'spec/type_checker/levels/normal_spec.rb'
|
1175
|
+
- 'spec/type_checker/levels/strict_spec.rb'
|
1176
|
+
- 'spec/type_checker/levels/strong_spec.rb'
|
1177
|
+
- 'spec/type_checker/levels/typed_spec.rb'
|
1178
|
+
- 'spec/type_checker/rules_spec.rb'
|
1179
|
+
- 'spec/workspace/config_spec.rb'
|
1180
|
+
- 'spec/workspace_spec.rb'
|
1181
|
+
- 'spec/yard_map/mapper/to_method_spec.rb'
|
1182
|
+
- 'spec/yard_map/mapper_spec.rb'
|
1183
|
+
|
1184
|
+
# Configuration parameters: Max, AllowedGroups.
|
1185
|
+
RSpec/NestedGroups:
|
1186
|
+
Exclude:
|
1187
|
+
- 'spec/complex_type_spec.rb'
|
1188
|
+
|
1189
|
+
# Configuration parameters: AllowedPatterns.
|
1190
|
+
# AllowedPatterns: ^expect_, ^assert_
|
1191
|
+
RSpec/NoExpectationExample:
|
1192
|
+
Exclude:
|
1193
|
+
- 'spec/language_server/protocol_spec.rb'
|
1194
|
+
- 'spec/parser/node_methods_spec.rb'
|
1195
|
+
- 'spec/pin/block_spec.rb'
|
1196
|
+
- 'spec/pin/method_spec.rb'
|
1197
|
+
- 'spec/source/chain/call_spec.rb'
|
1198
|
+
- 'spec/type_checker/checks_spec.rb'
|
1199
|
+
- 'spec/type_checker/levels/typed_spec.rb'
|
1200
|
+
|
1201
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1202
|
+
# Configuration parameters: EnforcedStyle.
|
1203
|
+
# SupportedStyles: not_to, to_not
|
1204
|
+
RSpec/NotToNot:
|
1205
|
+
Exclude:
|
1206
|
+
- 'spec/api_map_spec.rb'
|
1207
|
+
- 'spec/rbs_map/core_map_spec.rb'
|
1208
|
+
|
1209
|
+
RSpec/PendingWithoutReason:
|
1210
|
+
Exclude:
|
1211
|
+
- 'spec/api_map_spec.rb'
|
1212
|
+
- 'spec/complex_type_spec.rb'
|
1213
|
+
- 'spec/parser/node_chainer_spec.rb'
|
1214
|
+
- 'spec/parser/node_methods_spec.rb'
|
1215
|
+
- 'spec/pin/local_variable_spec.rb'
|
1216
|
+
- 'spec/rbs_map/core_map_spec.rb'
|
1217
|
+
- 'spec/source/chain/call_spec.rb'
|
1218
|
+
- 'spec/source/chain_spec.rb'
|
1219
|
+
- 'spec/source_map/clip_spec.rb'
|
1220
|
+
- 'spec/type_checker/levels/strict_spec.rb'
|
1221
|
+
- 'spec/yard_map/mapper/to_method_spec.rb'
|
1222
|
+
|
1223
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1224
|
+
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
|
1225
|
+
# SupportedStyles: inflected, explicit
|
1226
|
+
RSpec/PredicateMatcher:
|
1227
|
+
Exclude:
|
1228
|
+
- 'spec/language_server/message/workspace/did_change_configuration_spec.rb'
|
1229
|
+
- 'spec/source_spec.rb'
|
1230
|
+
|
1231
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1232
|
+
RSpec/ReceiveMessages:
|
1233
|
+
Exclude:
|
1234
|
+
- 'spec/language_server/host_spec.rb'
|
1235
|
+
|
1236
|
+
RSpec/RemoveConst:
|
1237
|
+
Exclude:
|
1238
|
+
- 'spec/diagnostics/rubocop_helpers_spec.rb'
|
1239
|
+
|
1240
|
+
RSpec/RepeatedDescription:
|
1241
|
+
Exclude:
|
1242
|
+
- 'spec/api_map_spec.rb'
|
1243
|
+
- 'spec/language_server/protocol_spec.rb'
|
1244
|
+
- 'spec/parser/node_methods_spec.rb'
|
1245
|
+
- 'spec/source/chain/call_spec.rb'
|
1246
|
+
- 'spec/source/source_chainer_spec.rb'
|
1247
|
+
- 'spec/source_map/clip_spec.rb'
|
1248
|
+
- 'spec/source_map/mapper_spec.rb'
|
1249
|
+
- 'spec/type_checker/levels/normal_spec.rb'
|
1250
|
+
- 'spec/type_checker/levels/strict_spec.rb'
|
1251
|
+
|
1252
|
+
RSpec/RepeatedExample:
|
1253
|
+
Exclude:
|
1254
|
+
- 'spec/api_map_spec.rb'
|
1255
|
+
- 'spec/parser/node_methods_spec.rb'
|
1256
|
+
- 'spec/source/cursor_spec.rb'
|
1257
|
+
- 'spec/source_map/clip_spec.rb'
|
1258
|
+
- 'spec/type_checker/levels/strict_spec.rb'
|
1259
|
+
|
1260
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1261
|
+
RSpec/ScatteredLet:
|
1262
|
+
Exclude:
|
1263
|
+
- 'spec/complex_type_spec.rb'
|
1264
|
+
|
1265
|
+
RSpec/StubbedMock:
|
1266
|
+
Exclude:
|
1267
|
+
- 'spec/language_server/host/message_worker_spec.rb'
|
1268
|
+
|
1269
|
+
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
|
1270
|
+
RSpec/VerifiedDoubles:
|
1271
|
+
Exclude:
|
1272
|
+
- 'spec/complex_type_spec.rb'
|
1273
|
+
- 'spec/language_server/host/diagnoser_spec.rb'
|
1274
|
+
- 'spec/language_server/host/message_worker_spec.rb'
|
1275
|
+
- 'spec/language_server/host_spec.rb'
|
1276
|
+
- 'spec/language_server/message/completion_item/resolve_spec.rb'
|
1277
|
+
- 'spec/language_server/message/extended/check_gem_version_spec.rb'
|
1278
|
+
- 'spec/language_server/message/text_document/formatting_spec.rb'
|
1279
|
+
- 'spec/language_server/message/workspace/did_change_watched_files_spec.rb'
|
1280
|
+
- 'spec/language_server/protocol_spec.rb'
|
1281
|
+
- 'spec/source/chain/class_variable_spec.rb'
|
1282
|
+
- 'spec/source/cursor_spec.rb'
|
1283
|
+
- 'spec/source/source_chainer_spec.rb'
|
1284
|
+
- 'spec/workspace_spec.rb'
|
1285
|
+
|
1286
|
+
Security/MarshalLoad:
|
1287
|
+
Exclude:
|
1288
|
+
- 'lib/solargraph/pin_cache.rb'
|
1289
|
+
|
1290
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1291
|
+
# Configuration parameters: EnforcedStyle, AllowModifiersOnSymbols, AllowModifiersOnAttrs, AllowModifiersOnAliasMethod.
|
1292
|
+
# SupportedStyles: inline, group
|
1293
|
+
Style/AccessModifierDeclarations:
|
1294
|
+
Exclude:
|
1295
|
+
- 'lib/solargraph/api_map.rb'
|
1296
|
+
- 'lib/solargraph/complex_type.rb'
|
1297
|
+
- 'lib/solargraph/complex_type/unique_type.rb'
|
1298
|
+
- 'lib/solargraph/location.rb'
|
1299
|
+
- 'lib/solargraph/pin/base.rb'
|
1300
|
+
- 'lib/solargraph/position.rb'
|
1301
|
+
- 'lib/solargraph/range.rb'
|
1302
|
+
- 'lib/solargraph/source/chain.rb'
|
1303
|
+
- 'lib/solargraph/source/chain/call.rb'
|
1304
|
+
- 'lib/solargraph/source/chain/hash.rb'
|
1305
|
+
- 'lib/solargraph/source/chain/if.rb'
|
1306
|
+
- 'lib/solargraph/source/chain/link.rb'
|
1307
|
+
- 'lib/solargraph/source/chain/literal.rb'
|
1308
|
+
|
1309
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1310
|
+
# Configuration parameters: EnforcedStyle.
|
1311
|
+
# SupportedStyles: separated, grouped
|
1312
|
+
Style/AccessorGrouping:
|
1313
|
+
Exclude:
|
1314
|
+
- 'lib/solargraph/parser/flow_sensitive_typing.rb'
|
1315
|
+
- 'lib/solargraph/pin/base.rb'
|
1316
|
+
- 'lib/solargraph/pin/method.rb'
|
1317
|
+
- 'lib/solargraph/rbs_map.rb'
|
1318
|
+
|
1319
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1320
|
+
# Configuration parameters: EnforcedStyle.
|
1321
|
+
# SupportedStyles: always, conditionals
|
1322
|
+
Style/AndOr:
|
1323
|
+
Exclude:
|
1324
|
+
- 'lib/solargraph/api_map/source_to_yard.rb'
|
1325
|
+
- 'lib/solargraph/complex_type/unique_type.rb'
|
1326
|
+
- 'lib/solargraph/language_server/message/base.rb'
|
1327
|
+
- 'lib/solargraph/page.rb'
|
1328
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
1329
|
+
- 'lib/solargraph/pin/method.rb'
|
1330
|
+
- 'lib/solargraph/pin/parameter.rb'
|
1331
|
+
- 'lib/solargraph/position.rb'
|
1332
|
+
- 'lib/solargraph/source/change.rb'
|
1333
|
+
- 'lib/solargraph/source/cursor.rb'
|
1334
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
1335
|
+
- 'lib/solargraph/source/updater.rb'
|
1336
|
+
- 'lib/solargraph/workspace.rb'
|
1337
|
+
- 'lib/solargraph/yard_map/mapper.rb'
|
1338
|
+
|
1339
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1340
|
+
# Configuration parameters: AllowOnlyRestArgument, UseAnonymousForwarding, RedundantRestArgumentNames, RedundantKeywordRestArgumentNames, RedundantBlockArgumentNames.
|
1341
|
+
# RedundantRestArgumentNames: args, arguments
|
1342
|
+
# RedundantKeywordRestArgumentNames: kwargs, options, opts
|
1343
|
+
# RedundantBlockArgumentNames: blk, block, proc
|
1344
|
+
Style/ArgumentsForwarding:
|
1345
|
+
Exclude:
|
1346
|
+
- 'lib/solargraph/api_map.rb'
|
1347
|
+
- 'lib/solargraph/complex_type.rb'
|
1348
|
+
|
1349
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1350
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
1351
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
1352
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
1353
|
+
# FunctionalMethods: let, let!, subject, watch
|
1354
|
+
# AllowedMethods: lambda, proc, it
|
1355
|
+
Style/BlockDelimiters:
|
1356
|
+
Exclude:
|
1357
|
+
- 'lib/solargraph/api_map/source_to_yard.rb'
|
1358
|
+
- 'lib/solargraph/api_map/store.rb'
|
1359
|
+
- 'lib/solargraph/language_server/host.rb'
|
1360
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
1361
|
+
- 'lib/solargraph/shell.rb'
|
1362
|
+
- 'lib/solargraph/source.rb'
|
1363
|
+
- 'lib/solargraph/source_map/clip.rb'
|
1364
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
1365
|
+
- 'spec/diagnostics/rubocop_spec.rb'
|
1366
|
+
- 'spec/language_server/host_spec.rb'
|
1367
|
+
- 'spec/language_server/message/extended/check_gem_version_spec.rb'
|
1368
|
+
- 'spec/language_server/message/workspace/did_change_watched_files_spec.rb'
|
1369
|
+
- 'spec/language_server/protocol_spec.rb'
|
1370
|
+
- 'spec/language_server/transport/adapter_spec.rb'
|
1371
|
+
- 'spec/language_server/transport/data_reader_spec.rb'
|
1372
|
+
- 'spec/library_spec.rb'
|
1373
|
+
- 'spec/parser/node_processor_spec.rb'
|
1374
|
+
- 'spec/pin/documenting_spec.rb'
|
1375
|
+
- 'spec/position_spec.rb'
|
1376
|
+
- 'spec/source/chain_spec.rb'
|
1377
|
+
- 'spec/source/source_chainer_spec.rb'
|
1378
|
+
- 'spec/source_map/mapper_spec.rb'
|
1379
|
+
- 'spec/source_spec.rb'
|
1380
|
+
- 'spec/type_checker_spec.rb'
|
1381
|
+
- 'spec/workspace_spec.rb'
|
1382
|
+
- 'spec/yard_map/mapper/to_method_spec.rb'
|
1383
|
+
|
1384
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1385
|
+
# Configuration parameters: MinBranchesCount.
|
1386
|
+
Style/CaseLikeIf:
|
1387
|
+
Exclude:
|
1388
|
+
- 'lib/solargraph/language_server/message/workspace/did_change_watched_files.rb'
|
1389
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
1390
|
+
- 'lib/solargraph/pin/parameter.rb'
|
1391
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
1392
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
1393
|
+
- 'lib/solargraph/yard_map/mapper.rb'
|
1394
|
+
|
1395
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1396
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForClasses, EnforcedStyleForModules.
|
1397
|
+
# SupportedStyles: nested, compact
|
1398
|
+
# SupportedStylesForClasses: ~, nested, compact
|
1399
|
+
# SupportedStylesForModules: ~, nested, compact
|
1400
|
+
Style/ClassAndModuleChildren:
|
1401
|
+
Exclude:
|
1402
|
+
- 'lib/solargraph/language_server/message/text_document/definition.rb'
|
1403
|
+
- 'lib/solargraph/language_server/message/text_document/document_highlight.rb'
|
1404
|
+
- 'lib/solargraph/language_server/message/text_document/document_symbol.rb'
|
1405
|
+
- 'lib/solargraph/language_server/message/text_document/prepare_rename.rb'
|
1406
|
+
- 'lib/solargraph/language_server/message/text_document/references.rb'
|
1407
|
+
- 'lib/solargraph/language_server/message/text_document/rename.rb'
|
1408
|
+
- 'lib/solargraph/language_server/message/text_document/type_definition.rb'
|
1409
|
+
- 'lib/solargraph/language_server/message/workspace/did_change_configuration.rb'
|
1410
|
+
- 'lib/solargraph/language_server/message/workspace/did_change_watched_files.rb'
|
1411
|
+
- 'lib/solargraph/language_server/message/workspace/did_change_workspace_folders.rb'
|
1412
|
+
- 'lib/solargraph/language_server/message/workspace/workspace_symbol.rb'
|
1413
|
+
|
1414
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1415
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
1416
|
+
# AllowedMethods: ==, equal?, eql?
|
1417
|
+
Style/ClassEqualityComparison:
|
1418
|
+
Exclude:
|
1419
|
+
- 'lib/solargraph/gem_pins.rb'
|
1420
|
+
- 'lib/solargraph/pin/base.rb'
|
1421
|
+
|
1422
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1423
|
+
# Configuration parameters: AllowedReceivers.
|
1424
|
+
Style/CollectionCompact:
|
1425
|
+
Exclude:
|
1426
|
+
- 'lib/solargraph/pin/constant.rb'
|
1427
|
+
|
1428
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1429
|
+
Style/ColonMethodCall:
|
1430
|
+
Exclude:
|
1431
|
+
- 'spec/type_checker_spec.rb'
|
1432
|
+
|
1433
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1434
|
+
Style/CombinableLoops:
|
1435
|
+
Exclude:
|
1436
|
+
- 'lib/solargraph/pin/parameter.rb'
|
1437
|
+
|
1438
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1439
|
+
Style/ConcatArrayLiterals:
|
1440
|
+
Exclude:
|
1441
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/sclass_node.rb'
|
1442
|
+
|
1443
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1444
|
+
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
1445
|
+
# SupportedStyles: assign_to_condition, assign_inside_condition
|
1446
|
+
Style/ConditionalAssignment:
|
1447
|
+
Exclude:
|
1448
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/defs_node.rb'
|
1449
|
+
- 'lib/solargraph/source/chain/call.rb'
|
1450
|
+
|
1451
|
+
# Configuration parameters: AllowedConstants.
|
1452
|
+
Style/Documentation:
|
1453
|
+
Exclude:
|
1454
|
+
- 'spec/**/*'
|
1455
|
+
- 'test/**/*'
|
1456
|
+
- 'lib/solargraph/api_map/cache.rb'
|
1457
|
+
- 'lib/solargraph/api_map/index.rb'
|
1458
|
+
- 'lib/solargraph/api_map/source_to_yard.rb'
|
1459
|
+
- 'lib/solargraph/convention/data_definition.rb'
|
1460
|
+
- 'lib/solargraph/convention/gemfile.rb'
|
1461
|
+
- 'lib/solargraph/convention/gemspec.rb'
|
1462
|
+
- 'lib/solargraph/convention/rakefile.rb'
|
1463
|
+
- 'lib/solargraph/convention/struct_definition.rb'
|
1464
|
+
- 'lib/solargraph/converters/dd.rb'
|
1465
|
+
- 'lib/solargraph/converters/dl.rb'
|
1466
|
+
- 'lib/solargraph/converters/dt.rb'
|
1467
|
+
- 'lib/solargraph/diagnostics/update_errors.rb'
|
1468
|
+
- 'lib/solargraph/language_server/message/base.rb'
|
1469
|
+
- 'lib/solargraph/language_server/message/cancel_request.rb'
|
1470
|
+
- 'lib/solargraph/language_server/message/client.rb'
|
1471
|
+
- 'lib/solargraph/language_server/message/client/register_capability.rb'
|
1472
|
+
- 'lib/solargraph/language_server/message/completion_item.rb'
|
1473
|
+
- 'lib/solargraph/language_server/message/exit_notification.rb'
|
1474
|
+
- 'lib/solargraph/language_server/message/extended/document.rb'
|
1475
|
+
- 'lib/solargraph/language_server/message/extended/search.rb'
|
1476
|
+
- 'lib/solargraph/language_server/message/initialize.rb'
|
1477
|
+
- 'lib/solargraph/language_server/message/initialized.rb'
|
1478
|
+
- 'lib/solargraph/language_server/message/method_not_found.rb'
|
1479
|
+
- 'lib/solargraph/language_server/message/method_not_implemented.rb'
|
1480
|
+
- 'lib/solargraph/language_server/message/shutdown.rb'
|
1481
|
+
- 'lib/solargraph/language_server/message/text_document.rb'
|
1482
|
+
- 'lib/solargraph/language_server/message/text_document/base.rb'
|
1483
|
+
- 'lib/solargraph/language_server/message/text_document/code_action.rb'
|
1484
|
+
- 'lib/solargraph/language_server/message/text_document/completion.rb'
|
1485
|
+
- 'lib/solargraph/language_server/message/text_document/definition.rb'
|
1486
|
+
- 'lib/solargraph/language_server/message/text_document/did_change.rb'
|
1487
|
+
- 'lib/solargraph/language_server/message/text_document/did_close.rb'
|
1488
|
+
- 'lib/solargraph/language_server/message/text_document/did_open.rb'
|
1489
|
+
- 'lib/solargraph/language_server/message/text_document/did_save.rb'
|
1490
|
+
- 'lib/solargraph/language_server/message/text_document/document_highlight.rb'
|
1491
|
+
- 'lib/solargraph/language_server/message/text_document/document_symbol.rb'
|
1492
|
+
- 'lib/solargraph/language_server/message/text_document/folding_range.rb'
|
1493
|
+
- 'lib/solargraph/language_server/message/text_document/formatting.rb'
|
1494
|
+
- 'lib/solargraph/language_server/message/text_document/hover.rb'
|
1495
|
+
- 'lib/solargraph/language_server/message/text_document/on_type_formatting.rb'
|
1496
|
+
- 'lib/solargraph/language_server/message/text_document/prepare_rename.rb'
|
1497
|
+
- 'lib/solargraph/language_server/message/text_document/references.rb'
|
1498
|
+
- 'lib/solargraph/language_server/message/text_document/rename.rb'
|
1499
|
+
- 'lib/solargraph/language_server/message/text_document/signature_help.rb'
|
1500
|
+
- 'lib/solargraph/language_server/message/text_document/type_definition.rb'
|
1501
|
+
- 'lib/solargraph/language_server/message/workspace.rb'
|
1502
|
+
- 'lib/solargraph/language_server/message/workspace/did_change_configuration.rb'
|
1503
|
+
- 'lib/solargraph/language_server/message/workspace/did_change_watched_files.rb'
|
1504
|
+
- 'lib/solargraph/language_server/message/workspace/did_change_workspace_folders.rb'
|
1505
|
+
- 'lib/solargraph/language_server/message/workspace/workspace_symbol.rb'
|
1506
|
+
- 'lib/solargraph/language_server/request.rb'
|
1507
|
+
- 'lib/solargraph/language_server/transport/data_reader.rb'
|
1508
|
+
- 'lib/solargraph/logging.rb'
|
1509
|
+
- 'lib/solargraph/page.rb'
|
1510
|
+
- 'lib/solargraph/parser.rb'
|
1511
|
+
- 'lib/solargraph/parser/comment_ripper.rb'
|
1512
|
+
- 'lib/solargraph/parser/flow_sensitive_typing.rb'
|
1513
|
+
- 'lib/solargraph/parser/node_methods.rb'
|
1514
|
+
- 'lib/solargraph/parser/node_processor/base.rb'
|
1515
|
+
- 'lib/solargraph/parser/parser_gem.rb'
|
1516
|
+
- 'lib/solargraph/parser/parser_gem/class_methods.rb'
|
1517
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
1518
|
+
- 'lib/solargraph/parser/parser_gem/node_processors.rb'
|
1519
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/alias_node.rb'
|
1520
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/and_node.rb'
|
1521
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/args_node.rb'
|
1522
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/begin_node.rb'
|
1523
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/block_node.rb'
|
1524
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/casgn_node.rb'
|
1525
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/cvasgn_node.rb'
|
1526
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/def_node.rb'
|
1527
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/defs_node.rb'
|
1528
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/gvasgn_node.rb'
|
1529
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/if_node.rb'
|
1530
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/ivasgn_node.rb'
|
1531
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/lvasgn_node.rb'
|
1532
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/masgn_node.rb'
|
1533
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/namespace_node.rb'
|
1534
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/opasgn_node.rb'
|
1535
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/orasgn_node.rb'
|
1536
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/resbody_node.rb'
|
1537
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/sclass_node.rb'
|
1538
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
1539
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/sym_node.rb'
|
1540
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/until_node.rb'
|
1541
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/while_node.rb'
|
1542
|
+
- 'lib/solargraph/parser/snippet.rb'
|
1543
|
+
- 'lib/solargraph/pin/base_variable.rb'
|
1544
|
+
- 'lib/solargraph/pin/block.rb'
|
1545
|
+
- 'lib/solargraph/pin/callable.rb'
|
1546
|
+
- 'lib/solargraph/pin/closure.rb'
|
1547
|
+
- 'lib/solargraph/pin/common.rb'
|
1548
|
+
- 'lib/solargraph/pin/constant.rb'
|
1549
|
+
- 'lib/solargraph/pin/instance_variable.rb'
|
1550
|
+
- 'lib/solargraph/pin/keyword.rb'
|
1551
|
+
- 'lib/solargraph/pin/local_variable.rb'
|
1552
|
+
- 'lib/solargraph/pin/namespace.rb'
|
1553
|
+
- 'lib/solargraph/pin/parameter.rb'
|
1554
|
+
- 'lib/solargraph/pin/proxy_type.rb'
|
1555
|
+
- 'lib/solargraph/pin/reference.rb'
|
1556
|
+
- 'lib/solargraph/pin/reference/override.rb'
|
1557
|
+
- 'lib/solargraph/pin/reference/require.rb'
|
1558
|
+
- 'lib/solargraph/pin/search.rb'
|
1559
|
+
- 'lib/solargraph/pin/signature.rb'
|
1560
|
+
- 'lib/solargraph/pin/singleton.rb'
|
1561
|
+
- 'lib/solargraph/pin/symbol.rb'
|
1562
|
+
- 'lib/solargraph/pin/until.rb'
|
1563
|
+
- 'lib/solargraph/pin/while.rb'
|
1564
|
+
- 'lib/solargraph/pin_cache.rb'
|
1565
|
+
- 'lib/solargraph/rbs_map.rb'
|
1566
|
+
- 'lib/solargraph/server_methods.rb'
|
1567
|
+
- 'lib/solargraph/shell.rb'
|
1568
|
+
- 'lib/solargraph/source/chain/array.rb'
|
1569
|
+
- 'lib/solargraph/source/chain/block_symbol.rb'
|
1570
|
+
- 'lib/solargraph/source/chain/block_variable.rb'
|
1571
|
+
- 'lib/solargraph/source/chain/class_variable.rb'
|
1572
|
+
- 'lib/solargraph/source/chain/constant.rb'
|
1573
|
+
- 'lib/solargraph/source/chain/global_variable.rb'
|
1574
|
+
- 'lib/solargraph/source/chain/hash.rb'
|
1575
|
+
- 'lib/solargraph/source/chain/if.rb'
|
1576
|
+
- 'lib/solargraph/source/chain/instance_variable.rb'
|
1577
|
+
- 'lib/solargraph/source/chain/link.rb'
|
1578
|
+
- 'lib/solargraph/source/chain/literal.rb'
|
1579
|
+
- 'lib/solargraph/source/chain/or.rb'
|
1580
|
+
- 'lib/solargraph/source/chain/q_call.rb'
|
1581
|
+
- 'lib/solargraph/source/chain/variable.rb'
|
1582
|
+
- 'lib/solargraph/source/chain/z_super.rb'
|
1583
|
+
- 'lib/solargraph/source/encoding_fixes.rb'
|
1584
|
+
- 'lib/solargraph/source_map/data.rb'
|
1585
|
+
- 'lib/solargraph/yard_map/cache.rb'
|
1586
|
+
- 'lib/solargraph/yard_map/helpers.rb'
|
1587
|
+
- 'lib/solargraph/yard_map/mapper.rb'
|
1588
|
+
- 'lib/solargraph/yard_map/mapper/to_constant.rb'
|
1589
|
+
- 'lib/solargraph/yard_map/mapper/to_method.rb'
|
1590
|
+
- 'lib/solargraph/yard_map/mapper/to_namespace.rb'
|
1591
|
+
- 'lib/solargraph/yard_map/to_method.rb'
|
1592
|
+
|
1593
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1594
|
+
Style/EmptyLambdaParameter:
|
1595
|
+
Exclude:
|
1596
|
+
- 'spec/rbs_map/core_map_spec.rb'
|
1597
|
+
|
1598
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1599
|
+
# Configuration parameters: EnforcedStyle.
|
1600
|
+
# SupportedStyles: compact, expanded
|
1601
|
+
Style/EmptyMethod:
|
1602
|
+
Exclude:
|
1603
|
+
- 'lib/solargraph/language_server/message/client/register_capability.rb'
|
1604
|
+
- 'lib/solargraph/pin/base.rb'
|
1605
|
+
- 'spec/fixtures/formattable.rb'
|
1606
|
+
- 'spec/fixtures/rdoc-lib/lib/example.rb'
|
1607
|
+
- 'spec/fixtures/workspace-with-gemfile/lib/thing.rb'
|
1608
|
+
|
1609
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1610
|
+
# Configuration parameters: EnforcedStyle.
|
1611
|
+
# SupportedStyles: trailing_conditional, ternary
|
1612
|
+
Style/EmptyStringInsideInterpolation:
|
1613
|
+
Exclude:
|
1614
|
+
- 'lib/solargraph/library.rb'
|
1615
|
+
- 'lib/solargraph/pin/documenting.rb'
|
1616
|
+
- 'lib/solargraph/shell.rb'
|
1617
|
+
|
1618
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1619
|
+
Style/ExpandPathArguments:
|
1620
|
+
Exclude:
|
1621
|
+
- 'solargraph.gemspec'
|
1622
|
+
|
1623
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1624
|
+
# Configuration parameters: AllowedVars, DefaultToNil.
|
1625
|
+
Style/FetchEnvVar:
|
1626
|
+
Exclude:
|
1627
|
+
- 'spec/api_map/config_spec.rb'
|
1628
|
+
- 'spec/spec_helper.rb'
|
1629
|
+
|
1630
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1631
|
+
# Configuration parameters: EnforcedStyle.
|
1632
|
+
# SupportedStyles: left_coerce, right_coerce, single_coerce, fdiv
|
1633
|
+
Style/FloatDivision:
|
1634
|
+
Exclude:
|
1635
|
+
- 'lib/solargraph/library.rb'
|
1636
|
+
- 'lib/solargraph/pin/search.rb'
|
1637
|
+
|
1638
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1639
|
+
# Configuration parameters: EnforcedStyle.
|
1640
|
+
# SupportedStyles: always, always_true, never
|
1641
|
+
Style/FrozenStringLiteralComment:
|
1642
|
+
Exclude:
|
1643
|
+
- '**/*.arb'
|
1644
|
+
- 'Gemfile'
|
1645
|
+
- 'Rakefile'
|
1646
|
+
- 'bin/solargraph'
|
1647
|
+
- 'lib/solargraph/converters/dd.rb'
|
1648
|
+
- 'lib/solargraph/converters/dl.rb'
|
1649
|
+
- 'lib/solargraph/converters/dt.rb'
|
1650
|
+
- 'lib/solargraph/converters/misc.rb'
|
1651
|
+
- 'lib/solargraph/parser.rb'
|
1652
|
+
- 'lib/solargraph/parser/comment_ripper.rb'
|
1653
|
+
- 'lib/solargraph/parser/flow_sensitive_typing.rb'
|
1654
|
+
- 'lib/solargraph/parser/node_methods.rb'
|
1655
|
+
- 'lib/solargraph/parser/parser_gem.rb'
|
1656
|
+
- 'lib/solargraph/parser/snippet.rb'
|
1657
|
+
- 'lib/solargraph/pin/breakable.rb'
|
1658
|
+
- 'lib/solargraph/pin/signature.rb'
|
1659
|
+
- 'lib/solargraph/pin_cache.rb'
|
1660
|
+
- 'lib/solargraph/source/chain/array.rb'
|
1661
|
+
- 'lib/solargraph/source/chain/q_call.rb'
|
1662
|
+
- 'lib/solargraph/yard_map/helpers.rb'
|
1663
|
+
- 'solargraph.gemspec'
|
1664
|
+
- 'spec/api_map/cache_spec.rb'
|
1665
|
+
- 'spec/api_map/config_spec.rb'
|
1666
|
+
- 'spec/api_map/source_to_yard_spec.rb'
|
1667
|
+
- 'spec/api_map_spec.rb'
|
1668
|
+
- 'spec/complex_type_spec.rb'
|
1669
|
+
- 'spec/convention/struct_definition_spec.rb'
|
1670
|
+
- 'spec/convention_spec.rb'
|
1671
|
+
- 'spec/diagnostics/base_spec.rb'
|
1672
|
+
- 'spec/diagnostics/require_not_found_spec.rb'
|
1673
|
+
- 'spec/diagnostics/rubocop_helpers_spec.rb'
|
1674
|
+
- 'spec/diagnostics/type_check_spec.rb'
|
1675
|
+
- 'spec/diagnostics/update_errors_spec.rb'
|
1676
|
+
- 'spec/diagnostics_spec.rb'
|
1677
|
+
- 'spec/fixtures/formattable.rb'
|
1678
|
+
- 'spec/fixtures/long_squiggly_heredoc.rb'
|
1679
|
+
- 'spec/fixtures/rdoc-lib/Gemfile'
|
1680
|
+
- 'spec/fixtures/rdoc-lib/lib/example.rb'
|
1681
|
+
- 'spec/fixtures/rdoc-lib/rdoc-lib.gemspec'
|
1682
|
+
- 'spec/fixtures/rubocop-custom-version/specifications/rubocop-0.0.0.gemspec'
|
1683
|
+
- 'spec/fixtures/rubocop-validation-error/app.rb'
|
1684
|
+
- 'spec/fixtures/unicode.rb'
|
1685
|
+
- 'spec/fixtures/workspace-with-gemfile/Gemfile'
|
1686
|
+
- 'spec/fixtures/workspace-with-gemfile/app.rb'
|
1687
|
+
- 'spec/fixtures/workspace-with-gemfile/lib/other.rb'
|
1688
|
+
- 'spec/fixtures/workspace-with-gemfile/lib/thing.rb'
|
1689
|
+
- 'spec/fixtures/workspace/app.rb'
|
1690
|
+
- 'spec/fixtures/workspace/lib/other.rb'
|
1691
|
+
- 'spec/fixtures/workspace/lib/something.rb'
|
1692
|
+
- 'spec/fixtures/workspace/lib/thing.rb'
|
1693
|
+
- 'spec/fixtures/workspace_folders/folder1/app.rb'
|
1694
|
+
- 'spec/fixtures/workspace_folders/folder2/app.rb'
|
1695
|
+
- 'spec/fixtures/yard_map/attr.rb'
|
1696
|
+
- 'spec/language_server/host/diagnoser_spec.rb'
|
1697
|
+
- 'spec/language_server/host/dispatch_spec.rb'
|
1698
|
+
- 'spec/language_server/host/message_worker_spec.rb'
|
1699
|
+
- 'spec/language_server/host_spec.rb'
|
1700
|
+
- 'spec/language_server/message/completion_item/resolve_spec.rb'
|
1701
|
+
- 'spec/language_server/message/extended/check_gem_version_spec.rb'
|
1702
|
+
- 'spec/language_server/message/initialize_spec.rb'
|
1703
|
+
- 'spec/language_server/message/text_document/definition_spec.rb'
|
1704
|
+
- 'spec/language_server/message/text_document/formatting_spec.rb'
|
1705
|
+
- 'spec/language_server/message/text_document/hover_spec.rb'
|
1706
|
+
- 'spec/language_server/message/text_document/type_definition_spec.rb'
|
1707
|
+
- 'spec/language_server/message/workspace/did_change_watched_files_spec.rb'
|
1708
|
+
- 'spec/language_server/message_spec.rb'
|
1709
|
+
- 'spec/language_server/protocol_spec.rb'
|
1710
|
+
- 'spec/language_server/transport/adapter_spec.rb'
|
1711
|
+
- 'spec/language_server/transport/data_reader_spec.rb'
|
1712
|
+
- 'spec/language_server/uri_helpers_spec.rb'
|
1713
|
+
- 'spec/library_spec.rb'
|
1714
|
+
- 'spec/logging_spec.rb'
|
1715
|
+
- 'spec/parser/node_chainer_spec.rb'
|
1716
|
+
- 'spec/parser/node_methods_spec.rb'
|
1717
|
+
- 'spec/parser/node_processor_spec.rb'
|
1718
|
+
- 'spec/parser_spec.rb'
|
1719
|
+
- 'spec/pin/base_spec.rb'
|
1720
|
+
- 'spec/pin/base_variable_spec.rb'
|
1721
|
+
- 'spec/pin/block_spec.rb'
|
1722
|
+
- 'spec/pin/class_variable_spec.rb'
|
1723
|
+
- 'spec/pin/constant_spec.rb'
|
1724
|
+
- 'spec/pin/delegated_method_spec.rb'
|
1725
|
+
- 'spec/pin/documenting_spec.rb'
|
1726
|
+
- 'spec/pin/instance_variable_spec.rb'
|
1727
|
+
- 'spec/pin/keyword_spec.rb'
|
1728
|
+
- 'spec/pin/local_variable_spec.rb'
|
1729
|
+
- 'spec/pin/method_spec.rb'
|
1730
|
+
- 'spec/pin/namespace_spec.rb'
|
1731
|
+
- 'spec/pin/parameter_spec.rb'
|
1732
|
+
- 'spec/pin/search_spec.rb'
|
1733
|
+
- 'spec/pin/symbol_spec.rb'
|
1734
|
+
- 'spec/position_spec.rb'
|
1735
|
+
- 'spec/rbs_map/conversions_spec.rb'
|
1736
|
+
- 'spec/rbs_map/core_map_spec.rb'
|
1737
|
+
- 'spec/rbs_map/stdlib_map_spec.rb'
|
1738
|
+
- 'spec/rbs_map_spec.rb'
|
1739
|
+
- 'spec/shell_spec.rb'
|
1740
|
+
- 'spec/source/chain/array_spec.rb'
|
1741
|
+
- 'spec/source/chain/call_spec.rb'
|
1742
|
+
- 'spec/source/chain/class_variable_spec.rb'
|
1743
|
+
- 'spec/source/chain/constant_spec.rb'
|
1744
|
+
- 'spec/source/chain/global_variable_spec.rb'
|
1745
|
+
- 'spec/source/chain/head_spec.rb'
|
1746
|
+
- 'spec/source/chain/instance_variable_spec.rb'
|
1747
|
+
- 'spec/source/chain/link_spec.rb'
|
1748
|
+
- 'spec/source/chain/literal_spec.rb'
|
1749
|
+
- 'spec/source/chain/z_super_spec.rb'
|
1750
|
+
- 'spec/source/chain_spec.rb'
|
1751
|
+
- 'spec/source/change_spec.rb'
|
1752
|
+
- 'spec/source/cursor_spec.rb'
|
1753
|
+
- 'spec/source/source_chainer_spec.rb'
|
1754
|
+
- 'spec/source/updater_spec.rb'
|
1755
|
+
- 'spec/source_map/clip_spec.rb'
|
1756
|
+
- 'spec/source_map/mapper_spec.rb'
|
1757
|
+
- 'spec/source_map/node_processor_spec.rb'
|
1758
|
+
- 'spec/source_map_spec.rb'
|
1759
|
+
- 'spec/source_spec.rb'
|
1760
|
+
- 'spec/spec_helper.rb'
|
1761
|
+
- 'spec/type_checker/checks_spec.rb'
|
1762
|
+
- 'spec/type_checker/levels/normal_spec.rb'
|
1763
|
+
- 'spec/type_checker/levels/strict_spec.rb'
|
1764
|
+
- 'spec/type_checker/levels/strong_spec.rb'
|
1765
|
+
- 'spec/type_checker/levels/typed_spec.rb'
|
1766
|
+
- 'spec/type_checker/rules_spec.rb'
|
1767
|
+
- 'spec/type_checker_spec.rb'
|
1768
|
+
- 'spec/workspace/config_spec.rb'
|
1769
|
+
- 'spec/workspace_spec.rb'
|
1770
|
+
- 'spec/yard_map/mapper/to_method_spec.rb'
|
1771
|
+
- 'spec/yard_map/mapper_spec.rb'
|
1772
|
+
|
1773
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1774
|
+
Style/GlobalStdStream:
|
1775
|
+
Exclude:
|
1776
|
+
- 'lib/solargraph/logging.rb'
|
1777
|
+
- 'lib/solargraph/pin/base.rb'
|
1778
|
+
- 'lib/solargraph/shell.rb'
|
1779
|
+
- 'spec/logging_spec.rb'
|
1780
|
+
|
1781
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1782
|
+
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
1783
|
+
Style/GuardClause:
|
1784
|
+
Exclude:
|
1785
|
+
- 'lib/solargraph/api_map.rb'
|
1786
|
+
- 'lib/solargraph/library.rb'
|
1787
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
1788
|
+
- 'lib/solargraph/pin_cache.rb'
|
1789
|
+
- 'lib/solargraph/range.rb'
|
1790
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
1791
|
+
- 'lib/solargraph/source.rb'
|
1792
|
+
- 'lib/solargraph/workspace.rb'
|
1793
|
+
|
1794
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1795
|
+
# Configuration parameters: AllowSplatArgument.
|
1796
|
+
Style/HashConversion:
|
1797
|
+
Exclude:
|
1798
|
+
- 'lib/solargraph/doc_map.rb'
|
1799
|
+
|
1800
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1801
|
+
# Configuration parameters: AllowedReceivers.
|
1802
|
+
# AllowedReceivers: Thread.current
|
1803
|
+
Style/HashEachMethods:
|
1804
|
+
Exclude:
|
1805
|
+
- 'lib/solargraph/library.rb'
|
1806
|
+
- 'lib/solargraph/source.rb'
|
1807
|
+
|
1808
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1809
|
+
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
1810
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
1811
|
+
# SupportedShorthandSyntax: always, never, either, consistent, either_consistent
|
1812
|
+
Style/HashSyntax:
|
1813
|
+
Exclude:
|
1814
|
+
- 'spec/source/chain/class_variable_spec.rb'
|
1815
|
+
- 'spec/source/cursor_spec.rb'
|
1816
|
+
- 'spec/source/source_chainer_spec.rb'
|
1817
|
+
|
1818
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1819
|
+
Style/IdenticalConditionalBranches:
|
1820
|
+
Exclude:
|
1821
|
+
- 'lib/solargraph/library.rb'
|
1822
|
+
- 'lib/solargraph/type_checker.rb'
|
1823
|
+
|
1824
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1825
|
+
# Configuration parameters: AllowIfModifier.
|
1826
|
+
Style/IfInsideElse:
|
1827
|
+
Exclude:
|
1828
|
+
- 'lib/solargraph/complex_type/type_methods.rb'
|
1829
|
+
- 'lib/solargraph/language_server/transport/data_reader.rb'
|
1830
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
1831
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
1832
|
+
- 'lib/solargraph/source_map/clip.rb'
|
1833
|
+
- 'lib/solargraph/type_checker.rb'
|
1834
|
+
|
1835
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1836
|
+
Style/IfUnlessModifier:
|
1837
|
+
Exclude:
|
1838
|
+
- 'lib/solargraph/api_map.rb'
|
1839
|
+
- 'lib/solargraph/api_map/index.rb'
|
1840
|
+
- 'lib/solargraph/complex_type.rb'
|
1841
|
+
- 'lib/solargraph/complex_type/unique_type.rb'
|
1842
|
+
- 'lib/solargraph/doc_map.rb'
|
1843
|
+
- 'lib/solargraph/language_server/message/completion_item/resolve.rb'
|
1844
|
+
- 'lib/solargraph/language_server/message/initialize.rb'
|
1845
|
+
- 'lib/solargraph/language_server/message/text_document/completion.rb'
|
1846
|
+
- 'lib/solargraph/language_server/message/text_document/hover.rb'
|
1847
|
+
- 'lib/solargraph/library.rb'
|
1848
|
+
- 'lib/solargraph/parser/parser_gem/class_methods.rb'
|
1849
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
1850
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
1851
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/sclass_node.rb'
|
1852
|
+
- 'lib/solargraph/pin/base.rb'
|
1853
|
+
- 'lib/solargraph/pin/callable.rb'
|
1854
|
+
- 'lib/solargraph/pin/common.rb'
|
1855
|
+
- 'lib/solargraph/pin/constant.rb'
|
1856
|
+
- 'lib/solargraph/pin/method.rb'
|
1857
|
+
- 'lib/solargraph/pin/parameter.rb'
|
1858
|
+
- 'lib/solargraph/range.rb'
|
1859
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
1860
|
+
- 'lib/solargraph/source/chain.rb'
|
1861
|
+
- 'lib/solargraph/source/chain/call.rb'
|
1862
|
+
- 'lib/solargraph/source/change.rb'
|
1863
|
+
- 'lib/solargraph/source/cursor.rb'
|
1864
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
1865
|
+
- 'lib/solargraph/source_map.rb'
|
1866
|
+
- 'lib/solargraph/source_map/clip.rb'
|
1867
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
1868
|
+
- 'lib/solargraph/type_checker.rb'
|
1869
|
+
- 'lib/solargraph/workspace.rb'
|
1870
|
+
- 'lib/solargraph/workspace/config.rb'
|
1871
|
+
- 'lib/solargraph/yard_map/helpers.rb'
|
1872
|
+
- 'lib/solargraph/yard_map/mapper/to_method.rb'
|
1873
|
+
|
1874
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1875
|
+
# Configuration parameters: EnforcedStyle.
|
1876
|
+
# SupportedStyles: call, braces
|
1877
|
+
Style/LambdaCall:
|
1878
|
+
Exclude:
|
1879
|
+
- 'lib/solargraph/library.rb'
|
1880
|
+
|
1881
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1882
|
+
Style/MapIntoArray:
|
1883
|
+
Exclude:
|
1884
|
+
- 'lib/solargraph/diagnostics/update_errors.rb'
|
1885
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
1886
|
+
- 'lib/solargraph/type_checker/param_def.rb'
|
1887
|
+
|
1888
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1889
|
+
Style/MapToHash:
|
1890
|
+
Exclude:
|
1891
|
+
- 'lib/solargraph/bench.rb'
|
1892
|
+
|
1893
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1894
|
+
Style/MapToSet:
|
1895
|
+
Exclude:
|
1896
|
+
- 'lib/solargraph/library.rb'
|
1897
|
+
- 'spec/source_map/clip_spec.rb'
|
1898
|
+
|
1899
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1900
|
+
# Configuration parameters: EnforcedStyle.
|
1901
|
+
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
1902
|
+
Style/MethodDefParentheses:
|
1903
|
+
Exclude:
|
1904
|
+
- 'lib/solargraph.rb'
|
1905
|
+
- 'lib/solargraph/api_map.rb'
|
1906
|
+
- 'lib/solargraph/api_map/index.rb'
|
1907
|
+
- 'lib/solargraph/api_map/store.rb'
|
1908
|
+
- 'lib/solargraph/complex_type.rb'
|
1909
|
+
- 'lib/solargraph/complex_type/type_methods.rb'
|
1910
|
+
- 'lib/solargraph/complex_type/unique_type.rb'
|
1911
|
+
- 'lib/solargraph/convention.rb'
|
1912
|
+
- 'lib/solargraph/convention/data_definition.rb'
|
1913
|
+
- 'lib/solargraph/convention/data_definition/data_assignment_node.rb'
|
1914
|
+
- 'lib/solargraph/convention/data_definition/data_definition_node.rb'
|
1915
|
+
- 'lib/solargraph/convention/struct_definition.rb'
|
1916
|
+
- 'lib/solargraph/convention/struct_definition/struct_assignment_node.rb'
|
1917
|
+
- 'lib/solargraph/convention/struct_definition/struct_definition_node.rb'
|
1918
|
+
- 'lib/solargraph/diagnostics/rubocop_helpers.rb'
|
1919
|
+
- 'lib/solargraph/doc_map.rb'
|
1920
|
+
- 'lib/solargraph/equality.rb'
|
1921
|
+
- 'lib/solargraph/gem_pins.rb'
|
1922
|
+
- 'lib/solargraph/language_server/host/message_worker.rb'
|
1923
|
+
- 'lib/solargraph/language_server/host/sources.rb'
|
1924
|
+
- 'lib/solargraph/language_server/message/text_document/formatting.rb'
|
1925
|
+
- 'lib/solargraph/location.rb'
|
1926
|
+
- 'lib/solargraph/parser/comment_ripper.rb'
|
1927
|
+
- 'lib/solargraph/parser/flow_sensitive_typing.rb'
|
1928
|
+
- 'lib/solargraph/parser/node_methods.rb'
|
1929
|
+
- 'lib/solargraph/parser/node_processor/base.rb'
|
1930
|
+
- 'lib/solargraph/parser/parser_gem/flawed_builder.rb'
|
1931
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
1932
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
1933
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/args_node.rb'
|
1934
|
+
- 'lib/solargraph/pin/base.rb'
|
1935
|
+
- 'lib/solargraph/pin/base_variable.rb'
|
1936
|
+
- 'lib/solargraph/pin/block.rb'
|
1937
|
+
- 'lib/solargraph/pin/callable.rb'
|
1938
|
+
- 'lib/solargraph/pin/closure.rb'
|
1939
|
+
- 'lib/solargraph/pin/delegated_method.rb'
|
1940
|
+
- 'lib/solargraph/pin/local_variable.rb'
|
1941
|
+
- 'lib/solargraph/pin/method.rb'
|
1942
|
+
- 'lib/solargraph/pin/parameter.rb'
|
1943
|
+
- 'lib/solargraph/pin_cache.rb'
|
1944
|
+
- 'lib/solargraph/position.rb'
|
1945
|
+
- 'lib/solargraph/range.rb'
|
1946
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
1947
|
+
- 'lib/solargraph/shell.rb'
|
1948
|
+
- 'lib/solargraph/source.rb'
|
1949
|
+
- 'lib/solargraph/source/chain/call.rb'
|
1950
|
+
- 'lib/solargraph/source/chain/constant.rb'
|
1951
|
+
- 'lib/solargraph/source_map.rb'
|
1952
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
1953
|
+
- 'lib/solargraph/type_checker.rb'
|
1954
|
+
- 'lib/solargraph/type_checker/checks.rb'
|
1955
|
+
- 'lib/solargraph/yard_map/helpers.rb'
|
1956
|
+
- 'lib/solargraph/yardoc.rb'
|
1957
|
+
- 'spec/doc_map_spec.rb'
|
1958
|
+
- 'spec/fixtures/rdoc-lib/lib/example.rb'
|
1959
|
+
- 'spec/source_map_spec.rb'
|
1960
|
+
- 'spec/spec_helper.rb'
|
1961
|
+
- 'spec/type_checker/levels/normal_spec.rb'
|
1962
|
+
- 'spec/type_checker/levels/strict_spec.rb'
|
1963
|
+
- 'spec/type_checker/levels/strong_spec.rb'
|
1964
|
+
- 'spec/type_checker/levels/typed_spec.rb'
|
1965
|
+
|
1966
|
+
Style/MultilineBlockChain:
|
1967
|
+
Exclude:
|
1968
|
+
- 'lib/solargraph/pin/search.rb'
|
1969
|
+
|
1970
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1971
|
+
Style/MultilineIfModifier:
|
1972
|
+
Exclude:
|
1973
|
+
- 'lib/solargraph/pin/callable.rb'
|
1974
|
+
|
1975
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1976
|
+
Style/MultilineTernaryOperator:
|
1977
|
+
Exclude:
|
1978
|
+
- 'lib/solargraph/language_server/host.rb'
|
1979
|
+
|
1980
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1981
|
+
# Configuration parameters: AllowMethodComparison, ComparisonsThreshold.
|
1982
|
+
Style/MultipleComparison:
|
1983
|
+
Exclude:
|
1984
|
+
- 'lib/solargraph/complex_type.rb'
|
1985
|
+
- 'lib/solargraph/complex_type/type_methods.rb'
|
1986
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
1987
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
1988
|
+
- 'lib/solargraph/pin/base.rb'
|
1989
|
+
- 'lib/solargraph/pin/method.rb'
|
1990
|
+
- 'lib/solargraph/pin/parameter.rb'
|
1991
|
+
- 'lib/solargraph/source.rb'
|
1992
|
+
- 'lib/solargraph/type_checker.rb'
|
1993
|
+
|
1994
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1995
|
+
# Configuration parameters: EnforcedStyle.
|
1996
|
+
# SupportedStyles: literals, strict
|
1997
|
+
Style/MutableConstant:
|
1998
|
+
Exclude:
|
1999
|
+
- 'lib/solargraph/diagnostics/rubocop.rb'
|
2000
|
+
- 'lib/solargraph/logging.rb'
|
2001
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
2002
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
2003
|
+
- 'lib/solargraph/rbs_map/core_fills.rb'
|
2004
|
+
- 'lib/solargraph/yard_map/mapper/to_method.rb'
|
2005
|
+
- 'spec/complex_type_spec.rb'
|
2006
|
+
|
2007
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2008
|
+
# Configuration parameters: EnforcedStyle.
|
2009
|
+
# SupportedStyles: both, prefix, postfix
|
2010
|
+
Style/NegatedIf:
|
2011
|
+
Exclude:
|
2012
|
+
- 'lib/solargraph/language_server/host/diagnoser.rb'
|
2013
|
+
|
2014
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2015
|
+
Style/NegatedIfElseCondition:
|
2016
|
+
Exclude:
|
2017
|
+
- 'lib/solargraph/diagnostics/rubocop.rb'
|
2018
|
+
- 'lib/solargraph/language_server/message/extended/document_gems.rb'
|
2019
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
2020
|
+
- 'lib/solargraph/shell.rb'
|
2021
|
+
- 'lib/solargraph/type_checker.rb'
|
2022
|
+
|
2023
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2024
|
+
Style/NestedTernaryOperator:
|
2025
|
+
Exclude:
|
2026
|
+
- 'lib/solargraph/pin/conversions.rb'
|
2027
|
+
- 'lib/solargraph/pin/method.rb'
|
2028
|
+
|
2029
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2030
|
+
# Configuration parameters: EnforcedStyle, MinBodyLength, AllowConsecutiveConditionals.
|
2031
|
+
# SupportedStyles: skip_modifier_ifs, always
|
2032
|
+
Style/Next:
|
2033
|
+
Exclude:
|
2034
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
2035
|
+
- 'lib/solargraph/pin/signature.rb'
|
2036
|
+
- 'lib/solargraph/source_map/clip.rb'
|
2037
|
+
- 'lib/solargraph/type_checker/checks.rb'
|
2038
|
+
|
2039
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2040
|
+
# Configuration parameters: MinDigits, Strict, AllowedNumbers, AllowedPatterns.
|
2041
|
+
Style/NumericLiterals:
|
2042
|
+
Exclude:
|
2043
|
+
- 'lib/solargraph/language_server/error_codes.rb'
|
2044
|
+
- 'spec/language_server/protocol_spec.rb'
|
2045
|
+
|
2046
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2047
|
+
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
2048
|
+
# SupportedStyles: predicate, comparison
|
2049
|
+
Style/NumericPredicate:
|
2050
|
+
Exclude:
|
2051
|
+
- 'spec/**/*'
|
2052
|
+
- 'lib/solargraph/api_map.rb'
|
2053
|
+
- 'lib/solargraph/api_map/index.rb'
|
2054
|
+
- 'lib/solargraph/api_map/store.rb'
|
2055
|
+
- 'lib/solargraph/complex_type.rb'
|
2056
|
+
- 'lib/solargraph/complex_type/type_methods.rb'
|
2057
|
+
- 'lib/solargraph/complex_type/unique_type.rb'
|
2058
|
+
- 'lib/solargraph/language_server/message/extended/check_gem_version.rb'
|
2059
|
+
- 'lib/solargraph/library.rb'
|
2060
|
+
- 'lib/solargraph/parser/comment_ripper.rb'
|
2061
|
+
- 'lib/solargraph/pin/delegated_method.rb'
|
2062
|
+
- 'lib/solargraph/pin/method.rb'
|
2063
|
+
- 'lib/solargraph/shell.rb'
|
2064
|
+
- 'lib/solargraph/source/chain/array.rb'
|
2065
|
+
- 'lib/solargraph/source/change.rb'
|
2066
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
2067
|
+
- 'lib/solargraph/workspace.rb'
|
2068
|
+
|
2069
|
+
Style/OpenStructUse:
|
2070
|
+
Exclude:
|
2071
|
+
- 'lib/solargraph/page.rb'
|
2072
|
+
|
2073
|
+
# Configuration parameters: AllowedMethods.
|
2074
|
+
# AllowedMethods: respond_to_missing?
|
2075
|
+
Style/OptionalBooleanParameter:
|
2076
|
+
Exclude:
|
2077
|
+
- 'lib/solargraph/api_map.rb'
|
2078
|
+
- 'lib/solargraph/language_server/message/text_document/completion.rb'
|
2079
|
+
- 'lib/solargraph/source/chain.rb'
|
2080
|
+
- 'lib/solargraph/source/chain/hash.rb'
|
2081
|
+
- 'lib/solargraph/source/chain/z_super.rb'
|
2082
|
+
- 'lib/solargraph/source/change.rb'
|
2083
|
+
- 'lib/solargraph/source/updater.rb'
|
2084
|
+
|
2085
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2086
|
+
# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
|
2087
|
+
Style/ParenthesesAroundCondition:
|
2088
|
+
Exclude:
|
2089
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
2090
|
+
- 'lib/solargraph/type_checker.rb'
|
2091
|
+
|
2092
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2093
|
+
# Configuration parameters: EnforcedStyle.
|
2094
|
+
# SupportedStyles: short, verbose
|
2095
|
+
Style/PreferredHashMethods:
|
2096
|
+
Exclude:
|
2097
|
+
- 'lib/solargraph/language_server/message.rb'
|
2098
|
+
|
2099
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2100
|
+
# Configuration parameters: Methods.
|
2101
|
+
Style/RedundantArgument:
|
2102
|
+
Exclude:
|
2103
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
2104
|
+
|
2105
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2106
|
+
Style/RedundantAssignment:
|
2107
|
+
Exclude:
|
2108
|
+
- 'lib/solargraph/language_server/host/dispatch.rb'
|
2109
|
+
- 'lib/solargraph/workspace/config.rb'
|
2110
|
+
|
2111
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2112
|
+
Style/RedundantBegin:
|
2113
|
+
Exclude:
|
2114
|
+
- 'lib/solargraph/language_server/transport/data_reader.rb'
|
2115
|
+
- 'lib/solargraph/shell.rb'
|
2116
|
+
- 'lib/solargraph/source/cursor.rb'
|
2117
|
+
- 'lib/solargraph/source/encoding_fixes.rb'
|
2118
|
+
- 'lib/solargraph/workspace.rb'
|
2119
|
+
|
2120
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2121
|
+
Style/RedundantException:
|
2122
|
+
Exclude:
|
2123
|
+
- 'spec/language_server/host_spec.rb'
|
2124
|
+
|
2125
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2126
|
+
Style/RedundantFreeze:
|
2127
|
+
Exclude:
|
2128
|
+
- 'lib/solargraph/complex_type.rb'
|
2129
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
2130
|
+
|
2131
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2132
|
+
Style/RedundantInterpolation:
|
2133
|
+
Exclude:
|
2134
|
+
- 'lib/solargraph/api_map/store.rb'
|
2135
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
2136
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
2137
|
+
|
2138
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2139
|
+
Style/RedundantParentheses:
|
2140
|
+
Exclude:
|
2141
|
+
- 'lib/solargraph/diagnostics/type_check.rb'
|
2142
|
+
- 'lib/solargraph/language_server/message/initialize.rb'
|
2143
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
2144
|
+
- 'lib/solargraph/pin/method.rb'
|
2145
|
+
- 'lib/solargraph/pin/parameter.rb'
|
2146
|
+
- 'lib/solargraph/pin/search.rb'
|
2147
|
+
- 'lib/solargraph/source.rb'
|
2148
|
+
- 'lib/solargraph/type_checker.rb'
|
2149
|
+
|
2150
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2151
|
+
Style/RedundantRegexpArgument:
|
2152
|
+
Exclude:
|
2153
|
+
- 'lib/solargraph/api_map/index.rb'
|
2154
|
+
- 'lib/solargraph/workspace/config.rb'
|
2155
|
+
- 'spec/diagnostics/rubocop_helpers_spec.rb'
|
2156
|
+
- 'spec/diagnostics/rubocop_spec.rb'
|
2157
|
+
- 'spec/language_server/host_spec.rb'
|
2158
|
+
|
2159
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2160
|
+
Style/RedundantRegexpEscape:
|
2161
|
+
Exclude:
|
2162
|
+
- 'lib/solargraph/complex_type.rb'
|
2163
|
+
- 'lib/solargraph/diagnostics/rubocop.rb'
|
2164
|
+
- 'lib/solargraph/language_server/uri_helpers.rb'
|
2165
|
+
- 'lib/solargraph/shell.rb'
|
2166
|
+
- 'lib/solargraph/source_map/clip.rb'
|
2167
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
2168
|
+
|
2169
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2170
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
2171
|
+
Style/RedundantReturn:
|
2172
|
+
Exclude:
|
2173
|
+
- 'lib/solargraph/api_map.rb'
|
2174
|
+
- 'lib/solargraph/complex_type/type_methods.rb'
|
2175
|
+
- 'lib/solargraph/doc_map.rb'
|
2176
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
2177
|
+
- 'lib/solargraph/source/chain/z_super.rb'
|
2178
|
+
|
2179
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2180
|
+
Style/RedundantSelf:
|
2181
|
+
Exclude:
|
2182
|
+
- 'lib/solargraph/api_map.rb'
|
2183
|
+
- 'lib/solargraph/equality.rb'
|
2184
|
+
- 'lib/solargraph/location.rb'
|
2185
|
+
- 'lib/solargraph/pin/base.rb'
|
2186
|
+
- 'lib/solargraph/pin/callable.rb'
|
2187
|
+
- 'lib/solargraph/pin/signature.rb'
|
2188
|
+
- 'lib/solargraph/source/chain.rb'
|
2189
|
+
- 'lib/solargraph/source/chain/link.rb'
|
2190
|
+
|
2191
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2192
|
+
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
2193
|
+
# SupportedStyles: slashes, percent_r, mixed
|
2194
|
+
Style/RegexpLiteral:
|
2195
|
+
Exclude:
|
2196
|
+
- 'lib/solargraph/language_server/uri_helpers.rb'
|
2197
|
+
- 'lib/solargraph/workspace/config.rb'
|
2198
|
+
|
2199
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2200
|
+
# Configuration parameters: EnforcedStyle.
|
2201
|
+
# SupportedStyles: implicit, explicit
|
2202
|
+
Style/RescueStandardError:
|
2203
|
+
Exclude:
|
2204
|
+
- 'lib/solargraph/pin/base.rb'
|
2205
|
+
|
2206
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2207
|
+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
2208
|
+
# AllowedMethods: present?, blank?, presence, try, try!
|
2209
|
+
Style/SafeNavigation:
|
2210
|
+
Exclude:
|
2211
|
+
- 'lib/solargraph/api_map/index.rb'
|
2212
|
+
- 'lib/solargraph/doc_map.rb'
|
2213
|
+
- 'lib/solargraph/language_server/message/completion_item/resolve.rb'
|
2214
|
+
- 'lib/solargraph/language_server/request.rb'
|
2215
|
+
- 'lib/solargraph/language_server/transport/data_reader.rb'
|
2216
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
2217
|
+
- 'lib/solargraph/pin/base.rb'
|
2218
|
+
- 'lib/solargraph/pin/conversions.rb'
|
2219
|
+
- 'lib/solargraph/pin/method.rb'
|
2220
|
+
- 'lib/solargraph/pin_cache.rb'
|
2221
|
+
- 'lib/solargraph/range.rb'
|
2222
|
+
- 'lib/solargraph/type_checker.rb'
|
2223
|
+
|
2224
|
+
# Configuration parameters: Max.
|
2225
|
+
Style/SafeNavigationChainLength:
|
2226
|
+
Exclude:
|
2227
|
+
- 'lib/solargraph/doc_map.rb'
|
2228
|
+
|
2229
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2230
|
+
Style/SlicingWithRange:
|
2231
|
+
Exclude:
|
2232
|
+
- 'lib/solargraph/api_map.rb'
|
2233
|
+
- 'lib/solargraph/complex_type/unique_type.rb'
|
2234
|
+
- 'lib/solargraph/convention/data_definition/data_definition_node.rb'
|
2235
|
+
- 'lib/solargraph/convention/struct_definition/struct_definition_node.rb'
|
2236
|
+
- 'lib/solargraph/diagnostics/rubocop_helpers.rb'
|
2237
|
+
- 'lib/solargraph/library.rb'
|
2238
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
2239
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
2240
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
2241
|
+
- 'lib/solargraph/pin/method.rb'
|
2242
|
+
- 'lib/solargraph/pin/namespace.rb'
|
2243
|
+
- 'lib/solargraph/source.rb'
|
2244
|
+
- 'lib/solargraph/source/chain/constant.rb'
|
2245
|
+
- 'lib/solargraph/source/change.rb'
|
2246
|
+
- 'lib/solargraph/source/cursor.rb'
|
2247
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
2248
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
2249
|
+
- 'lib/solargraph/type_checker/checks.rb'
|
2250
|
+
|
2251
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2252
|
+
# Configuration parameters: AllowModifier.
|
2253
|
+
Style/SoleNestedConditional:
|
2254
|
+
Exclude:
|
2255
|
+
- 'lib/solargraph/complex_type/unique_type.rb'
|
2256
|
+
- 'lib/solargraph/parser/flow_sensitive_typing.rb'
|
2257
|
+
- 'lib/solargraph/pin/parameter.rb'
|
2258
|
+
- 'lib/solargraph/source.rb'
|
2259
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
2260
|
+
- 'lib/solargraph/type_checker.rb'
|
2261
|
+
|
2262
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2263
|
+
Style/StderrPuts:
|
2264
|
+
Exclude:
|
2265
|
+
- 'lib/solargraph/pin/base.rb'
|
2266
|
+
- 'lib/solargraph/shell.rb'
|
2267
|
+
|
2268
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2269
|
+
# Configuration parameters: Mode.
|
2270
|
+
Style/StringConcatenation:
|
2271
|
+
Exclude:
|
2272
|
+
- 'lib/solargraph/api_map.rb'
|
2273
|
+
- 'lib/solargraph/api_map/index.rb'
|
2274
|
+
- 'lib/solargraph/pin/base.rb'
|
2275
|
+
- 'lib/solargraph/pin/callable.rb'
|
2276
|
+
- 'lib/solargraph/pin/closure.rb'
|
2277
|
+
- 'lib/solargraph/pin/local_variable.rb'
|
2278
|
+
- 'lib/solargraph/pin/method.rb'
|
2279
|
+
- 'lib/solargraph/pin/namespace.rb'
|
2280
|
+
- 'solargraph.gemspec'
|
2281
|
+
|
2282
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2283
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
2284
|
+
# SupportedStyles: single_quotes, double_quotes
|
2285
|
+
Style/StringLiterals:
|
2286
|
+
Exclude:
|
2287
|
+
- 'Gemfile'
|
2288
|
+
- 'Rakefile'
|
2289
|
+
- 'lib/solargraph/api_map/index.rb'
|
2290
|
+
- 'lib/solargraph/complex_type.rb'
|
2291
|
+
- 'lib/solargraph/complex_type/unique_type.rb'
|
2292
|
+
- 'lib/solargraph/convention/struct_definition.rb'
|
2293
|
+
- 'lib/solargraph/doc_map.rb'
|
2294
|
+
- 'lib/solargraph/language_server/host.rb'
|
2295
|
+
- 'lib/solargraph/language_server/message/extended/document_gems.rb'
|
2296
|
+
- 'lib/solargraph/language_server/message/extended/download_core.rb'
|
2297
|
+
- 'lib/solargraph/language_server/message/initialize.rb'
|
2298
|
+
- 'lib/solargraph/language_server/message/text_document/completion.rb'
|
2299
|
+
- 'lib/solargraph/library.rb'
|
2300
|
+
- 'lib/solargraph/parser/parser_gem/class_methods.rb'
|
2301
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
2302
|
+
- 'lib/solargraph/pin/base.rb'
|
2303
|
+
- 'lib/solargraph/pin/conversions.rb'
|
2304
|
+
- 'lib/solargraph/pin/method.rb'
|
2305
|
+
- 'lib/solargraph/pin/parameter.rb'
|
2306
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
2307
|
+
- 'lib/solargraph/server_methods.rb'
|
2308
|
+
- 'lib/solargraph/shell.rb'
|
2309
|
+
- 'lib/solargraph/workspace.rb'
|
2310
|
+
- 'lib/solargraph/yard_map/mapper/to_method.rb'
|
2311
|
+
- 'lib/solargraph/yard_tags.rb'
|
2312
|
+
- 'solargraph.gemspec'
|
2313
|
+
- 'spec/api_map/cache_spec.rb'
|
2314
|
+
- 'spec/api_map/config_spec.rb'
|
2315
|
+
- 'spec/api_map/source_to_yard_spec.rb'
|
2316
|
+
- 'spec/complex_type_spec.rb'
|
2317
|
+
- 'spec/convention/struct_definition_spec.rb'
|
2318
|
+
- 'spec/diagnostics/base_spec.rb'
|
2319
|
+
- 'spec/diagnostics/require_not_found_spec.rb'
|
2320
|
+
- 'spec/diagnostics/rubocop_helpers_spec.rb'
|
2321
|
+
- 'spec/diagnostics/rubocop_spec.rb'
|
2322
|
+
- 'spec/diagnostics/type_check_spec.rb'
|
2323
|
+
- 'spec/diagnostics/update_errors_spec.rb'
|
2324
|
+
- 'spec/diagnostics_spec.rb'
|
2325
|
+
- 'spec/fixtures/rdoc-lib/rdoc-lib.gemspec'
|
2326
|
+
- 'spec/language_server/host/diagnoser_spec.rb'
|
2327
|
+
- 'spec/language_server/host/dispatch_spec.rb'
|
2328
|
+
- 'spec/language_server/host/message_worker_spec.rb'
|
2329
|
+
- 'spec/language_server/host_spec.rb'
|
2330
|
+
- 'spec/language_server/message/completion_item/resolve_spec.rb'
|
2331
|
+
- 'spec/language_server/message/extended/check_gem_version_spec.rb'
|
2332
|
+
- 'spec/language_server/message/initialize_spec.rb'
|
2333
|
+
- 'spec/language_server/message/text_document/rename_spec.rb'
|
2334
|
+
- 'spec/language_server/message_spec.rb'
|
2335
|
+
- 'spec/language_server/protocol_spec.rb'
|
2336
|
+
- 'spec/language_server/transport/adapter_spec.rb'
|
2337
|
+
- 'spec/language_server/transport/data_reader_spec.rb'
|
2338
|
+
- 'spec/library_spec.rb'
|
2339
|
+
- 'spec/logging_spec.rb'
|
2340
|
+
- 'spec/parser/node_chainer_spec.rb'
|
2341
|
+
- 'spec/parser/node_methods_spec.rb'
|
2342
|
+
- 'spec/parser_spec.rb'
|
2343
|
+
- 'spec/pin/base_spec.rb'
|
2344
|
+
- 'spec/pin/base_variable_spec.rb'
|
2345
|
+
- 'spec/pin/constant_spec.rb'
|
2346
|
+
- 'spec/pin/instance_variable_spec.rb'
|
2347
|
+
- 'spec/pin/keyword_spec.rb'
|
2348
|
+
- 'spec/pin/local_variable_spec.rb'
|
2349
|
+
- 'spec/pin/namespace_spec.rb'
|
2350
|
+
- 'spec/pin/symbol_spec.rb'
|
2351
|
+
- 'spec/position_spec.rb'
|
2352
|
+
- 'spec/rbs_map/conversions_spec.rb'
|
2353
|
+
- 'spec/rbs_map/core_map_spec.rb'
|
2354
|
+
- 'spec/rbs_map/stdlib_map_spec.rb'
|
2355
|
+
- 'spec/shell_spec.rb'
|
2356
|
+
- 'spec/source/chain/array_spec.rb'
|
2357
|
+
- 'spec/source/chain/call_spec.rb'
|
2358
|
+
- 'spec/source/chain/class_variable_spec.rb'
|
2359
|
+
- 'spec/source/chain/constant_spec.rb'
|
2360
|
+
- 'spec/source/chain/global_variable_spec.rb'
|
2361
|
+
- 'spec/source/chain/head_spec.rb'
|
2362
|
+
- 'spec/source/chain/instance_variable_spec.rb'
|
2363
|
+
- 'spec/source/chain/link_spec.rb'
|
2364
|
+
- 'spec/source/chain/literal_spec.rb'
|
2365
|
+
- 'spec/source/chain/z_super_spec.rb'
|
2366
|
+
- 'spec/source/chain_spec.rb'
|
2367
|
+
- 'spec/source/change_spec.rb'
|
2368
|
+
- 'spec/source/cursor_spec.rb'
|
2369
|
+
- 'spec/source/source_chainer_spec.rb'
|
2370
|
+
- 'spec/source/updater_spec.rb'
|
2371
|
+
- 'spec/source_map/clip_spec.rb'
|
2372
|
+
- 'spec/source_map/mapper_spec.rb'
|
2373
|
+
- 'spec/source_map_spec.rb'
|
2374
|
+
- 'spec/source_spec.rb'
|
2375
|
+
- 'spec/type_checker/levels/strict_spec.rb'
|
2376
|
+
- 'spec/workspace/config_spec.rb'
|
2377
|
+
- 'spec/workspace_spec.rb'
|
2378
|
+
- 'spec/yard_map/mapper/to_method_spec.rb'
|
2379
|
+
|
2380
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2381
|
+
Style/SuperArguments:
|
2382
|
+
Exclude:
|
2383
|
+
- 'lib/solargraph/pin/base_variable.rb'
|
2384
|
+
- 'lib/solargraph/pin/callable.rb'
|
2385
|
+
- 'lib/solargraph/pin/method.rb'
|
2386
|
+
- 'lib/solargraph/pin/signature.rb'
|
2387
|
+
|
2388
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2389
|
+
# Configuration parameters: EnforcedStyle, MinSize.
|
2390
|
+
# SupportedStyles: percent, brackets
|
2391
|
+
Style/SymbolArray:
|
2392
|
+
Exclude:
|
2393
|
+
- 'lib/solargraph/api_map.rb'
|
2394
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
2395
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
2396
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/block_node.rb'
|
2397
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
2398
|
+
- 'lib/solargraph/pin/method.rb'
|
2399
|
+
- 'lib/solargraph/pin/parameter.rb'
|
2400
|
+
- 'lib/solargraph/shell.rb'
|
2401
|
+
- 'lib/solargraph/source.rb'
|
2402
|
+
- 'lib/solargraph/source/chain/literal.rb'
|
2403
|
+
- 'lib/solargraph/source_map/clip.rb'
|
2404
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
2405
|
+
- 'lib/solargraph/type_checker.rb'
|
2406
|
+
- 'spec/parser/node_methods_spec.rb'
|
2407
|
+
- 'spec/source_map/mapper_spec.rb'
|
2408
|
+
|
2409
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2410
|
+
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
|
2411
|
+
# AllowedMethods: define_method
|
2412
|
+
Style/SymbolProc:
|
2413
|
+
Exclude:
|
2414
|
+
- 'lib/solargraph/gem_pins.rb'
|
2415
|
+
- 'lib/solargraph/language_server/message/text_document/hover.rb'
|
2416
|
+
- 'lib/solargraph/language_server/message/text_document/signature_help.rb'
|
2417
|
+
- 'lib/solargraph/parser/flow_sensitive_typing.rb'
|
2418
|
+
- 'lib/solargraph/pin/base.rb'
|
2419
|
+
- 'lib/solargraph/pin/callable.rb'
|
2420
|
+
- 'lib/solargraph/pin/closure.rb'
|
2421
|
+
|
2422
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2423
|
+
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
2424
|
+
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
2425
|
+
Style/TernaryParentheses:
|
2426
|
+
Exclude:
|
2427
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
2428
|
+
|
2429
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2430
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
2431
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
2432
|
+
Style/TrailingCommaInArguments:
|
2433
|
+
Exclude:
|
2434
|
+
- 'lib/solargraph/api_map.rb'
|
2435
|
+
- 'lib/solargraph/parser/node_processor.rb'
|
2436
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/block_node.rb'
|
2437
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/def_node.rb'
|
2438
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/defs_node.rb'
|
2439
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/sclass_node.rb'
|
2440
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/until_node.rb'
|
2441
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/while_node.rb'
|
2442
|
+
- 'lib/solargraph/pin/method.rb'
|
2443
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
2444
|
+
- 'lib/solargraph/yard_map/mapper/to_method.rb'
|
2445
|
+
- 'lib/solargraph/yard_map/mapper/to_namespace.rb'
|
2446
|
+
|
2447
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2448
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
2449
|
+
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
2450
|
+
Style/TrailingCommaInArrayLiteral:
|
2451
|
+
Exclude:
|
2452
|
+
- 'lib/solargraph/language_server/message/text_document/formatting.rb'
|
2453
|
+
- 'lib/solargraph/rbs_map/core_fills.rb'
|
2454
|
+
|
2455
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2456
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
2457
|
+
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
2458
|
+
Style/TrailingCommaInHashLiteral:
|
2459
|
+
Exclude:
|
2460
|
+
- 'lib/solargraph/pin/base_variable.rb'
|
2461
|
+
- 'lib/solargraph/pin/callable.rb'
|
2462
|
+
- 'lib/solargraph/pin/closure.rb'
|
2463
|
+
- 'lib/solargraph/pin/local_variable.rb'
|
2464
|
+
- 'lib/solargraph/pin/parameter.rb'
|
2465
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
2466
|
+
|
2467
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2468
|
+
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
|
2469
|
+
# AllowedMethods: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
|
2470
|
+
Style/TrivialAccessors:
|
2471
|
+
Exclude:
|
2472
|
+
- 'lib/solargraph/language_server/message/extended/check_gem_version.rb'
|
2473
|
+
- 'lib/solargraph/pin/keyword.rb'
|
2474
|
+
|
2475
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2476
|
+
Style/WhileUntilModifier:
|
2477
|
+
Exclude:
|
2478
|
+
- 'lib/solargraph/complex_type.rb'
|
2479
|
+
|
2480
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2481
|
+
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
|
2482
|
+
# SupportedStyles: percent, brackets
|
2483
|
+
Style/WordArray:
|
2484
|
+
Exclude:
|
2485
|
+
- 'lib/solargraph/complex_type.rb'
|
2486
|
+
- 'lib/solargraph/complex_type/unique_type.rb'
|
2487
|
+
- 'lib/solargraph/diagnostics/type_check.rb'
|
2488
|
+
- 'lib/solargraph/language_server/message/text_document/formatting.rb'
|
2489
|
+
- 'spec/doc_map_spec.rb'
|
2490
|
+
- 'spec/parser/node_chainer_spec.rb'
|
2491
|
+
- 'spec/pin/method_spec.rb'
|
2492
|
+
- 'spec/source/cursor_spec.rb'
|
2493
|
+
- 'spec/source/source_chainer_spec.rb'
|
2494
|
+
- 'spec/source_map/clip_spec.rb'
|
2495
|
+
- 'spec/source_map/mapper_spec.rb'
|
2496
|
+
- 'spec/source_map_spec.rb'
|
2497
|
+
- 'spec/source_spec.rb'
|
2498
|
+
|
2499
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2500
|
+
Style/YAMLFileRead:
|
2501
|
+
Exclude:
|
2502
|
+
- 'lib/solargraph/workspace/config.rb'
|
2503
|
+
|
2504
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2505
|
+
Style/ZeroLengthPredicate:
|
2506
|
+
Exclude:
|
2507
|
+
- 'lib/solargraph/api_map.rb'
|
2508
|
+
- 'lib/solargraph/api_map/index.rb'
|
2509
|
+
- 'lib/solargraph/language_server/host.rb'
|
2510
|
+
- 'lib/solargraph/pin/method.rb'
|
2511
|
+
- 'lib/solargraph/source/chain/array.rb'
|
2512
|
+
- 'spec/language_server/protocol_spec.rb'
|
2513
|
+
|
2514
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2515
|
+
# Configuration parameters: EnforcedStyle.
|
2516
|
+
# SupportedStyles: long, short
|
2517
|
+
YARD/CollectionType:
|
2518
|
+
Exclude:
|
2519
|
+
- 'lib/solargraph/range.rb'
|
2520
|
+
|
2521
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2522
|
+
# Configuration parameters: EnforcedStylePrototypeName.
|
2523
|
+
# SupportedStylesPrototypeName: before, after
|
2524
|
+
YARD/MismatchName:
|
2525
|
+
Exclude:
|
2526
|
+
- 'lib/solargraph/complex_type.rb'
|
2527
|
+
- 'lib/solargraph/complex_type/unique_type.rb'
|
2528
|
+
- 'lib/solargraph/language_server/host.rb'
|
2529
|
+
- 'lib/solargraph/language_server/host/dispatch.rb'
|
2530
|
+
- 'lib/solargraph/language_server/request.rb'
|
2531
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
2532
|
+
- 'lib/solargraph/parser/region.rb'
|
2533
|
+
- 'lib/solargraph/pin/base.rb'
|
2534
|
+
- 'lib/solargraph/pin/base_variable.rb'
|
2535
|
+
- 'lib/solargraph/pin/block.rb'
|
2536
|
+
- 'lib/solargraph/pin/callable.rb'
|
2537
|
+
- 'lib/solargraph/pin/closure.rb'
|
2538
|
+
- 'lib/solargraph/pin/delegated_method.rb'
|
2539
|
+
- 'lib/solargraph/pin/method.rb'
|
2540
|
+
- 'lib/solargraph/pin/namespace.rb'
|
2541
|
+
- 'lib/solargraph/pin/parameter.rb'
|
2542
|
+
- 'lib/solargraph/pin/proxy_type.rb'
|
2543
|
+
- 'lib/solargraph/pin/reference.rb'
|
2544
|
+
- 'lib/solargraph/pin/symbol.rb'
|
2545
|
+
- 'lib/solargraph/pin/until.rb'
|
2546
|
+
- 'lib/solargraph/pin/while.rb'
|
2547
|
+
- 'lib/solargraph/pin_cache.rb'
|
2548
|
+
- 'lib/solargraph/source/chain/call.rb'
|
2549
|
+
- 'lib/solargraph/source/chain/z_super.rb'
|
2550
|
+
- 'lib/solargraph/type_checker.rb'
|
2551
|
+
|
2552
|
+
YARD/TagTypeSyntax:
|
2553
|
+
Exclude:
|
2554
|
+
- 'lib/solargraph/language_server/host.rb'
|
2555
|
+
- 'lib/solargraph/parser/comment_ripper.rb'
|
2556
|
+
- 'lib/solargraph/type_checker.rb'
|
2557
|
+
|
2558
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2559
|
+
# Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
2560
|
+
# URISchemes: http, https
|
2561
|
+
Layout/LineLength:
|
2562
|
+
Exclude:
|
2563
|
+
- 'lib/solargraph/api_map.rb'
|
2564
|
+
- 'lib/solargraph/api_map/source_to_yard.rb'
|
2565
|
+
- 'lib/solargraph/api_map/store.rb'
|
2566
|
+
- 'lib/solargraph/complex_type.rb'
|
2567
|
+
- 'lib/solargraph/complex_type/unique_type.rb'
|
2568
|
+
- 'lib/solargraph/convention/data_definition.rb'
|
2569
|
+
- 'lib/solargraph/doc_map.rb'
|
2570
|
+
- 'lib/solargraph/gem_pins.rb'
|
2571
|
+
- 'lib/solargraph/language_server/host.rb'
|
2572
|
+
- 'lib/solargraph/language_server/message/extended/check_gem_version.rb'
|
2573
|
+
- 'lib/solargraph/language_server/message/extended/download_core.rb'
|
2574
|
+
- 'lib/solargraph/language_server/message/initialize.rb'
|
2575
|
+
- 'lib/solargraph/language_server/message/text_document/completion.rb'
|
2576
|
+
- 'lib/solargraph/language_server/message/text_document/definition.rb'
|
2577
|
+
- 'lib/solargraph/language_server/message/text_document/document_highlight.rb'
|
2578
|
+
- 'lib/solargraph/language_server/message/text_document/prepare_rename.rb'
|
2579
|
+
- 'lib/solargraph/language_server/message/text_document/references.rb'
|
2580
|
+
- 'lib/solargraph/language_server/message/text_document/rename.rb'
|
2581
|
+
- 'lib/solargraph/language_server/message/workspace/did_change_watched_files.rb'
|
2582
|
+
- 'lib/solargraph/library.rb'
|
2583
|
+
- 'lib/solargraph/parser/comment_ripper.rb'
|
2584
|
+
- 'lib/solargraph/parser/flow_sensitive_typing.rb'
|
2585
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
2586
|
+
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
2587
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/and_node.rb'
|
2588
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/if_node.rb'
|
2589
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/ivasgn_node.rb'
|
2590
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/masgn_node.rb'
|
2591
|
+
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
2592
|
+
- 'lib/solargraph/pin/base.rb'
|
2593
|
+
- 'lib/solargraph/pin/callable.rb'
|
2594
|
+
- 'lib/solargraph/pin/common.rb'
|
2595
|
+
- 'lib/solargraph/pin/documenting.rb'
|
2596
|
+
- 'lib/solargraph/pin/method.rb'
|
2597
|
+
- 'lib/solargraph/pin/parameter.rb'
|
2598
|
+
- 'lib/solargraph/rbs_map/conversions.rb'
|
2599
|
+
- 'lib/solargraph/rbs_map/core_fills.rb'
|
2600
|
+
- 'lib/solargraph/shell.rb'
|
2601
|
+
- 'lib/solargraph/source.rb'
|
2602
|
+
- 'lib/solargraph/source/chain.rb'
|
2603
|
+
- 'lib/solargraph/source/chain/call.rb'
|
2604
|
+
- 'lib/solargraph/source/chain/if.rb'
|
2605
|
+
- 'lib/solargraph/source/chain/instance_variable.rb'
|
2606
|
+
- 'lib/solargraph/source/chain/variable.rb'
|
2607
|
+
- 'lib/solargraph/source/cursor.rb'
|
2608
|
+
- 'lib/solargraph/source/encoding_fixes.rb'
|
2609
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
2610
|
+
- 'lib/solargraph/source_map.rb'
|
2611
|
+
- 'lib/solargraph/source_map/clip.rb'
|
2612
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
2613
|
+
- 'lib/solargraph/type_checker.rb'
|
2614
|
+
- 'lib/solargraph/workspace.rb'
|
2615
|
+
- 'lib/solargraph/workspace/config.rb'
|
2616
|
+
- 'lib/solargraph/yard_map/mapper/to_method.rb'
|
2617
|
+
- 'spec/api_map_spec.rb'
|
2618
|
+
- 'spec/complex_type_spec.rb'
|
2619
|
+
- 'spec/language_server/message/completion_item/resolve_spec.rb'
|
2620
|
+
- 'spec/language_server/message/extended/check_gem_version_spec.rb'
|
2621
|
+
- 'spec/language_server/message/text_document/definition_spec.rb'
|
2622
|
+
- 'spec/language_server/protocol_spec.rb'
|
2623
|
+
- 'spec/pin/parameter_spec.rb'
|
2624
|
+
- 'spec/source/chain_spec.rb'
|
2625
|
+
- 'spec/source_map/clip_spec.rb'
|
2626
|
+
- 'spec/source_map_spec.rb'
|
2627
|
+
- 'spec/workspace_spec.rb'
|