Comments (4)
@AArnott they are supposed to already be internal, but we'd fix any that were found.
from vssdk-analyzers.
I'm actually thinking we should Won't Fix this. @sharwell, how can we flag when assemblies expose MPF types in their public API when it's by design that they should do so? For example, a public type will derive from Package
. In fact many MPF types may be exposed in "public" API for testability purposes (yes InternalsVisibleTo could be used, but that can be an MPF interop problem too, as we've seen with Roslyn).
from vssdk-analyzers.
For example, a public type will derive from Package.
There are two resolutions for this:
- The safest resolution is to mark the type which derives from
Package
asinternal
instead ofpublic
. - An alternative solution, typically for cases where the developer knows there are no other assemblies depending on a project, is to simply disable the rule.
from vssdk-analyzers.
@sharwell Would your team mark all the relevant types internal or would you turn the rule off?
from vssdk-analyzers.
Related Issues (20)
- VSSDK006CheckServicesExistAnalyzer throwing ArgumentException: Syntax node is not within syntax tree HOT 1
- Analyzers static ctor crashes with inability to read its own field HOT 10
- VSSDK006 fires when validation is in another method HOT 1
- VSSDK006 does not recognize `is null` check HOT 1
- VSSDK001DeriveFromAsyncPackageCodeFix encountered an error and has been disabled HOT 1
- VSSDK002PackageRegistrationMatchesBaseTypeCodeFix encountered an error and has been disabled HOT 1
- VSSDK006CheckServicesExistCodeFix encountered an error and has been disabled HOT 1
- The type initializer for 'Microsoft.VisualStudio.SDK.Analyzers.VSSDK001DeriveFromAsyncPackageCodeFix' threw an exception HOT 4
- VSTHRD010: false warning for IVsInvalidateCachedCommandState.InvalidateSpecificCommandUIState(VSCommand)
- Analyzer proposal: Catch uses of older VisualStudioServices version
- System.Object (and other types) not defined when running tests (missing assembly references) HOT 3
- Code Fix Service Gold Bar Error HOT 1
- VSSDK003 is created despite override GetAsyncToolWindowFactory being present HOT 2
- VsixCompatibilityAnalyzer target/task leaving file lock on the vsix file HOT 3
- This repo is missing important files
- VSSDK006 does not recognize null check in combination with ternary condition
- Analyzer to encourage canceling work on shutdown
- VSSDK006 analyzer can take a very long time to run
- VSSDK001 Code Fix should use the ImportAdder and simplifier
- VSSDK006 conflicts with CA2007 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vssdk-analyzers.