Commit cdcc3c4
authored
Merge RoslynAnalyzers into Roslyn (#77617)
This PR brings over the roslyn owned packages from the roslyn-analyzers
repo along with their history. The goal of this PR is to get the
analyzers moved over in a state that we can live with so that they can
be removed from roslyn-analyzers. We can then do further reorganization
and integration as follow-ups. My changes begin at commit
24fbf05.
NetAnalyzers will remain in roslyn-analyzers.
Moved packages:
- Microsoft.CodeAnalysis.Analyzers
- Microsoft.CodeAnalysis.AnalyzerUtilities
- Microsoft.CodeAnalysis.BannedApiAnalyzers
- Microsoft.CodeAnalysis.Metrics
- Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers
- Microsoft.CodeAnalysis.PublicApiAnalyzers
- Microsoft.CodeAnalysis.ResxSourceGenerator
- Microsoft.CodeAnalysis.RulesetToEditorconfigConverter
- Roslyn.Diagnostic.Analyzers
The package versioning is maintained and separate from the current
Roslyn package versioning. These packages use a variety of
Microsoft.CodeAnalysis package versions and I have maintained that
despite our use of transitive version pinning. I have also maintained
Roslyn's use of these packages from our NuGet feeds.
I have organized the code under a src/RoslynAnalyzers folder.

The projects are organized in our solution file beneath an Analyzers
folder.
File tree
969 files changed
+286533
-81
lines changed- .github
- docs
- analyzers
- roslyn-analyzers
- rules
- eng
- config
- targets
- src
- RoslynAnalyzers
- Assets
- Common/Test
- Microsoft.CodeAnalysis.AnalyzerUtilities
- Microsoft.CodeAnalysis.Analyzers
- CSharp
- MetaAnalyzers
- Fixers
- Core
- FixAnalyzers
- MetaAnalyzers
- Fixers
- Helpers
- xlf
- Setup
- Properties
- UnitTests
- FixAnalyzers
- MetaAnalyzers
- Properties
- VisualBasic
- MetaAnalyzers
- Fixers
- Microsoft.CodeAnalysis.BannedApiAnalyzers
- CSharp
- Core
- xlf
- Setup
- UnitTests
- VisualBasic
- Microsoft.CodeAnalysis.ResxSourceGenerator
- Microsoft.CodeAnalysis.ResxSourceGenerator.CSharp
- Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests
- Resources
- SingleString_AsConstantsCSharpAsync_False
- SingleString_AsConstantsCSharpAsync_True
- SingleString_AsConstantsVisualBasicAsync_False
- SingleString_AsConstantsVisualBasicAsync_True
- SingleString_ClassNameCSharpAsync_NS1.NS2
- SingleString_ClassNameCSharpAsync_NS
- SingleString_ClassNameCSharpAsync
- SingleString_ClassNameVisualBasicAsync_NS1.NS2
- SingleString_ClassNameVisualBasicAsync_NS
- SingleString_ClassNameVisualBasicAsync
- SingleString_DefaultCSharpAsync_CSharp5
- SingleString_DefaultCSharpAsync_CSharp6
- SingleString_DefaultCSharpAsync_CSharp7
- SingleString_DefaultCSharpAsync_CSharp8
- SingleString_DefaultCSharpAsync_CSharp9
- SingleString_DefaultVisualBasicAsync
- SingleString_EmitFormatMethodsCSharpAsync_0_False
- SingleString_EmitFormatMethodsCSharpAsync_0_True
- SingleString_EmitFormatMethodsCSharpAsync_replacement_False
- SingleString_EmitFormatMethodsCSharpAsync_replacement_True
- SingleString_EmitFormatMethodsCSharpAsync_x_False
- SingleString_EmitFormatMethodsCSharpAsync_x_True
- SingleString_EmitFormatMethodsVisualBasicAsync_False
- SingleString_EmitFormatMethodsVisualBasicAsync_True
- SingleString_IncludeDefaultValuesCSharpAsync_False
- SingleString_IncludeDefaultValuesCSharpAsync_True
- SingleString_IncludeDefaultValuesVisualBasicAsync_False
- SingleString_IncludeDefaultValuesVisualBasicAsync_True
- SingleString_NoWarnsCSharpAsync_CS1591_IDE0010
- SingleString_NoWarnsCSharpAsync_CS1591
- SingleString_NoWarnsCSharpAsync
- SingleString_NoWarnsVisualBasicAsync_CS1591_IDE0010
- SingleString_NoWarnsVisualBasicAsync_CS1591
- SingleString_NoWarnsVisualBasicAsync
- SingleString_OmitGetResourceStringCSharpAsync_False
- SingleString_OmitGetResourceStringCSharpAsync_True
- SingleString_OmitGetResourceStringVisualBasicAsync_False
- SingleString_OmitGetResourceStringVisualBasicAsync_True
- SingleString_PublicCSharpAsync_False
- SingleString_PublicCSharpAsync_True
- SingleString_PublicVisualBasicAsync_False
- SingleString_PublicVisualBasicAsync_True
- SingleString_RelativeDirCSharpAsync_NS1.NS2
- SingleString_RelativeDirCSharpAsync_NS
- SingleString_RelativeDirCSharpAsync
- SingleString_RelativeDirVisualBasicAsync_NS1.NS2
- SingleString_RelativeDirVisualBasicAsync_NS
- SingleString_RelativeDirVisualBasicAsync
- SingleString_RootNamespaceCSharpAsync_NS1.NS2
- SingleString_RootNamespaceCSharpAsync_NS
- SingleString_RootNamespaceCSharpAsync
- SingleString_RootNamespaceVisualBasicAsync_NS1.NS2
- SingleString_RootNamespaceVisualBasicAsync_NS
- SingleString_RootNamespaceVisualBasicAsync
- TwoResourcesSameName_DefaultCSharpAsync
- TwoResourcesSameName_DefaultVisualBasicAsync
- Verifiers
- Microsoft.CodeAnalysis.ResxSourceGenerator.VisualBasic
- Microsoft.CodeAnalysis.ResxSourceGenerator
- xlf
- NuGet
- Microsoft.CodeAnalysis.AnalyzerUtilities
- Microsoft.CodeAnalysis.Analyzers
- Microsoft.CodeAnalysis.BannedApiAnalyzers
- Microsoft.CodeAnalysis.Metrics
- Microsoft.CodeAnalysis.ResxSourceGenerator
- Microsoft.CodeAnalysis.RulesetToEditorconfigConverter
- PerformanceSensitiveAnalyzers
- PublicApiAnalyzers
- Roslyn.Diagnostics.Analyzers
- Text.Analyzers
- PerformanceSensitiveAnalyzers
- CSharp
- Analyzers
- xlf
- CodeFixes
- xlf
- Core
- xlf
- Setup
- UnitTests
- PublicApiAnalyzers
- Core
- Analyzers
- xlf
- CodeFixes
- Setup
- UnitTests
- Roslyn.Diagnostics.Analyzers
- CSharp
- Core
- xlf
- Setup
- Properties
- UnitTests
- Properties
- VisualBasic
- Test.Utilities
- TestReferenceAssembly
- Text.Analyzers
- CSharp
- Core
- xlf
- Setup
- Properties
- UnitTests
- Properties
- VisualBasic
- Tools
- GenerateAnalyzerNuspec
- GenerateDocumentationAndConfigFilesForBrokenRuntime
- GenerateDocumentationAndConfigFiles
- Metrics.Legacy
- Metrics
- RulesetToEditorconfigConverter
- Source
- Tests
- Utilities.UnitTests
- Extensions
- FlowAnalysis/Analysis/PropertySetAnalysis
- Lightup
- Options
- Utilities
- Compiler.CSharp
- Extensions
- Lightup
- Compiler
- CodeMetrics
- Extensions
- Lightup
- Options
- PooledObjects
- FlowAnalysis
- Extensions
- FlowAnalysis
- Analysis
- CopyAnalysis
- DisposeAnalysis
- GlobalFlowStateAnalysis
- ParameterValidationAnalysis
- PointsToAnalysis
- PropertySetAnalysis
- TaintedDataAnalysis
- ValueContentAnalysis
- Framework/DataFlow
- Options
- Refactoring.CSharp
- Extensions
- Refactoring.VisualBasic
- Extensions
- Refactoring
- Extensions
- Workspaces
- Tools/Replay
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
969 files changed
+286533
-81
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
| 21 | + | |
19 | 22 | | |
| 23 | + | |
20 | 24 | | |
| 25 | + | |
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
119 | | - | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| |||
225 | 227 | | |
226 | 228 | | |
227 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
228 | 234 | | |
229 | | - | |
| 235 | + | |
230 | 236 | | |
231 | 237 | | |
232 | 238 | | |
| |||
237 | 243 | | |
238 | 244 | | |
239 | 245 | | |
| 246 | + | |
240 | 247 | | |
| 248 | + | |
241 | 249 | | |
| 250 | + | |
242 | 251 | | |
| 252 | + | |
243 | 253 | | |
| 254 | + | |
244 | 255 | | |
245 | 256 | | |
246 | 257 | | |
| |||
313 | 324 | | |
314 | 325 | | |
315 | 326 | | |
316 | | - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
317 | 338 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
52 | 61 | | |
53 | 62 | | |
54 | 63 | | |
| |||
0 commit comments