Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D2L0102: Attemped to locate an unlocatable type #920

Closed
wants to merge 1 commit into from

Conversation

omsmith
Copy link
Contributor

@omsmith omsmith commented Sep 22, 2023

[Unlocatable] and [Unlocatable.Candidate] analyzer

  • Successful full_all

@omsmith omsmith requested a review from a team September 22, 2023 18:53
Comment on lines +105 to +107
new( "D2L.LP.Extensibility.Activation.Domain.SingletonLocator", "Get", _ => true, m => m.TypeArguments.Single() ),
new( "D2L.LP.Extensibility.Activation.Domain.IServiceLocator", "Get", m => m.TypeParameters.Length == 1, m => m.TypeArguments.Single() ),
new( "D2L.LP.Extensibility.Activation.Domain.IServiceLocator", "TryGet", m => m.TypeParameters.Length == 1, m => m.TypeArguments.Single() ),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should perhaps add IObjectActivator as well?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering why this is in D2L.CodeStyle vs the spot for analyzers in the LMS repo?
I don't really care, just want to understand where/if we draw the line.

Copy link
Contributor Author

@omsmith omsmith Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was simply putting it beside the other locator analyzers. Would be happy if they all moved. Would need to rewrite / port spectests in that case though.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spec tests in the LMS repo are probably a good idea.
Anyway no worries, just wondering.

@omsmith omsmith changed the title D2L0102: [Unlocatable] and [Unlocatable.Candidate] analyzer D2L0102: Attemped to locate an unlocatable type Sep 22, 2023
@omsmith omsmith closed this Apr 21, 2024
@omsmith omsmith deleted the omsmith/unlocatable branch April 21, 2024 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants