diff options
author | Tlakaelel Axayakatl Ceja <tlakaelel.ceja@microsoft.com> | 2021-05-19 23:04:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 23:04:03 +0300 |
commit | aad916c7111323d4b5744eb2444252d149c57a8a (patch) | |
tree | 96955fd9a28adc2281c3619525587de6f82a4fc1 /eng/native/functions.cmake | |
parent | a287b6d54d460f4fab0fe074bad73e7356472846 (diff) |
Enable single file analyzer in the runtime (#50894)
Summary:
Enables single file analyzer in the runtime by adding the ILLink.Analyzers package and the property EnableSingleFileAnalyzer equals to true
Deletes entries IL3000 and IL3001 in the CodeAnalysis.ruleset so the analyzer can actually produce these warnings otherwise the analyzer execution would be skipped. *Note*: tests warnings are controlled by CodeAnalysis.test.ruleset (this PR adds IL3002 to the CodeAnalysis.test.ruleset to disable the warning on tests)
Resolve warnings on single file dangerous patterns by:
- Annotating incompatible single file patterns with RequiresAssemblyFiles
- Suppressing the warning (because there is code that handles the incompatible code)
- Fixing the issue on code (remove the incompatible code and replace it with something that won't fail)
- Opening an issue to track fix and either annotate/suppress the current behavior
Diffstat (limited to 'eng/native/functions.cmake')
0 files changed, 0 insertions, 0 deletions