solargraph 0.59.0.dev.1 → 0.59.0.dev.2
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/plugins.yml +4 -1
- data/.github/workflows/rspec.yml +3 -14
- data/.gitignore +1 -0
- data/.rubocop.yml +32 -5
- data/.rubocop_todo.yml +37 -931
- data/CHANGELOG.md +7 -1
- data/Gemfile +3 -1
- data/Rakefile +25 -23
- data/bin/solargraph +2 -1
- data/lib/solargraph/api_map/index.rb +5 -11
- data/lib/solargraph/api_map/source_to_yard.rb +9 -8
- data/lib/solargraph/api_map/store.rb +22 -20
- data/lib/solargraph/api_map.rb +50 -37
- data/lib/solargraph/bench.rb +44 -45
- data/lib/solargraph/complex_type/type_methods.rb +12 -15
- data/lib/solargraph/complex_type/unique_type.rb +54 -43
- data/lib/solargraph/complex_type.rb +69 -61
- data/lib/solargraph/convention/data_definition/data_assignment_node.rb +61 -61
- data/lib/solargraph/convention/data_definition/data_definition_node.rb +4 -4
- data/lib/solargraph/convention/data_definition.rb +1 -1
- data/lib/solargraph/convention/gemfile.rb +15 -15
- data/lib/solargraph/convention/gemspec.rb +23 -23
- data/lib/solargraph/convention/rakefile.rb +17 -17
- data/lib/solargraph/convention/struct_definition/struct_assignment_node.rb +1 -1
- data/lib/solargraph/convention/struct_definition/struct_definition_node.rb +3 -3
- data/lib/solargraph/convention/struct_definition.rb +3 -3
- data/lib/solargraph/convention.rb +78 -78
- data/lib/solargraph/converters/dd.rb +19 -17
- data/lib/solargraph/converters/dl.rb +17 -15
- data/lib/solargraph/converters/dt.rb +17 -15
- data/lib/solargraph/converters/misc.rb +3 -1
- data/lib/solargraph/diagnostics/rubocop.rb +10 -10
- data/lib/solargraph/diagnostics/rubocop_helpers.rb +3 -3
- data/lib/solargraph/diagnostics/type_check.rb +10 -10
- data/lib/solargraph/diagnostics/update_errors.rb +37 -41
- data/lib/solargraph/doc_map.rb +9 -10
- data/lib/solargraph/equality.rb +3 -3
- data/lib/solargraph/gem_pins.rb +7 -5
- data/lib/solargraph/language_server/error_codes.rb +20 -20
- data/lib/solargraph/language_server/host/diagnoser.rb +89 -89
- data/lib/solargraph/language_server/host/dispatch.rb +2 -3
- data/lib/solargraph/language_server/host/message_worker.rb +2 -2
- data/lib/solargraph/language_server/host/sources.rb +1 -1
- data/lib/solargraph/language_server/host.rb +24 -21
- data/lib/solargraph/language_server/message/base.rb +97 -97
- data/lib/solargraph/language_server/message/client/register_capability.rb +13 -15
- data/lib/solargraph/language_server/message/completion_item/resolve.rb +58 -60
- data/lib/solargraph/language_server/message/extended/check_gem_version.rb +10 -11
- data/lib/solargraph/language_server/message/extended/document_gems.rb +32 -32
- data/lib/solargraph/language_server/message/extended/download_core.rb +20 -19
- data/lib/solargraph/language_server/message/extended/search.rb +20 -20
- data/lib/solargraph/language_server/message/initialize.rb +197 -191
- data/lib/solargraph/language_server/message/text_document/completion.rb +8 -8
- data/lib/solargraph/language_server/message/text_document/definition.rb +41 -34
- data/lib/solargraph/language_server/message/text_document/document_highlight.rb +23 -16
- data/lib/solargraph/language_server/message/text_document/document_symbol.rb +29 -21
- data/lib/solargraph/language_server/message/text_document/formatting.rb +6 -6
- data/lib/solargraph/language_server/message/text_document/hover.rb +3 -5
- data/lib/solargraph/language_server/message/text_document/prepare_rename.rb +18 -11
- data/lib/solargraph/language_server/message/text_document/references.rb +23 -16
- data/lib/solargraph/language_server/message/text_document/rename.rb +26 -19
- data/lib/solargraph/language_server/message/text_document/signature_help.rb +2 -2
- data/lib/solargraph/language_server/message/text_document/type_definition.rb +25 -19
- data/lib/solargraph/language_server/message/workspace/did_change_configuration.rb +41 -35
- data/lib/solargraph/language_server/message/workspace/did_change_watched_files.rb +48 -40
- data/lib/solargraph/language_server/message/workspace/did_change_workspace_folders.rb +32 -26
- data/lib/solargraph/language_server/message/workspace/workspace_symbol.rb +27 -19
- data/lib/solargraph/language_server/message.rb +94 -94
- data/lib/solargraph/language_server/request.rb +29 -27
- data/lib/solargraph/language_server/transport/data_reader.rb +72 -74
- data/lib/solargraph/language_server/uri_helpers.rb +49 -49
- data/lib/solargraph/library.rb +28 -33
- data/lib/solargraph/location.rb +10 -12
- data/lib/solargraph/logging.rb +4 -4
- data/lib/solargraph/page.rb +92 -92
- data/lib/solargraph/parser/comment_ripper.rb +12 -4
- data/lib/solargraph/parser/flow_sensitive_typing.rb +32 -42
- data/lib/solargraph/parser/node_processor/base.rb +4 -4
- data/lib/solargraph/parser/node_processor.rb +1 -1
- data/lib/solargraph/parser/parser_gem/class_methods.rb +4 -4
- data/lib/solargraph/parser/parser_gem/flawed_builder.rb +19 -19
- data/lib/solargraph/parser/parser_gem/node_chainer.rb +20 -20
- data/lib/solargraph/parser/parser_gem/node_methods.rb +66 -65
- data/lib/solargraph/parser/parser_gem/node_processors/args_node.rb +12 -12
- data/lib/solargraph/parser/parser_gem/node_processors/block_node.rb +1 -1
- data/lib/solargraph/parser/parser_gem/node_processors/def_node.rb +3 -3
- data/lib/solargraph/parser/parser_gem/node_processors/defs_node.rb +38 -37
- data/lib/solargraph/parser/parser_gem/node_processors/if_node.rb +3 -3
- data/lib/solargraph/parser/parser_gem/node_processors/ivasgn_node.rb +2 -1
- data/lib/solargraph/parser/parser_gem/node_processors/opasgn_node.rb +1 -1
- data/lib/solargraph/parser/parser_gem/node_processors/sclass_node.rb +3 -5
- data/lib/solargraph/parser/parser_gem/node_processors/send_node.rb +118 -112
- data/lib/solargraph/parser/parser_gem/node_processors/until_node.rb +29 -29
- data/lib/solargraph/parser/parser_gem/node_processors/when_node.rb +1 -1
- data/lib/solargraph/parser/parser_gem/node_processors/while_node.rb +1 -1
- data/lib/solargraph/parser/parser_gem.rb +14 -12
- data/lib/solargraph/parser/snippet.rb +2 -0
- data/lib/solargraph/parser.rb +25 -23
- data/lib/solargraph/pin/base.rb +78 -64
- data/lib/solargraph/pin/base_variable.rb +28 -71
- data/lib/solargraph/pin/block.rb +3 -2
- data/lib/solargraph/pin/breakable.rb +2 -0
- data/lib/solargraph/pin/callable.rb +23 -26
- data/lib/solargraph/pin/closure.rb +5 -4
- data/lib/solargraph/pin/common.rb +5 -2
- data/lib/solargraph/pin/compound_statement.rb +3 -3
- data/lib/solargraph/pin/constant.rb +43 -45
- data/lib/solargraph/pin/conversions.rb +9 -4
- data/lib/solargraph/pin/delegated_method.rb +4 -4
- data/lib/solargraph/pin/documenting.rb +3 -2
- data/lib/solargraph/pin/local_variable.rb +4 -4
- data/lib/solargraph/pin/method.rb +71 -70
- data/lib/solargraph/pin/namespace.rb +13 -12
- data/lib/solargraph/pin/parameter.rb +28 -27
- data/lib/solargraph/pin/proxy_type.rb +2 -0
- data/lib/solargraph/pin/reference.rb +17 -0
- data/lib/solargraph/pin/search.rb +2 -2
- data/lib/solargraph/pin/signature.rb +9 -14
- data/lib/solargraph/pin/symbol.rb +1 -0
- data/lib/solargraph/pin/until.rb +1 -3
- data/lib/solargraph/pin/while.rb +1 -3
- data/lib/solargraph/pin_cache.rb +16 -19
- data/lib/solargraph/position.rb +35 -17
- data/lib/solargraph/range.rb +10 -9
- data/lib/solargraph/rbs_map/conversions.rb +312 -206
- data/lib/solargraph/rbs_map/core_fills.rb +91 -84
- data/lib/solargraph/rbs_map/stdlib_map.rb +0 -1
- data/lib/solargraph/rbs_map.rb +3 -12
- data/lib/solargraph/server_methods.rb +16 -16
- data/lib/solargraph/shell.rb +63 -53
- data/lib/solargraph/source/chain/array.rb +39 -37
- data/lib/solargraph/source/chain/call.rb +49 -44
- data/lib/solargraph/source/chain/class_variable.rb +13 -13
- data/lib/solargraph/source/chain/constant.rb +3 -1
- data/lib/solargraph/source/chain/global_variable.rb +13 -13
- data/lib/solargraph/source/chain/hash.rb +8 -6
- data/lib/solargraph/source/chain/if.rb +11 -10
- data/lib/solargraph/source/chain/instance_variable.rb +3 -1
- data/lib/solargraph/source/chain/link.rb +99 -109
- data/lib/solargraph/source/chain/literal.rb +4 -6
- data/lib/solargraph/source/chain/or.rb +2 -4
- data/lib/solargraph/source/chain/q_call.rb +13 -11
- data/lib/solargraph/source/chain/variable.rb +15 -13
- data/lib/solargraph/source/chain/z_super.rb +28 -30
- data/lib/solargraph/source/chain.rb +24 -16
- data/lib/solargraph/source/change.rb +3 -3
- data/lib/solargraph/source/cursor.rb +18 -18
- data/lib/solargraph/source/encoding_fixes.rb +6 -7
- data/lib/solargraph/source/source_chainer.rb +46 -32
- data/lib/solargraph/source/updater.rb +1 -1
- data/lib/solargraph/source.rb +27 -29
- data/lib/solargraph/source_map/clip.rb +38 -30
- data/lib/solargraph/source_map/mapper.rb +52 -46
- data/lib/solargraph/source_map.rb +8 -4
- data/lib/solargraph/type_checker/rules.rb +8 -8
- data/lib/solargraph/type_checker.rb +95 -101
- data/lib/solargraph/version.rb +1 -1
- data/lib/solargraph/workspace/config.rb +10 -9
- data/lib/solargraph/workspace/gemspecs.rb +1 -1
- data/lib/solargraph/workspace.rb +21 -44
- data/lib/solargraph/yard_map/helpers.rb +6 -2
- data/lib/solargraph/yard_map/mapper/to_method.rb +8 -6
- data/lib/solargraph/yard_map/mapper/to_namespace.rb +1 -1
- data/lib/solargraph/yard_map/mapper.rb +12 -12
- data/lib/solargraph/yard_tags.rb +20 -20
- data/lib/solargraph.rb +5 -5
- data/solargraph.gemspec +35 -34
- metadata +28 -28
data/.rubocop_todo.yml
CHANGED
|
@@ -6,30 +6,12 @@
|
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
10
|
-
Gemspec/AddRuntimeDependency:
|
|
11
|
-
Exclude:
|
|
12
|
-
- 'solargraph.gemspec'
|
|
13
|
-
|
|
14
9
|
# This cop supports safe autocorrection (--autocorrect).
|
|
15
10
|
# Configuration parameters: Severity.
|
|
16
11
|
Gemspec/DeprecatedAttributeAssignment:
|
|
17
12
|
Exclude:
|
|
18
|
-
- 'solargraph.gemspec'
|
|
19
13
|
- 'spec/fixtures/rdoc-lib/rdoc-lib.gemspec'
|
|
20
14
|
|
|
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
15
|
# This cop supports safe autocorrection (--autocorrect).
|
|
34
16
|
# Configuration parameters: Severity.
|
|
35
17
|
Gemspec/RequireMFA:
|
|
@@ -37,260 +19,18 @@ Gemspec/RequireMFA:
|
|
|
37
19
|
- 'spec/fixtures/rdoc-lib/rdoc-lib.gemspec'
|
|
38
20
|
- 'spec/fixtures/rubocop-custom-version/specifications/rubocop-0.0.0.gemspec'
|
|
39
21
|
|
|
40
|
-
# Configuration parameters: Severity.
|
|
41
|
-
Gemspec/RequiredRubyVersion:
|
|
42
|
-
Exclude:
|
|
43
|
-
- 'spec/fixtures/rdoc-lib/rdoc-lib.gemspec'
|
|
44
|
-
- 'spec/fixtures/rubocop-custom-version/specifications/rubocop-0.0.0.gemspec'
|
|
45
|
-
- 'spec/fixtures/vendored/vendor/do_not_use.gemspec'
|
|
46
|
-
|
|
47
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
48
|
-
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
49
|
-
# SupportedStyles: with_first_argument, with_fixed_indentation
|
|
50
|
-
Layout/ArgumentAlignment:
|
|
51
|
-
Exclude:
|
|
52
|
-
- 'lib/solargraph/pin/callable.rb'
|
|
53
|
-
- 'spec/source/source_chainer_spec.rb'
|
|
54
|
-
|
|
55
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
56
|
-
# Configuration parameters: EnforcedStyleAlignWith.
|
|
57
|
-
# SupportedStylesAlignWith: either, start_of_block, start_of_line
|
|
58
|
-
Layout/BlockAlignment:
|
|
59
|
-
Exclude:
|
|
60
|
-
- 'spec/source_map/mapper_spec.rb'
|
|
61
|
-
|
|
62
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
63
|
-
Layout/ClosingHeredocIndentation:
|
|
64
|
-
Exclude:
|
|
65
|
-
- 'spec/diagnostics/rubocop_spec.rb'
|
|
66
|
-
|
|
67
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
68
|
-
# Configuration parameters: AllowForAlignment.
|
|
69
|
-
Layout/CommentIndentation:
|
|
70
|
-
Exclude:
|
|
71
|
-
- 'lib/solargraph/language_server/host.rb'
|
|
72
|
-
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
|
73
|
-
- 'lib/solargraph/source_map/mapper.rb'
|
|
74
|
-
|
|
75
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
76
|
-
Layout/ElseAlignment:
|
|
77
|
-
Enabled: false
|
|
78
|
-
|
|
79
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
80
|
-
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, DefLikeMacros, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
|
81
|
-
Layout/EmptyLineBetweenDefs:
|
|
82
|
-
Exclude:
|
|
83
|
-
- 'lib/solargraph/language_server/message/initialize.rb'
|
|
84
|
-
- 'lib/solargraph/pin/delegated_method.rb'
|
|
85
|
-
|
|
86
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
87
|
-
Layout/EmptyLines:
|
|
88
|
-
Enabled: false
|
|
89
|
-
|
|
90
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
91
|
-
# Configuration parameters: EnforcedStyle.
|
|
92
|
-
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
|
93
|
-
Layout/EmptyLinesAroundModuleBody:
|
|
94
|
-
Exclude:
|
|
95
|
-
- 'lib/solargraph/api_map/source_to_yard.rb'
|
|
96
|
-
|
|
97
22
|
# This cop supports safe autocorrection (--autocorrect).
|
|
98
23
|
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
|
99
24
|
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
|
100
25
|
Layout/EndAlignment:
|
|
101
|
-
Enabled: false
|
|
102
|
-
|
|
103
|
-
# Configuration parameters: EnforcedStyle.
|
|
104
|
-
# SupportedStyles: native, lf, crlf
|
|
105
|
-
Layout/EndOfLine:
|
|
106
|
-
Exclude:
|
|
107
|
-
- 'Gemfile'
|
|
108
|
-
- 'Rakefile'
|
|
109
|
-
- 'solargraph.gemspec'
|
|
110
|
-
|
|
111
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
112
|
-
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
113
|
-
Layout/ExtraSpacing:
|
|
114
|
-
Exclude:
|
|
115
|
-
- 'lib/solargraph/parser/parser_gem/node_processors/opasgn_node.rb'
|
|
116
|
-
- 'lib/solargraph/pin/closure.rb'
|
|
117
|
-
- 'lib/solargraph/rbs_map/conversions.rb'
|
|
118
|
-
- 'lib/solargraph/type_checker.rb'
|
|
119
|
-
- 'spec/spec_helper.rb'
|
|
120
|
-
|
|
121
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
122
|
-
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
123
|
-
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
|
124
|
-
Layout/FirstArgumentIndentation:
|
|
125
|
-
Exclude:
|
|
126
|
-
- 'lib/solargraph/parser/parser_gem/node_processors/args_node.rb'
|
|
127
|
-
- 'spec/source/source_chainer_spec.rb'
|
|
128
|
-
|
|
129
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
130
|
-
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
131
|
-
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
|
132
|
-
Layout/FirstArrayElementIndentation:
|
|
133
|
-
Exclude:
|
|
134
|
-
- 'lib/solargraph/source.rb'
|
|
135
|
-
- 'spec/diagnostics/update_errors_spec.rb'
|
|
136
|
-
- 'spec/source/cursor_spec.rb'
|
|
137
|
-
- 'spec/source/source_chainer_spec.rb'
|
|
138
|
-
- 'spec/source_spec.rb'
|
|
139
|
-
|
|
140
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
141
|
-
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
142
|
-
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
|
143
|
-
Layout/FirstHashElementIndentation:
|
|
144
|
-
Enabled: false
|
|
145
|
-
|
|
146
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
147
|
-
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
148
|
-
# SupportedHashRocketStyles: key, separator, table
|
|
149
|
-
# SupportedColonStyles: key, separator, table
|
|
150
|
-
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
151
|
-
Layout/HashAlignment:
|
|
152
|
-
Exclude:
|
|
153
|
-
- 'lib/solargraph/workspace/config.rb'
|
|
154
|
-
|
|
155
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
156
|
-
Layout/HeredocIndentation:
|
|
157
26
|
Exclude:
|
|
158
|
-
- '
|
|
159
|
-
- 'spec/yard_map/mapper/to_method_spec.rb'
|
|
27
|
+
- 'lib/solargraph/shell.rb'
|
|
160
28
|
|
|
161
29
|
# This cop supports safe autocorrection (--autocorrect).
|
|
162
30
|
# Configuration parameters: Width, AllowedPatterns.
|
|
163
31
|
Layout/IndentationWidth:
|
|
164
|
-
Enabled: false
|
|
165
|
-
|
|
166
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
167
|
-
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment, AllowRBSInlineAnnotation, AllowSteepAnnotation.
|
|
168
|
-
Layout/LeadingCommentSpace:
|
|
169
|
-
Exclude:
|
|
170
|
-
- 'lib/solargraph/complex_type.rb'
|
|
171
|
-
- 'lib/solargraph/rbs_map/conversions.rb'
|
|
172
|
-
- 'lib/solargraph/source/chain/call.rb'
|
|
173
|
-
- 'lib/solargraph/source_map/clip.rb'
|
|
174
|
-
|
|
175
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
176
|
-
# Configuration parameters: EnforcedStyle.
|
|
177
|
-
# SupportedStyles: space, no_space
|
|
178
|
-
Layout/LineContinuationSpacing:
|
|
179
|
-
Exclude:
|
|
180
|
-
- 'lib/solargraph/diagnostics/rubocop_helpers.rb'
|
|
181
|
-
|
|
182
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
183
|
-
# Configuration parameters: EnforcedStyle.
|
|
184
|
-
# SupportedStyles: symmetrical, new_line, same_line
|
|
185
|
-
Layout/MultilineMethodCallBraceLayout:
|
|
186
|
-
Exclude:
|
|
187
|
-
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
|
188
|
-
- 'spec/source/source_chainer_spec.rb'
|
|
189
|
-
|
|
190
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
191
|
-
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
192
|
-
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
|
193
|
-
Layout/MultilineMethodCallIndentation:
|
|
194
|
-
Enabled: false
|
|
195
|
-
|
|
196
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
197
|
-
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
198
|
-
# SupportedStyles: aligned, indented
|
|
199
|
-
Layout/MultilineOperationIndentation:
|
|
200
|
-
Exclude:
|
|
201
|
-
- 'lib/solargraph/language_server/host/dispatch.rb'
|
|
202
|
-
- 'lib/solargraph/source.rb'
|
|
203
|
-
|
|
204
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
205
|
-
Layout/SpaceAfterComma:
|
|
206
|
-
Exclude:
|
|
207
|
-
- 'spec/source/cursor_spec.rb'
|
|
208
|
-
|
|
209
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
210
|
-
# Configuration parameters: EnforcedStyle.
|
|
211
|
-
# SupportedStyles: space, no_space
|
|
212
|
-
Layout/SpaceAroundEqualsInParameterDefault:
|
|
213
|
-
Enabled: false
|
|
214
|
-
|
|
215
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
216
|
-
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
|
|
217
|
-
# SupportedStylesForExponentOperator: space, no_space
|
|
218
|
-
# SupportedStylesForRationalLiterals: space, no_space
|
|
219
|
-
Layout/SpaceAroundOperators:
|
|
220
|
-
Enabled: false
|
|
221
|
-
|
|
222
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
223
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
224
|
-
# SupportedStyles: space, no_space
|
|
225
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
|
226
|
-
Layout/SpaceBeforeBlockBraces:
|
|
227
|
-
Enabled: false
|
|
228
|
-
|
|
229
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
230
|
-
Layout/SpaceBeforeComma:
|
|
231
|
-
Exclude:
|
|
232
|
-
- 'spec/source/cursor_spec.rb'
|
|
233
|
-
|
|
234
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
235
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
|
236
|
-
# SupportedStyles: space, no_space
|
|
237
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
|
238
|
-
Layout/SpaceInsideBlockBraces:
|
|
239
|
-
Enabled: false
|
|
240
|
-
|
|
241
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
242
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
243
|
-
# SupportedStyles: space, no_space, compact
|
|
244
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
|
245
|
-
Layout/SpaceInsideHashLiteralBraces:
|
|
246
|
-
Exclude:
|
|
247
|
-
- 'lib/solargraph/language_server/message/extended/search.rb'
|
|
248
|
-
- 'lib/solargraph/language_server/message/initialize.rb'
|
|
249
|
-
- 'lib/solargraph/workspace/config.rb'
|
|
250
|
-
- 'spec/language_server/host/message_worker_spec.rb'
|
|
251
|
-
- 'spec/language_server/message/extended/check_gem_version_spec.rb'
|
|
252
|
-
|
|
253
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
254
|
-
# Configuration parameters: EnforcedStyle.
|
|
255
|
-
# SupportedStyles: space, compact, no_space
|
|
256
|
-
Layout/SpaceInsideParens:
|
|
257
|
-
Exclude:
|
|
258
|
-
- 'lib/solargraph/pin/namespace.rb'
|
|
259
|
-
- 'lib/solargraph/source_map.rb'
|
|
260
|
-
|
|
261
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
262
|
-
# Configuration parameters: AllowInHeredoc.
|
|
263
|
-
Layout/TrailingWhitespace:
|
|
264
|
-
Exclude:
|
|
265
|
-
- 'lib/solargraph/language_server/message/client/register_capability.rb'
|
|
266
|
-
- 'spec/api_map/config_spec.rb'
|
|
267
|
-
|
|
268
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
269
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
270
|
-
Lint/AmbiguousBlockAssociation:
|
|
271
|
-
Exclude:
|
|
272
|
-
- 'lib/solargraph/language_server/host.rb'
|
|
273
|
-
|
|
274
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
275
|
-
Lint/AmbiguousOperator:
|
|
276
|
-
Enabled: false
|
|
277
|
-
|
|
278
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
279
|
-
Lint/AmbiguousOperatorPrecedence:
|
|
280
|
-
Exclude:
|
|
281
|
-
- 'lib/solargraph/pin/method.rb'
|
|
282
|
-
- 'lib/solargraph/source.rb'
|
|
283
|
-
|
|
284
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
285
|
-
# Configuration parameters: RequireParenthesesForMethodChains.
|
|
286
|
-
Lint/AmbiguousRange:
|
|
287
|
-
Enabled: false
|
|
288
|
-
|
|
289
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
290
|
-
# Configuration parameters: AllowSafeAssignment.
|
|
291
|
-
Lint/AssignmentInCondition:
|
|
292
32
|
Exclude:
|
|
293
|
-
- 'lib/solargraph/
|
|
33
|
+
- 'lib/solargraph/shell.rb'
|
|
294
34
|
|
|
295
35
|
Lint/BinaryOperatorWithIdenticalOperands:
|
|
296
36
|
Exclude:
|
|
@@ -300,7 +40,6 @@ Lint/BinaryOperatorWithIdenticalOperands:
|
|
|
300
40
|
Lint/BooleanSymbol:
|
|
301
41
|
Exclude:
|
|
302
42
|
- 'lib/solargraph/convention/struct_definition/struct_definition_node.rb'
|
|
303
|
-
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
|
304
43
|
- 'lib/solargraph/source/chain/literal.rb'
|
|
305
44
|
|
|
306
45
|
# Configuration parameters: AllowedMethods.
|
|
@@ -312,110 +51,21 @@ Lint/ConstantDefinitionInBlock:
|
|
|
312
51
|
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
|
|
313
52
|
Lint/DuplicateBranch:
|
|
314
53
|
Exclude:
|
|
315
|
-
- 'lib/solargraph/complex_type/type_methods.rb'
|
|
316
54
|
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
|
317
55
|
- 'lib/solargraph/pin/base.rb'
|
|
318
56
|
- 'lib/solargraph/rbs_map/conversions.rb'
|
|
319
57
|
|
|
320
|
-
Lint/DuplicateMethods:
|
|
321
|
-
Enabled: false
|
|
322
|
-
|
|
323
|
-
# Configuration parameters: AllowComments.
|
|
324
|
-
Lint/EmptyClass:
|
|
325
|
-
Enabled: false
|
|
326
|
-
|
|
327
|
-
# Configuration parameters: AllowComments.
|
|
328
|
-
Lint/EmptyFile:
|
|
329
|
-
Exclude:
|
|
330
|
-
- 'spec/fixtures/vendored/vendor/do_not_use.gemspec'
|
|
331
|
-
|
|
332
58
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
333
59
|
Lint/InterpolationCheck:
|
|
334
60
|
Exclude:
|
|
335
|
-
- 'spec/complex_type_spec.rb'
|
|
336
|
-
- 'spec/parser/node_methods_spec.rb'
|
|
337
61
|
- 'spec/source/chain_spec.rb'
|
|
338
62
|
- 'spec/source/cursor_spec.rb'
|
|
339
63
|
|
|
340
|
-
# Configuration parameters: AllowedParentClasses.
|
|
341
|
-
Lint/MissingSuper:
|
|
342
|
-
Exclude:
|
|
343
|
-
- 'lib/solargraph/source/chain/call.rb'
|
|
344
|
-
- 'lib/solargraph/source/chain/constant.rb'
|
|
345
|
-
- 'lib/solargraph/source/chain/if.rb'
|
|
346
|
-
- 'lib/solargraph/source/chain/literal.rb'
|
|
347
|
-
- 'lib/solargraph/source/chain/or.rb'
|
|
348
|
-
|
|
349
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
350
|
-
Lint/NonAtomicFileOperation:
|
|
351
|
-
Exclude:
|
|
352
|
-
- 'spec/diagnostics/rubocop_spec.rb'
|
|
353
|
-
|
|
354
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
355
|
-
Lint/ParenthesesAsGroupedExpression:
|
|
356
|
-
Exclude:
|
|
357
|
-
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
|
358
|
-
- 'spec/language_server/host_spec.rb'
|
|
359
|
-
- 'spec/source_map/clip_spec.rb'
|
|
360
|
-
|
|
361
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
362
|
-
Lint/RedundantRequireStatement:
|
|
363
|
-
Exclude:
|
|
364
|
-
- 'spec/language_server/protocol_spec.rb'
|
|
365
|
-
|
|
366
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
367
|
-
# Configuration parameters: AllowedMethods, InferNonNilReceiver, AdditionalNilMethods.
|
|
368
|
-
# AllowedMethods: instance_of?, kind_of?, is_a?, eql?, respond_to?, equal?
|
|
369
|
-
# AdditionalNilMethods: present?, blank?, try, try!
|
|
370
|
-
Lint/RedundantSafeNavigation:
|
|
371
|
-
Exclude:
|
|
372
|
-
- 'lib/solargraph/api_map/source_to_yard.rb'
|
|
373
|
-
- 'lib/solargraph/rbs_map.rb'
|
|
374
|
-
|
|
375
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
376
|
-
Lint/RedundantStringCoercion:
|
|
377
|
-
Exclude:
|
|
378
|
-
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
|
379
|
-
- 'lib/solargraph/pin/conversions.rb'
|
|
380
|
-
- 'lib/solargraph/pin/method.rb'
|
|
381
|
-
- 'lib/solargraph/pin/namespace.rb'
|
|
382
|
-
- 'lib/solargraph/rbs_map/conversions.rb'
|
|
383
|
-
|
|
384
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
385
|
-
Lint/RedundantWithIndex:
|
|
386
|
-
Exclude:
|
|
387
|
-
- 'lib/solargraph/language_server/message/completion_item/resolve.rb'
|
|
388
|
-
|
|
389
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
390
|
-
# Configuration parameters: EnforcedStyle.
|
|
391
|
-
# SupportedStyles: strict, consistent
|
|
392
|
-
Lint/SymbolConversion:
|
|
393
|
-
Exclude:
|
|
394
|
-
- 'lib/solargraph/pin/base.rb'
|
|
395
|
-
|
|
396
64
|
# Configuration parameters: AllowKeywordBlockArguments.
|
|
397
65
|
Lint/UnderscorePrefixedVariableName:
|
|
398
66
|
Exclude:
|
|
399
67
|
- 'lib/solargraph/library.rb'
|
|
400
68
|
|
|
401
|
-
# Configuration parameters: Methods.
|
|
402
|
-
Lint/UnexpectedBlockArity:
|
|
403
|
-
Exclude:
|
|
404
|
-
- 'lib/solargraph/language_server/message/completion_item/resolve.rb'
|
|
405
|
-
- 'lib/solargraph/type_checker.rb'
|
|
406
|
-
|
|
407
|
-
Lint/UnmodifiedReduceAccumulator:
|
|
408
|
-
Exclude:
|
|
409
|
-
- 'lib/solargraph/pin/method.rb'
|
|
410
|
-
|
|
411
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
412
|
-
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
413
|
-
Lint/UnusedBlockArgument:
|
|
414
|
-
Exclude:
|
|
415
|
-
- 'lib/solargraph/language_server/message/workspace/did_change_workspace_folders.rb'
|
|
416
|
-
- 'lib/solargraph/logging.rb'
|
|
417
|
-
- 'spec/language_server/transport/data_reader_spec.rb'
|
|
418
|
-
|
|
419
69
|
# This cop supports safe autocorrection (--autocorrect).
|
|
420
70
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
|
|
421
71
|
# NotImplementedExceptions: NotImplementedError
|
|
@@ -424,25 +74,25 @@ Lint/UnusedMethodArgument:
|
|
|
424
74
|
|
|
425
75
|
# This cop supports safe autocorrection (--autocorrect).
|
|
426
76
|
Lint/UselessAssignment:
|
|
427
|
-
Enabled: false
|
|
428
|
-
|
|
429
|
-
Lint/UselessConstantScoping:
|
|
430
77
|
Exclude:
|
|
431
|
-
- 'lib/solargraph/
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
Exclude:
|
|
436
|
-
- 'lib/solargraph/pin/signature.rb'
|
|
78
|
+
- 'lib/solargraph/pin/block.rb'
|
|
79
|
+
- 'spec/fixtures/long_squiggly_heredoc.rb'
|
|
80
|
+
- 'spec/fixtures/rubocop-unused-variable-error/app.rb'
|
|
81
|
+
- 'spec/fixtures/unicode.rb'
|
|
437
82
|
|
|
438
83
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
|
439
84
|
Metrics/AbcSize:
|
|
440
|
-
|
|
85
|
+
Exclude:
|
|
86
|
+
- 'lib/solargraph/api_map/source_to_yard.rb'
|
|
87
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
|
88
|
+
- 'lib/solargraph/source/source_chainer.rb'
|
|
89
|
+
- 'lib/solargraph/source_map/clip.rb'
|
|
90
|
+
- 'lib/solargraph/source_map/mapper.rb'
|
|
441
91
|
|
|
442
92
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
|
|
443
93
|
# AllowedMethods: refine
|
|
444
94
|
Metrics/BlockLength:
|
|
445
|
-
Max:
|
|
95
|
+
Max: 61
|
|
446
96
|
|
|
447
97
|
# Configuration parameters: CountBlocks, CountModifierForms.
|
|
448
98
|
Metrics/BlockNesting:
|
|
@@ -459,7 +109,8 @@ Metrics/ClassLength:
|
|
|
459
109
|
|
|
460
110
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
461
111
|
Metrics/CyclomaticComplexity:
|
|
462
|
-
|
|
112
|
+
Exclude:
|
|
113
|
+
- 'lib/solargraph/type_checker.rb'
|
|
463
114
|
|
|
464
115
|
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
465
116
|
Metrics/MethodLength:
|
|
@@ -467,7 +118,7 @@ Metrics/MethodLength:
|
|
|
467
118
|
|
|
468
119
|
# Configuration parameters: CountComments, CountAsOne.
|
|
469
120
|
Metrics/ModuleLength:
|
|
470
|
-
Max:
|
|
121
|
+
Max: 167
|
|
471
122
|
|
|
472
123
|
# Configuration parameters: Max, CountKeywordArgs, MaxOptionalParameters.
|
|
473
124
|
Metrics/ParameterLists:
|
|
@@ -480,7 +131,9 @@ Metrics/ParameterLists:
|
|
|
480
131
|
|
|
481
132
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
482
133
|
Metrics/PerceivedComplexity:
|
|
483
|
-
|
|
134
|
+
Exclude:
|
|
135
|
+
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
|
136
|
+
- 'lib/solargraph/type_checker.rb'
|
|
484
137
|
|
|
485
138
|
Naming/AccessorMethodName:
|
|
486
139
|
Exclude:
|
|
@@ -488,29 +141,17 @@ Naming/AccessorMethodName:
|
|
|
488
141
|
- 'lib/solargraph/api_map/store.rb'
|
|
489
142
|
- 'lib/solargraph/language_server/message/base.rb'
|
|
490
143
|
|
|
491
|
-
# Configuration parameters: AsciiConstants.
|
|
492
|
-
Naming/AsciiIdentifiers:
|
|
493
|
-
Exclude:
|
|
494
|
-
- 'spec/fixtures/unicode.rb'
|
|
495
|
-
|
|
496
144
|
# Configuration parameters: ForbiddenDelimiters.
|
|
497
145
|
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
|
498
146
|
Naming/HeredocDelimiterNaming:
|
|
499
147
|
Exclude:
|
|
500
148
|
- 'spec/yard_map/mapper/to_method_spec.rb'
|
|
501
149
|
|
|
502
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
503
|
-
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
|
504
|
-
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
|
505
|
-
Naming/MemoizedInstanceVariableName:
|
|
506
|
-
Enabled: false
|
|
507
|
-
|
|
508
150
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
509
151
|
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
|
510
152
|
Naming/MethodParameterName:
|
|
511
153
|
Exclude:
|
|
512
154
|
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
|
513
|
-
- 'lib/solargraph/pin/base.rb'
|
|
514
155
|
- 'lib/solargraph/range.rb'
|
|
515
156
|
- 'lib/solargraph/source.rb'
|
|
516
157
|
- 'lib/solargraph/yard_map/mapper/to_method.rb'
|
|
@@ -530,36 +171,10 @@ Naming/PredicatePrefix:
|
|
|
530
171
|
Exclude:
|
|
531
172
|
- 'spec/**/*'
|
|
532
173
|
- 'lib/solargraph/api_map.rb'
|
|
533
|
-
- 'lib/solargraph/language_server/host.rb'
|
|
534
174
|
- 'lib/solargraph/parser/parser_gem/class_methods.rb'
|
|
535
175
|
- 'lib/solargraph/pin_cache.rb'
|
|
536
176
|
- 'lib/solargraph/workspace.rb'
|
|
537
177
|
|
|
538
|
-
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns.
|
|
539
|
-
# SupportedStyles: snake_case, camelCase
|
|
540
|
-
Naming/VariableName:
|
|
541
|
-
Exclude:
|
|
542
|
-
- 'spec/fixtures/unicode.rb'
|
|
543
|
-
|
|
544
|
-
RSpec/Be:
|
|
545
|
-
Exclude:
|
|
546
|
-
- 'spec/rbs_map/stdlib_map_spec.rb'
|
|
547
|
-
- 'spec/source/source_chainer_spec.rb'
|
|
548
|
-
|
|
549
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
550
|
-
RSpec/BeEq:
|
|
551
|
-
Exclude:
|
|
552
|
-
- 'spec/complex_type_spec.rb'
|
|
553
|
-
- 'spec/pin/method_spec.rb'
|
|
554
|
-
|
|
555
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
556
|
-
# Configuration parameters: EnforcedStyle.
|
|
557
|
-
# SupportedStyles: be, be_nil
|
|
558
|
-
RSpec/BeNil:
|
|
559
|
-
Exclude:
|
|
560
|
-
- 'spec/api_map/source_to_yard_spec.rb'
|
|
561
|
-
- 'spec/language_server/host_spec.rb'
|
|
562
|
-
|
|
563
178
|
RSpec/BeforeAfterAll:
|
|
564
179
|
Exclude:
|
|
565
180
|
- '**/spec/spec_helper.rb'
|
|
@@ -569,11 +184,6 @@ RSpec/BeforeAfterAll:
|
|
|
569
184
|
- 'spec/language_server/host/dispatch_spec.rb'
|
|
570
185
|
- 'spec/language_server/protocol_spec.rb'
|
|
571
186
|
|
|
572
|
-
# Configuration parameters: Prefixes, AllowedPatterns.
|
|
573
|
-
# Prefixes: when, with, without
|
|
574
|
-
RSpec/ContextWording:
|
|
575
|
-
Enabled: false
|
|
576
|
-
|
|
577
187
|
# Configuration parameters: IgnoredMetadata.
|
|
578
188
|
RSpec/DescribeClass:
|
|
579
189
|
Exclude:
|
|
@@ -582,37 +192,7 @@ RSpec/DescribeClass:
|
|
|
582
192
|
- '**/spec/routing/**/*'
|
|
583
193
|
- '**/spec/system/**/*'
|
|
584
194
|
- '**/spec/views/**/*'
|
|
585
|
-
- 'spec/api_map_method_spec.rb'
|
|
586
195
|
- 'spec/complex_type_spec.rb'
|
|
587
|
-
- 'spec/source_map/node_processor_spec.rb'
|
|
588
|
-
|
|
589
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
590
|
-
# Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
|
|
591
|
-
# SupportedStyles: described_class, explicit
|
|
592
|
-
RSpec/DescribedClass:
|
|
593
|
-
Enabled: false
|
|
594
|
-
|
|
595
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
596
|
-
RSpec/EmptyLineAfterFinalLet:
|
|
597
|
-
Exclude:
|
|
598
|
-
- 'spec/workspace/config_spec.rb'
|
|
599
|
-
|
|
600
|
-
# Configuration parameters: Max, CountAsOne.
|
|
601
|
-
RSpec/ExampleLength:
|
|
602
|
-
Enabled: false
|
|
603
|
-
|
|
604
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
605
|
-
# Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
|
|
606
|
-
# DisallowedExamples: works
|
|
607
|
-
RSpec/ExampleWording:
|
|
608
|
-
Exclude:
|
|
609
|
-
- 'spec/pin/base_spec.rb'
|
|
610
|
-
- 'spec/pin/method_spec.rb'
|
|
611
|
-
|
|
612
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
613
|
-
RSpec/ExcessiveDocstringSpacing:
|
|
614
|
-
Exclude:
|
|
615
|
-
- 'spec/source/chain/call_spec.rb'
|
|
616
196
|
|
|
617
197
|
# This cop supports safe autocorrection (--autocorrect).
|
|
618
198
|
RSpec/ExpectActual:
|
|
@@ -621,12 +201,6 @@ RSpec/ExpectActual:
|
|
|
621
201
|
- 'spec/rbs_map/stdlib_map_spec.rb'
|
|
622
202
|
- 'spec/source_map/mapper_spec.rb'
|
|
623
203
|
|
|
624
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
625
|
-
# Configuration parameters: EnforcedStyle.
|
|
626
|
-
# SupportedStyles: implicit, each, example
|
|
627
|
-
RSpec/HookArgument:
|
|
628
|
-
Enabled: false
|
|
629
|
-
|
|
630
204
|
# Configuration parameters: AssignmentOnly.
|
|
631
205
|
RSpec/InstanceVariable:
|
|
632
206
|
Enabled: false
|
|
@@ -635,15 +209,6 @@ RSpec/LeakyConstantDeclaration:
|
|
|
635
209
|
Exclude:
|
|
636
210
|
- 'spec/complex_type_spec.rb'
|
|
637
211
|
|
|
638
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
639
|
-
RSpec/LetBeforeExamples:
|
|
640
|
-
Exclude:
|
|
641
|
-
- 'spec/complex_type_spec.rb'
|
|
642
|
-
|
|
643
|
-
RSpec/MissingExampleGroupArgument:
|
|
644
|
-
Exclude:
|
|
645
|
-
- 'spec/diagnostics/rubocop_helpers_spec.rb'
|
|
646
|
-
|
|
647
212
|
RSpec/MultipleExpectations:
|
|
648
213
|
Max: 14
|
|
649
214
|
|
|
@@ -651,64 +216,10 @@ RSpec/MultipleExpectations:
|
|
|
651
216
|
RSpec/NestedGroups:
|
|
652
217
|
Max: 4
|
|
653
218
|
|
|
654
|
-
# Configuration parameters: AllowedPatterns.
|
|
655
|
-
# AllowedPatterns: ^expect_, ^assert_
|
|
656
|
-
RSpec/NoExpectationExample:
|
|
657
|
-
Enabled: false
|
|
658
|
-
|
|
659
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
660
|
-
# Configuration parameters: EnforcedStyle.
|
|
661
|
-
# SupportedStyles: not_to, to_not
|
|
662
|
-
RSpec/NotToNot:
|
|
663
|
-
Exclude:
|
|
664
|
-
- 'spec/api_map_spec.rb'
|
|
665
|
-
- 'spec/rbs_map/core_map_spec.rb'
|
|
666
|
-
|
|
667
|
-
RSpec/PendingWithoutReason:
|
|
668
|
-
Exclude:
|
|
669
|
-
- 'spec/api_map_spec.rb'
|
|
670
|
-
- 'spec/doc_map_spec.rb'
|
|
671
|
-
- 'spec/pin/base_variable_spec.rb'
|
|
672
|
-
- 'spec/pin/local_variable_spec.rb'
|
|
673
|
-
- 'spec/type_checker/levels/strict_spec.rb'
|
|
674
|
-
|
|
675
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
676
|
-
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
|
|
677
|
-
# SupportedStyles: inflected, explicit
|
|
678
|
-
RSpec/PredicateMatcher:
|
|
679
|
-
Exclude:
|
|
680
|
-
- 'spec/language_server/message/workspace/did_change_configuration_spec.rb'
|
|
681
|
-
- 'spec/source_spec.rb'
|
|
682
|
-
|
|
683
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
684
|
-
RSpec/ReceiveMessages:
|
|
685
|
-
Exclude:
|
|
686
|
-
- 'spec/language_server/host_spec.rb'
|
|
687
|
-
|
|
688
219
|
RSpec/RemoveConst:
|
|
689
220
|
Exclude:
|
|
690
221
|
- 'spec/diagnostics/rubocop_helpers_spec.rb'
|
|
691
222
|
|
|
692
|
-
RSpec/RepeatedDescription:
|
|
693
|
-
Enabled: false
|
|
694
|
-
|
|
695
|
-
RSpec/RepeatedExample:
|
|
696
|
-
Exclude:
|
|
697
|
-
- 'spec/api_map_spec.rb'
|
|
698
|
-
- 'spec/parser/node_methods_spec.rb'
|
|
699
|
-
- 'spec/source/cursor_spec.rb'
|
|
700
|
-
- 'spec/source_map/clip_spec.rb'
|
|
701
|
-
- 'spec/type_checker/levels/strict_spec.rb'
|
|
702
|
-
|
|
703
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
704
|
-
RSpec/ScatteredLet:
|
|
705
|
-
Exclude:
|
|
706
|
-
- 'spec/complex_type_spec.rb'
|
|
707
|
-
|
|
708
|
-
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
|
|
709
|
-
RSpec/VerifiedDoubles:
|
|
710
|
-
Enabled: false
|
|
711
|
-
|
|
712
223
|
Security/MarshalLoad:
|
|
713
224
|
Exclude:
|
|
714
225
|
- 'lib/solargraph/pin_cache.rb'
|
|
@@ -717,23 +228,8 @@ Security/MarshalLoad:
|
|
|
717
228
|
# Configuration parameters: EnforcedStyle, AllowModifiersOnSymbols, AllowModifiersOnAttrs, AllowModifiersOnAliasMethod.
|
|
718
229
|
# SupportedStyles: inline, group
|
|
719
230
|
Style/AccessModifierDeclarations:
|
|
720
|
-
Enabled: false
|
|
721
|
-
|
|
722
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
723
|
-
# Configuration parameters: EnforcedStyle.
|
|
724
|
-
# SupportedStyles: separated, grouped
|
|
725
|
-
Style/AccessorGrouping:
|
|
726
231
|
Exclude:
|
|
727
|
-
- 'lib/solargraph/
|
|
728
|
-
- 'lib/solargraph/pin/base.rb'
|
|
729
|
-
- 'lib/solargraph/pin/method.rb'
|
|
730
|
-
- 'lib/solargraph/rbs_map.rb'
|
|
731
|
-
|
|
732
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
733
|
-
# Configuration parameters: EnforcedStyle.
|
|
734
|
-
# SupportedStyles: always, conditionals
|
|
735
|
-
Style/AndOr:
|
|
736
|
-
Enabled: false
|
|
232
|
+
- 'lib/solargraph/source/chain/literal.rb'
|
|
737
233
|
|
|
738
234
|
# This cop supports safe autocorrection (--autocorrect).
|
|
739
235
|
# Configuration parameters: AllowOnlyRestArgument, UseAnonymousForwarding, RedundantRestArgumentNames, RedundantKeywordRestArgumentNames, RedundantBlockArgumentNames.
|
|
@@ -751,49 +247,8 @@ Style/ArgumentsForwarding:
|
|
|
751
247
|
# FunctionalMethods: let, let!, subject, watch
|
|
752
248
|
# AllowedMethods: lambda, proc, it
|
|
753
249
|
Style/BlockDelimiters:
|
|
754
|
-
Enabled: false
|
|
755
|
-
|
|
756
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
757
|
-
# Configuration parameters: MinBranchesCount.
|
|
758
|
-
Style/CaseLikeIf:
|
|
759
|
-
Enabled: false
|
|
760
|
-
|
|
761
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
762
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForClasses, EnforcedStyleForModules.
|
|
763
|
-
# SupportedStyles: nested, compact
|
|
764
|
-
# SupportedStylesForClasses: ~, nested, compact
|
|
765
|
-
# SupportedStylesForModules: ~, nested, compact
|
|
766
|
-
Style/ClassAndModuleChildren:
|
|
767
|
-
Enabled: false
|
|
768
|
-
|
|
769
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
770
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
771
|
-
# AllowedMethods: ==, equal?, eql?
|
|
772
|
-
Style/ClassEqualityComparison:
|
|
773
250
|
Exclude:
|
|
774
|
-
- '
|
|
775
|
-
- 'lib/solargraph/pin/base.rb'
|
|
776
|
-
|
|
777
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
778
|
-
# Configuration parameters: AllowedReceivers.
|
|
779
|
-
Style/CollectionCompact:
|
|
780
|
-
Exclude:
|
|
781
|
-
- 'lib/solargraph/pin/constant.rb'
|
|
782
|
-
|
|
783
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
784
|
-
Style/ColonMethodCall:
|
|
785
|
-
Exclude:
|
|
786
|
-
- 'spec/type_checker_spec.rb'
|
|
787
|
-
|
|
788
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
789
|
-
Style/CombinableLoops:
|
|
790
|
-
Exclude:
|
|
791
|
-
- 'lib/solargraph/pin/parameter.rb'
|
|
792
|
-
|
|
793
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
794
|
-
Style/ConcatArrayLiterals:
|
|
795
|
-
Exclude:
|
|
796
|
-
- 'lib/solargraph/parser/parser_gem/node_processors/sclass_node.rb'
|
|
251
|
+
- 'spec/source/chain_spec.rb'
|
|
797
252
|
|
|
798
253
|
# This cop supports safe autocorrection (--autocorrect).
|
|
799
254
|
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
@@ -801,211 +256,55 @@ Style/ConcatArrayLiterals:
|
|
|
801
256
|
Style/ConditionalAssignment:
|
|
802
257
|
Exclude:
|
|
803
258
|
- 'lib/solargraph/api_map/source_to_yard.rb'
|
|
804
|
-
- 'lib/solargraph/parser/parser_gem/node_processors/defs_node.rb'
|
|
805
|
-
- 'lib/solargraph/source/chain/call.rb'
|
|
806
259
|
|
|
807
260
|
# Configuration parameters: AllowedConstants.
|
|
808
261
|
Style/Documentation:
|
|
809
262
|
Enabled: false
|
|
810
263
|
|
|
811
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
812
|
-
Style/EmptyLambdaParameter:
|
|
813
|
-
Exclude:
|
|
814
|
-
- 'spec/rbs_map/core_map_spec.rb'
|
|
815
|
-
|
|
816
264
|
# This cop supports safe autocorrection (--autocorrect).
|
|
817
265
|
# Configuration parameters: EnforcedStyle.
|
|
818
266
|
# SupportedStyles: compact, expanded
|
|
819
267
|
Style/EmptyMethod:
|
|
820
268
|
Exclude:
|
|
821
|
-
- 'lib/solargraph/language_server/message/client/register_capability.rb'
|
|
822
269
|
- 'spec/fixtures/formattable.rb'
|
|
823
270
|
- 'spec/fixtures/rdoc-lib/lib/example.rb'
|
|
824
271
|
- 'spec/fixtures/workspace-with-gemfile/lib/thing.rb'
|
|
825
272
|
|
|
826
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
827
|
-
# Configuration parameters: EnforcedStyle.
|
|
828
|
-
# SupportedStyles: trailing_conditional, ternary
|
|
829
|
-
Style/EmptyStringInsideInterpolation:
|
|
830
|
-
Exclude:
|
|
831
|
-
- 'lib/solargraph/library.rb'
|
|
832
|
-
- 'lib/solargraph/pin/documenting.rb'
|
|
833
|
-
- 'lib/solargraph/shell.rb'
|
|
834
|
-
|
|
835
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
836
|
-
Style/ExpandPathArguments:
|
|
837
|
-
Exclude:
|
|
838
|
-
- 'solargraph.gemspec'
|
|
839
|
-
|
|
840
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
841
|
-
# Configuration parameters: AllowedVars, DefaultToNil.
|
|
842
|
-
Style/FetchEnvVar:
|
|
843
|
-
Exclude:
|
|
844
|
-
- 'spec/api_map/config_spec.rb'
|
|
845
|
-
- 'spec/spec_helper.rb'
|
|
846
|
-
|
|
847
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
848
|
-
# Configuration parameters: EnforcedStyle.
|
|
849
|
-
# SupportedStyles: left_coerce, right_coerce, single_coerce, fdiv
|
|
850
|
-
Style/FloatDivision:
|
|
851
|
-
Exclude:
|
|
852
|
-
- 'lib/solargraph/library.rb'
|
|
853
|
-
- 'lib/solargraph/pin/search.rb'
|
|
854
|
-
|
|
855
273
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
856
274
|
# Configuration parameters: EnforcedStyle.
|
|
857
275
|
# SupportedStyles: always, always_true, never
|
|
858
276
|
Style/FrozenStringLiteralComment:
|
|
859
277
|
Enabled: false
|
|
860
278
|
|
|
861
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
862
|
-
Style/GlobalStdStream:
|
|
863
|
-
Exclude:
|
|
864
|
-
- 'lib/solargraph/logging.rb'
|
|
865
|
-
- 'lib/solargraph/pin/base.rb'
|
|
866
|
-
- 'lib/solargraph/shell.rb'
|
|
867
|
-
- 'spec/logging_spec.rb'
|
|
868
|
-
|
|
869
279
|
# This cop supports safe autocorrection (--autocorrect).
|
|
870
280
|
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
|
871
281
|
Style/GuardClause:
|
|
872
|
-
Enabled: false
|
|
873
|
-
|
|
874
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
875
|
-
# Configuration parameters: AllowSplatArgument.
|
|
876
|
-
Style/HashConversion:
|
|
877
|
-
Exclude:
|
|
878
|
-
- 'lib/solargraph/doc_map.rb'
|
|
879
|
-
|
|
880
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
881
|
-
# Configuration parameters: AllowedReceivers.
|
|
882
|
-
# AllowedReceivers: Thread.current
|
|
883
|
-
Style/HashEachMethods:
|
|
884
|
-
Exclude:
|
|
885
|
-
- 'lib/solargraph/library.rb'
|
|
886
|
-
- 'lib/solargraph/source.rb'
|
|
887
|
-
|
|
888
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
889
|
-
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
890
|
-
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
891
|
-
# SupportedShorthandSyntax: always, never, either, consistent, either_consistent
|
|
892
|
-
Style/HashSyntax:
|
|
893
282
|
Exclude:
|
|
894
|
-
- '
|
|
895
|
-
- 'spec/source/cursor_spec.rb'
|
|
896
|
-
- 'spec/source/source_chainer_spec.rb'
|
|
897
|
-
|
|
898
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
899
|
-
Style/IdenticalConditionalBranches:
|
|
900
|
-
Exclude:
|
|
901
|
-
- 'lib/solargraph/library.rb'
|
|
902
|
-
- 'lib/solargraph/type_checker.rb'
|
|
903
|
-
|
|
904
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
905
|
-
# Configuration parameters: AllowIfModifier.
|
|
906
|
-
Style/IfInsideElse:
|
|
907
|
-
Enabled: false
|
|
283
|
+
- 'lib/solargraph/source_map/clip.rb'
|
|
908
284
|
|
|
909
285
|
# This cop supports safe autocorrection (--autocorrect).
|
|
910
286
|
Style/IfUnlessModifier:
|
|
911
287
|
Enabled: false
|
|
912
288
|
|
|
913
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
914
|
-
# Configuration parameters: EnforcedStyle.
|
|
915
|
-
# SupportedStyles: call, braces
|
|
916
|
-
Style/LambdaCall:
|
|
917
|
-
Exclude:
|
|
918
|
-
- 'lib/solargraph/library.rb'
|
|
919
|
-
|
|
920
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
921
|
-
Style/MapIntoArray:
|
|
922
|
-
Exclude:
|
|
923
|
-
- 'lib/solargraph/diagnostics/update_errors.rb'
|
|
924
|
-
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
|
925
|
-
|
|
926
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
927
|
-
Style/MapToHash:
|
|
928
|
-
Exclude:
|
|
929
|
-
- 'lib/solargraph/bench.rb'
|
|
930
|
-
|
|
931
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
932
|
-
Style/MapToSet:
|
|
933
|
-
Exclude:
|
|
934
|
-
- 'lib/solargraph/library.rb'
|
|
935
|
-
- 'spec/source_map/clip_spec.rb'
|
|
936
|
-
|
|
937
289
|
# This cop supports safe autocorrection (--autocorrect).
|
|
938
290
|
# Configuration parameters: EnforcedStyle.
|
|
939
291
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
|
940
292
|
Style/MethodDefParentheses:
|
|
941
|
-
|
|
293
|
+
Exclude:
|
|
294
|
+
- 'spec/fixtures/rdoc-lib/lib/example.rb'
|
|
942
295
|
|
|
943
296
|
Style/MultilineBlockChain:
|
|
944
297
|
Exclude:
|
|
945
298
|
- 'lib/solargraph/pin/search.rb'
|
|
946
299
|
|
|
947
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
948
|
-
Style/MultilineIfModifier:
|
|
949
|
-
Exclude:
|
|
950
|
-
- 'lib/solargraph/pin/callable.rb'
|
|
951
|
-
|
|
952
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
953
|
-
Style/MultilineTernaryOperator:
|
|
954
|
-
Exclude:
|
|
955
|
-
- 'lib/solargraph/language_server/host.rb'
|
|
956
|
-
|
|
957
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
958
|
-
# Configuration parameters: AllowMethodComparison, ComparisonsThreshold.
|
|
959
|
-
Style/MultipleComparison:
|
|
960
|
-
Enabled: false
|
|
961
|
-
|
|
962
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
963
|
-
# Configuration parameters: EnforcedStyle.
|
|
964
|
-
# SupportedStyles: literals, strict
|
|
965
|
-
Style/MutableConstant:
|
|
966
|
-
Enabled: false
|
|
967
|
-
|
|
968
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
969
|
-
# Configuration parameters: EnforcedStyle.
|
|
970
|
-
# SupportedStyles: both, prefix, postfix
|
|
971
|
-
Style/NegatedIf:
|
|
972
|
-
Exclude:
|
|
973
|
-
- 'lib/solargraph/language_server/host/diagnoser.rb'
|
|
974
|
-
|
|
975
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
976
|
-
Style/NegatedIfElseCondition:
|
|
977
|
-
Exclude:
|
|
978
|
-
- 'lib/solargraph/diagnostics/rubocop.rb'
|
|
979
|
-
- 'lib/solargraph/language_server/message/extended/document_gems.rb'
|
|
980
|
-
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
|
981
|
-
- 'lib/solargraph/shell.rb'
|
|
982
|
-
- 'lib/solargraph/type_checker.rb'
|
|
983
|
-
|
|
984
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
985
|
-
Style/NestedTernaryOperator:
|
|
986
|
-
Exclude:
|
|
987
|
-
- 'lib/solargraph/pin/conversions.rb'
|
|
988
|
-
- 'lib/solargraph/pin/method.rb'
|
|
989
|
-
|
|
990
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
991
|
-
# Configuration parameters: EnforcedStyle, MinBodyLength, AllowConsecutiveConditionals.
|
|
992
|
-
# SupportedStyles: skip_modifier_ifs, always
|
|
993
|
-
Style/Next:
|
|
994
|
-
Exclude:
|
|
995
|
-
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
|
996
|
-
- 'lib/solargraph/pin/signature.rb'
|
|
997
|
-
- 'lib/solargraph/source_map/clip.rb'
|
|
998
|
-
|
|
999
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1000
|
-
# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
|
|
1001
|
-
Style/NumericLiterals:
|
|
1002
|
-
MinDigits: 6
|
|
1003
|
-
|
|
1004
300
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1005
301
|
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
|
1006
302
|
# SupportedStyles: predicate, comparison
|
|
1007
303
|
Style/NumericPredicate:
|
|
1008
|
-
|
|
304
|
+
Exclude:
|
|
305
|
+
- 'spec/**/*'
|
|
306
|
+
- 'lib/solargraph/language_server/message/extended/check_gem_version.rb'
|
|
307
|
+
- 'lib/solargraph/language_server/message/extended/document_gems.rb'
|
|
1009
308
|
|
|
1010
309
|
Style/OpenStructUse:
|
|
1011
310
|
Exclude:
|
|
@@ -1016,107 +315,12 @@ Style/OpenStructUse:
|
|
|
1016
315
|
Style/OptionalBooleanParameter:
|
|
1017
316
|
Enabled: false
|
|
1018
317
|
|
|
1019
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1020
|
-
# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
|
|
1021
|
-
Style/ParenthesesAroundCondition:
|
|
1022
|
-
Exclude:
|
|
1023
|
-
- 'lib/solargraph/parser/parser_gem/node_processors/send_node.rb'
|
|
1024
|
-
- 'lib/solargraph/type_checker.rb'
|
|
1025
|
-
|
|
1026
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1027
|
-
# Configuration parameters: EnforcedStyle.
|
|
1028
|
-
# SupportedStyles: short, verbose
|
|
1029
|
-
Style/PreferredHashMethods:
|
|
1030
|
-
Exclude:
|
|
1031
|
-
- 'lib/solargraph/language_server/message.rb'
|
|
1032
|
-
|
|
1033
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1034
|
-
# Configuration parameters: Methods.
|
|
1035
|
-
Style/RedundantArgument:
|
|
1036
|
-
Exclude:
|
|
1037
|
-
- 'lib/solargraph/source_map/mapper.rb'
|
|
1038
|
-
|
|
1039
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1040
|
-
Style/RedundantAssignment:
|
|
1041
|
-
Exclude:
|
|
1042
|
-
- 'lib/solargraph/language_server/host/dispatch.rb'
|
|
1043
|
-
- 'lib/solargraph/workspace/config.rb'
|
|
1044
|
-
|
|
1045
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1046
|
-
Style/RedundantBegin:
|
|
1047
|
-
Exclude:
|
|
1048
|
-
- 'lib/solargraph/language_server/transport/data_reader.rb'
|
|
1049
|
-
- 'lib/solargraph/shell.rb'
|
|
1050
|
-
- 'lib/solargraph/source/cursor.rb'
|
|
1051
|
-
- 'lib/solargraph/source/encoding_fixes.rb'
|
|
1052
|
-
- 'lib/solargraph/workspace.rb'
|
|
1053
|
-
|
|
1054
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1055
|
-
Style/RedundantException:
|
|
1056
|
-
Exclude:
|
|
1057
|
-
- 'spec/language_server/host_spec.rb'
|
|
1058
|
-
|
|
1059
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1060
|
-
Style/RedundantFreeze:
|
|
1061
|
-
Exclude:
|
|
1062
|
-
- 'lib/solargraph/complex_type.rb'
|
|
1063
|
-
- 'lib/solargraph/source_map/mapper.rb'
|
|
1064
|
-
|
|
1065
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1066
|
-
Style/RedundantInterpolation:
|
|
1067
|
-
Exclude:
|
|
1068
|
-
- 'lib/solargraph/parser/parser_gem/node_chainer.rb'
|
|
1069
|
-
- 'lib/solargraph/source_map/mapper.rb'
|
|
1070
|
-
|
|
1071
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1072
|
-
Style/RedundantParentheses:
|
|
1073
|
-
Enabled: false
|
|
1074
|
-
|
|
1075
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1076
|
-
Style/RedundantRegexpArgument:
|
|
1077
|
-
Exclude:
|
|
1078
|
-
- 'lib/solargraph/api_map/index.rb'
|
|
1079
|
-
- 'lib/solargraph/workspace/config.rb'
|
|
1080
|
-
- 'spec/diagnostics/rubocop_helpers_spec.rb'
|
|
1081
|
-
- 'spec/diagnostics/rubocop_spec.rb'
|
|
1082
|
-
- 'spec/language_server/host_spec.rb'
|
|
1083
|
-
|
|
1084
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1085
|
-
Style/RedundantRegexpEscape:
|
|
1086
|
-
Enabled: false
|
|
1087
|
-
|
|
1088
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1089
|
-
# Configuration parameters: AllowMultipleReturnValues.
|
|
1090
|
-
Style/RedundantReturn:
|
|
1091
|
-
Exclude:
|
|
1092
|
-
- 'lib/solargraph/complex_type/type_methods.rb'
|
|
1093
|
-
- 'lib/solargraph/parser/parser_gem/node_methods.rb'
|
|
1094
|
-
- 'lib/solargraph/source/chain/z_super.rb'
|
|
1095
|
-
|
|
1096
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1097
|
-
Style/RedundantSelf:
|
|
1098
|
-
Enabled: false
|
|
1099
|
-
|
|
1100
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1101
|
-
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
|
1102
|
-
# SupportedStyles: slashes, percent_r, mixed
|
|
1103
|
-
Style/RegexpLiteral:
|
|
1104
|
-
Exclude:
|
|
1105
|
-
- 'lib/solargraph/language_server/uri_helpers.rb'
|
|
1106
|
-
- 'lib/solargraph/workspace/config.rb'
|
|
1107
|
-
|
|
1108
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1109
|
-
# Configuration parameters: EnforcedStyle.
|
|
1110
|
-
# SupportedStyles: implicit, explicit
|
|
1111
|
-
Style/RescueStandardError:
|
|
1112
|
-
Exclude:
|
|
1113
|
-
- 'lib/solargraph/pin/base.rb'
|
|
1114
|
-
|
|
1115
318
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1116
319
|
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
|
1117
320
|
# AllowedMethods: present?, blank?, presence, try, try!
|
|
1118
321
|
Style/SafeNavigation:
|
|
1119
|
-
|
|
322
|
+
Exclude:
|
|
323
|
+
- 'lib/solargraph/pin/base.rb'
|
|
1120
324
|
|
|
1121
325
|
# Configuration parameters: Max.
|
|
1122
326
|
Style/SafeNavigationChainLength:
|
|
@@ -1125,127 +329,29 @@ Style/SafeNavigationChainLength:
|
|
|
1125
329
|
|
|
1126
330
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1127
331
|
Style/SlicingWithRange:
|
|
1128
|
-
Enabled: false
|
|
1129
|
-
|
|
1130
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1131
|
-
# Configuration parameters: AllowModifier.
|
|
1132
|
-
Style/SoleNestedConditional:
|
|
1133
332
|
Exclude:
|
|
1134
|
-
- 'lib/solargraph/
|
|
1135
|
-
- 'lib/solargraph/pin/parameter.rb'
|
|
1136
|
-
- 'lib/solargraph/source.rb'
|
|
1137
|
-
- 'lib/solargraph/source/source_chainer.rb'
|
|
1138
|
-
- 'lib/solargraph/type_checker.rb'
|
|
1139
|
-
|
|
1140
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1141
|
-
Style/StderrPuts:
|
|
1142
|
-
Exclude:
|
|
1143
|
-
- 'lib/solargraph/pin/base.rb'
|
|
1144
|
-
- 'lib/solargraph/shell.rb'
|
|
1145
|
-
|
|
1146
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1147
|
-
# Configuration parameters: Mode.
|
|
1148
|
-
Style/StringConcatenation:
|
|
1149
|
-
Enabled: false
|
|
333
|
+
- 'lib/solargraph/convention/struct_definition/struct_definition_node.rb'
|
|
1150
334
|
|
|
1151
335
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1152
336
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
1153
337
|
# SupportedStyles: single_quotes, double_quotes
|
|
1154
338
|
Style/StringLiterals:
|
|
1155
|
-
Enabled: false
|
|
1156
|
-
|
|
1157
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1158
|
-
Style/SuperArguments:
|
|
1159
|
-
Exclude:
|
|
1160
|
-
- 'lib/solargraph/pin/callable.rb'
|
|
1161
|
-
- 'lib/solargraph/pin/method.rb'
|
|
1162
|
-
- 'lib/solargraph/pin/signature.rb'
|
|
1163
|
-
|
|
1164
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1165
|
-
# Configuration parameters: EnforcedStyle, MinSize.
|
|
1166
|
-
# SupportedStyles: percent, brackets
|
|
1167
|
-
Style/SymbolArray:
|
|
1168
|
-
Enabled: false
|
|
1169
|
-
|
|
1170
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1171
|
-
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
|
|
1172
|
-
# AllowedMethods: define_method
|
|
1173
|
-
Style/SymbolProc:
|
|
1174
|
-
Enabled: false
|
|
1175
|
-
|
|
1176
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1177
|
-
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
|
1178
|
-
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
|
1179
|
-
Style/TernaryParentheses:
|
|
1180
339
|
Exclude:
|
|
1181
|
-
- '
|
|
1182
|
-
|
|
1183
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1184
|
-
# Configuration parameters: EnforcedStyleForMultiline.
|
|
1185
|
-
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
1186
|
-
Style/TrailingCommaInArguments:
|
|
1187
|
-
Enabled: false
|
|
1188
|
-
|
|
1189
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1190
|
-
# Configuration parameters: EnforcedStyleForMultiline.
|
|
1191
|
-
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
|
1192
|
-
Style/TrailingCommaInArrayLiteral:
|
|
1193
|
-
Exclude:
|
|
1194
|
-
- 'lib/solargraph/language_server/message/text_document/formatting.rb'
|
|
1195
|
-
- 'lib/solargraph/rbs_map/core_fills.rb'
|
|
340
|
+
- 'spec/fixtures/rdoc-lib/rdoc-lib.gemspec'
|
|
341
|
+
- 'spec/source/chain_spec.rb'
|
|
1196
342
|
|
|
1197
343
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1198
|
-
|
|
1199
|
-
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
|
1200
|
-
Style/TrailingCommaInHashLiteral:
|
|
344
|
+
Style/SuperArguments:
|
|
1201
345
|
Exclude:
|
|
1202
346
|
- 'lib/solargraph/pin/callable.rb'
|
|
1203
|
-
- 'lib/solargraph/pin/closure.rb'
|
|
1204
|
-
- 'lib/solargraph/rbs_map/conversions.rb'
|
|
1205
|
-
|
|
1206
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1207
|
-
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
|
|
1208
|
-
# 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
|
|
1209
|
-
Style/TrivialAccessors:
|
|
1210
|
-
Exclude:
|
|
1211
|
-
- 'lib/solargraph/language_server/message/extended/check_gem_version.rb'
|
|
1212
|
-
|
|
1213
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1214
|
-
Style/WhileUntilModifier:
|
|
1215
|
-
Exclude:
|
|
1216
|
-
- 'lib/solargraph/complex_type.rb'
|
|
1217
|
-
|
|
1218
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1219
|
-
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
|
|
1220
|
-
# SupportedStyles: percent, brackets
|
|
1221
|
-
Style/WordArray:
|
|
1222
|
-
Enabled: false
|
|
1223
|
-
|
|
1224
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1225
|
-
Style/YAMLFileRead:
|
|
1226
|
-
Exclude:
|
|
1227
|
-
- 'lib/solargraph/workspace/config.rb'
|
|
1228
|
-
|
|
1229
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1230
|
-
Style/ZeroLengthPredicate:
|
|
1231
|
-
Exclude:
|
|
1232
|
-
- 'lib/solargraph/language_server/host.rb'
|
|
1233
347
|
- 'lib/solargraph/pin/method.rb'
|
|
1234
|
-
- 'lib/solargraph/source/chain/array.rb'
|
|
1235
|
-
- 'spec/language_server/protocol_spec.rb'
|
|
1236
|
-
|
|
1237
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
1238
|
-
# Configuration parameters: EnforcedStyle.
|
|
1239
|
-
# SupportedStyles: long, short
|
|
1240
|
-
YARD/CollectionType:
|
|
1241
|
-
Exclude:
|
|
1242
|
-
- 'lib/solargraph/range.rb'
|
|
1243
348
|
|
|
1244
349
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1245
350
|
# Configuration parameters: EnforcedStylePrototypeName.
|
|
1246
351
|
# SupportedStylesPrototypeName: before, after
|
|
1247
352
|
YARD/MismatchName:
|
|
1248
|
-
|
|
353
|
+
Exclude:
|
|
354
|
+
- 'lib/solargraph/pin/reference.rb'
|
|
1249
355
|
|
|
1250
356
|
YARD/TagTypeSyntax:
|
|
1251
357
|
Enabled: false
|
|
@@ -1254,4 +360,4 @@ YARD/TagTypeSyntax:
|
|
|
1254
360
|
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
|
1255
361
|
# URISchemes: http, https
|
|
1256
362
|
Layout/LineLength:
|
|
1257
|
-
Max:
|
|
363
|
+
Max: 224
|