Repository navigation
Conversation
respond_to?(:stub) is a legitimate guard: different Bundler versions vary on whether Bundler::StubSpecification exposes it. The direct .stub call after the guard produced a config-dependent Unneeded/ needed @sg-ignore flip, because rspec-mocks adds Object#stub whenever solargraph-rspec is loaded as a plugin, changing what respond_to? narrows to for static analysis. Dispatching via .send(:stub) isn't subject to that narrowing, so the ignore comment is no longer needed.
Owner
Author
|
Claude: Superseded by castwide/solargraph#1245 - same fix cherry-picked onto its extract-1240-code-changes branch as commit c146835. Closing this standalone PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claude: opened on behalf of Vince Broz.
gemspecs.rb'srespond_to?(:stub)guard is legitimate (differentBundler versions vary on whether Bundler::StubSpecification has
this method), but the direct
.stubcall after it produces aconfig-dependent Unneeded/needed @sg-ignore flip: rspec-mocks makes
Object#stub visible to Solargraph's static analysis whenever
solargraph-rspec is loaded as a plugin, changing what
respond_to?(:stub) narrows to. Dispatching via .send(:stub) isn't
subject to the same static narrowing, so the check passes cleanly
either way and the ignore marker is no longer needed.