Skip to content

Mark Interop only methods as such and create a project analyzer for them. #536

@rubberduck203

Description

@rubberduck203

Visual Studio 2015 lets you create project specific analyzers, similar to what R# does in general. We have some code that exist to facilitate COM Interop, but that should not be used internally. I'm thinking we could create a custom attribute InteropOnlyAttriubute and apply it to these methods. Then, an analyzer to check the name space of any code calling on these methods. If the namespace isn't Rubberduck.*Interop, raise a warning. Similar to marking an old method with [Obsolete], we could get a custom compile time warning about internal code using methods it shouldn't be.

Some reference links.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature requests, or enhancements to existing features. Ideas. Anything within the project's scope.feature-reflection-apimetastatus-deferredThere is no way to implement this right now, but the team wants to do it.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions