You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a tracking issue that I'll try to keep updated to reflect the work left to get to 100% coverage of the linker's warning validation in the analyzer.
We already have some shared tests, and #2292 improves the validation (especially for UnrecognizedReflectionAccessPattern), but there are still some discrepancies that prevent sharing of tests. The one I'm aware of is:
[ ] Ensure analyzer and linker use same signature format
This is required for a lot of the UnrecognizedReflectionAccessPattern attributes
No namespaces in parameter types
No namespace or declaring type in callee method
Use spaces between parameters
Once that's fixed we should start turning on various tests and fixing any remaining discrepancies as we uncover them:
I've updated the above with links to some of the completed work. Additionally, the following changes made it easier to share tests and give us increased confidence that the tests catch all disparities between the linker and analyzer:
We don't really want to use the same signature format for linker and analyzer, so I've crossed out that item above. We have a tracking issue for it at #2406.
I think we can close this now. We are already sharing a good portion of the tests with the analyzer, and I'm not aware of any infrastructure issues preventing us from doing further sharing. The remaining work is just about analyzer parity, tracked in #2273.
This is a tracking issue that I'll try to keep updated to reflect the work left to get to 100% coverage of the linker's warning validation in the analyzer.
We already have some shared tests, and #2292 improves the validation (especially for
UnrecognizedReflectionAccessPattern
), but there are still some discrepancies that prevent sharing of tests. The one I'm aware of is:[ ] Ensure analyzer and linker use same signature formatUnrecognizedReflectionAccessPattern
attributesOnce that's fixed we should start turning on various tests and fixing any remaining discrepancies as we uncover them:
Enable linker tests for DAM without dataflow ([feature/damAnalyzer] Enable a few linker DAM tests for analyzer #2307, [DAM analyzer] Add support for properties and enable more tests #2390)
Enable linker dataflow tests (https://github.com/dotnet/linker/pull/2360/files)
Move analyzer tests into shared linker testcases
Other test sharing that we can start doing, which doesn't depend on the
UnrecognizedReflectionAccessPattern
as far as I know:RequiresAssemblyFiles
analyzer should be able to reuse testcases forRequiresUnreferencedCode
.RequiresAssemblyFiles
attribute andExpectedWarnings
produced byRequiresAssemblyFiles
analyzer onlyThe text was updated successfully, but these errors were encountered: