Age | Commit message (Collapse) | Author |
|
Move RequiresAssemblyFiles from Analyzer to the linker RequiresCapability file
Move the new constraint code from RequiresUnreferencedCode to be on the base Requires file
Add Warning Id to messages from the analyzer to distinguish in a test which analyzer missed/found a warning
Add RequiresAssemblyFilesMismatchAttribute Title and Message to fix bug
Add testing in linker for mismatching attributes
Add testing in linker for Delegates in CompilerGenerated file
Add support for static constructor compiler-generated calls
Add additional warnings from DAM and RUC interaction. Not supported by the analyzer yet
|
|
* Use all analyzers for each linker's test run
* Remove SimpleAnalyzerOptions from CSharpAnalyzerVerifier
|
|
* Improve analyzer test checker
- When diagnostics are missing, display all missing diagnostics
- Show candidate diagnostics that didn't match any expected ones
- Adjust match criteria to match Roslyn strings
- Clean up nullable annotations in test infra
- Remove cctor warnings from analyzer to match linker
- Remove redundant attribute property setter warnings
- Fix location filtering for warnings that originate from types
|
|
* PR feedback
* Remove unnecessary method
|
|
given a DiagnosticId (#2170)
* Add DiagnosticId enum
Add GetDiagnosticDescriptor
* Check that the diagnostic id is in the range of the supported linker warnings
* Lint
* Share DiagnosticString
* Noisy whitespace
* Warnings go up to 6000 inclusive
* PR feedback
* Get diagnostic string
Update test
* Lint
* PR feedback
|
|
Bump sdk version in global.json
Fix new analyzer recommendations about AsSpan and Contains(char)
Disable ImplicitNamespaceImports
Update Microsoft.NetCore.App.Ref used by analyzer to take new Runtime attribute changes
Update analyzer to not use Message as a property in RequiresAssemblyFilesAttribute
Update cecil to use Microsoft.NETFramework.ReferenceAssemblies.net40 1.0.2 along with taking other cecil updates
|
|
The version is currently hardcoded in TestCaseUtils.cs, but since
these are reference assemblies, as long as the surface area isn't
predicted to change, we can update as necessary.
|
|
Add analyzer logic to create a diagnostic if attributes don't match between all interface implementations or overrides
Use IL2046 to display errors for RUC
Use IL3003 to display errors for RAF
Add IL3003 to error-codes.md
Add tests
Adds support for nullable attribute operations
Add support for adding metadata information into the compilation
Divide the current warning message into 4 different more insightful diagnostic messages following the structure implemented in ObsoleteAttribute messages
Add IL2046 to diagnostic format to ILLink.Shared
|
|
Add RequiresAssemblyFiles CodeFix
Add tests
Fix #2005
Refactor analyzer code. Fixes #1986
Add resources files to codefixer
|
|
Add CodeFix for UnconditionalSuppressMessage
Add test for UnconditionalSuppressMessage
Change FindContainingMember to FindAttributableParent and add a list of AttributableParentTargets to values that are possible
Add a base class to remove code duplication
Use net5.0 reference assemblies and define requiresAssemblyFiles manually (reverts #1922)
|
|
Fix delegate conversion on analyzers
Fix test in RequiresUnreferencedCodeAnalyzer
Add tests for delegate conversion
Add the ability to pass the number of iterations in a codefix
|
|
capability to suppress IL3000/IL3001 with RequiresAssemblyFilesAnalyzer (#1921)
Merge SingleFileAnalyzer into RequiresAssemblyFilesAnalyzer
Suppress warnings on dangerous patterns if RequiresAssemblyFilesAttribute is used on the parent call
Fix case in which we have a dangerous method inside a property
Add tests
|
|
* Used repo's dotnet bits
* Remove unused assembly
* Just reference SPCL
* Simplify
* Remove using
|
|
Change PublishSingleFile and PublishTrimmed for EnableSingleFileAnalyzer and
EnableTrimAnalyzer in the linker
|
|
* Change resource file to have a default message and accept arguments
* Add test for RequiresAssemblyFilesAttribute with Url named argument only
* Add IL3XXX warning codes to the master error code registry
* Throw whenever a named argument is passed in ExpectedWarning
|
|
|