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