Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
133714d
Add AnalyzerConfigOptionSet to get Option values from AnalyzerConfig
JoeRobich Sep 12, 2019
94ef521
Revert removal of CodeActionIndex from Test
JoeRobich Sep 13, 2019
ee5ebc2
Simplify TryGetEditorConfigOption method
JoeRobich Sep 13, 2019
1b567d3
Add copyright and nullability to AnalyzerConfigOptionSet
JoeRobich Sep 13, 2019
eb6962e
Use ConfigureAwait(false) in GetAnalyzerOptionSetAsync
JoeRobich Sep 13, 2019
d8b2ac9
Remove null checks for OptionSet returned by GetAnalyzerOptionSetAsync
JoeRobich Sep 13, 2019
8dd4e35
Revert DocumentState change and set TestWorkspace Projects within a d…
JoeRobich Sep 13, 2019
eb44920
Merge remote-tracking branch 'origin/master' into add-analyzerconfigo…
JoeRobich Nov 12, 2019
f437839
Get Option values from AnalyzerOptions directly
JoeRobich Nov 12, 2019
7823b6e
Add synchronous GetOption methods in AnlyzerHelper
JoeRobich Nov 12, 2019
c7d7996
Revert test changes
JoeRobich Nov 26, 2019
7303749
Use AnalyzerOptions.GetOption<> in place of OptionSet
JoeRobich Nov 26, 2019
e9eabce
Remove reflection from AnalyzerConfigOptionsExtensions
JoeRobich Nov 26, 2019
79aa002
Remove use of OptionSet from DefaultLiteral analyzer
JoeRobich Nov 27, 2019
4a78cb7
Merge branch 'master' into add-analyzerconfigoptionset
JoeRobich Nov 27, 2019
f3004cc
Rename OptionSetExtensions
JoeRobich Dec 5, 2019
6df7ed1
Add comments
JoeRobich Dec 5, 2019
1f570b3
Unify finding option value from EditorConfigStorageLocation
JoeRobich Dec 5, 2019
d64df68
Add additional GetOption Helpers for AnalysisContexts
JoeRobich Dec 5, 2019
c299b3f
Update to use AnalyzerContexts helpers for GetOption
JoeRobich Dec 5, 2019
c2b5811
Revert unused test code
JoeRobich Dec 5, 2019
bb40996
Merge remote-tracking branch 'origin/master' into add-analyzerconfigo…
JoeRobich Dec 5, 2019
ae17915
Add a dictionary backed AnalyzerConfigOptions class
JoeRobich Dec 9, 2019
f1a795b
Avoid wrapping AnalyzerConfigOptions in a dictionary
JoeRobich Dec 9, 2019
8afb096
Remove throw from TryGetOption
JoeRobich Dec 9, 2019
e9bfd5c
Implemented PR feedback
JoeRobich Dec 17, 2019
6cfe97d
Merge remote-tracking branch 'origin/master' into add-analyzerconfigo…
JoeRobich Feb 11, 2020
b668b92
Add a way to enumerate AnalyzerConfigOption keys
JoeRobich Feb 12, 2020
4d6d6af
Merge remote-tracking branch 'origin/master' into add-analyzerconfigo…
JoeRobich Feb 12, 2020
27a053a
Merge remote-tracking branch 'origin/master' into add-analyzerconfigo…
JoeRobich Feb 13, 2020
9ab0647
Fix nullable warnings
JoeRobich Feb 13, 2020
039550f
Make AnalyzerConfigOptions.Keys return an IEnumerable
JoeRobich Feb 13, 2020
17249c7
Update use of GetDocumentOptionSet to GetAnalyzerOptionSet
JoeRobich Feb 19, 2020
f12e8df
Restore CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer
JoeRobich Feb 19, 2020
ac54df3
Add regression test (#41767)
RikkiGibson Feb 19, 2020
ca1a68c
Add two nullable warnings to WarnAsError:nullable (#41686)
jcouv Feb 19, 2020
d27b5a7
Merge pull request #41752 from JoeRobich/fix-classview-sync
JoeRobich Feb 19, 2020
22b7f46
Merge pull request #38675 from JoeRobich/add-analyzerconfigoptionset
JoeRobich Feb 19, 2020
0fd5359
Merge pull request #41787 from dotnet/merges/release/dev16.4-to-relea…
Feb 19, 2020
508ed76
Merge pull request #41795 from dotnet/merges/release/dev16.5-to-master
Feb 20, 2020
b92b63b
Update dependencies from https://github.com/dotnet/arcade build 20200…
dotnet-maestro[bot] Feb 20, 2020
5990228
Avoid use-site diagnostics in TupleTypeDecoder (#41701)
cston Feb 20, 2020
7a512a0
Fix deterministic build
mavasani Feb 20, 2020
312a082
Revert changes to AnalyzerConfigOptions
JoeRobich Feb 20, 2020
8864ebc
Add link to explanatory comment
JoeRobich Feb 20, 2020
a3145c0
Call AsyncMethodBuilder.Start on field not on local (#41253)
benaadams Feb 20, 2020
3a8ef2d
Merge pull request #41839 from JoeRobich/revert-analyzerconfigoptions
JoeRobich Feb 21, 2020
019f8df
Merge pull request #41838 from mavasani/FixDeterministicBuild
mavasani Feb 21, 2020
b494eec
Merge pull request #41832 from dotnet/merges/release/dev16.5-to-master
Feb 21, 2020
a3918bf
Merge pull request #41847 from dotnet/features/local-function-attributes
RikkiGibson Feb 21, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<ProductDependencies>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20118.1">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20119.14">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>b40d0c89c230189b4c6aeb32c0a43218b4bc3359</Sha>
<Sha>4660949bde1083e8b1efba3096dd145d590a0b17</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
25 changes: 25 additions & 0 deletions eng/common/post-build/check-channel-consistency.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
param(
[Parameter(Mandatory=$true)][string] $PromoteToChannels, # List of channels that the build should be promoted to
[Parameter(Mandatory=$true)][array] $AvailableChannelIds # List of channel IDs available in the YAML implementation
)

try {
. $PSScriptRoot\post-build-utils.ps1

# Check that every channel that Maestro told to promote the build to
# is available in YAML
$PromoteToChannelsIds = $PromoteToChannels -split "\D" | Where-Object { $_ }

foreach ($id in $PromoteToChannelsIds) {
if (($id -ne 0) -and ($id -notin $AvailableChannelIds)) {
Write-PipelineTaskError -Type 'warning' -Message "Channel $id is not present in the post-build YAML configuration!"
}
}

Write-Host 'done.'
}
catch {
Write-Host $_
Write-PipelineTelemetryError -Category 'CheckChannelConsistency' -Message "There was an error while trying to check consistency of Maestro default channels for the build and post-build YAML configuration."
ExitWithExitCode 1
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ stages:
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOPipelineId'] ]
- name: AzDOBuildId
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOBuildId'] ]
- name: ArtifactsCategory
value: ${{ coalesce(variables._DotNetArtifactsCategory, '.NETCore') }}
condition: or(contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', ${{ parameters.channelId }} )), eq(dependencies.setupMaestroVars.outputs['setReleaseVars.PromoteToMaestroChannelId'], ${{ parameters.channelId }}))
pool:
vmImage: 'windows-2019'
Expand Down Expand Up @@ -132,7 +134,7 @@ stages:
inputs:
filePath: eng\common\sdk-task.ps1
arguments: -task PublishArtifactsInManifest -restore -msbuildEngine dotnet
/p:ArtifactsCategory=$(_DotNetArtifactsCategory)
/p:ArtifactsCategory=$(ArtifactsCategory)
/p:IsStableBuild=$(IsStableBuild)
/p:IsInternalBuild=$(IsInternalBuild)
/p:RepositoryName=$(Build.Repository.Name)
Expand Down
58 changes: 46 additions & 12 deletions eng/common/templates/post-build/post-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,22 @@ parameters:
publishDependsOn:
- Validate

# Channel ID's instantiated in this file.
# When adding a new channel implementation the call to `check-channel-consistency.ps1`
# needs to be updated with the new channel ID
NetEngLatestChannelId: 2
NetEngValidationChannelId: 9
NetCoreDev5ChannelId: 131
GeneralTestingChannelId: 529
NETCoreToolingDevChannelId: 548
NETCoreToolingReleaseChannelId: 549
NETInternalToolingChannelId: 551
NETCoreExperimentalChannelId: 562
NetEngServicesIntChannelId: 678
NetEngServicesProdChannelId: 679
Net5Preview1ChannelId: 737
Net5Preview2ChannelId: 738

stages:
- stage: Validate
dependsOn: ${{ parameters.validateDependsOn }}
Expand All @@ -31,6 +47,24 @@ stages:
jobs:
- template: setup-maestro-vars.yml

- job:
displayName: Post-build Checks
dependsOn: setupMaestroVars
variables:
- name: InitialChannels
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'] ]
- name: PromoteToMaestroChannelId
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.PromoteToMaestroChannelId'] ]
pool:
vmImage: 'windows-2019'
steps:
- task: PowerShell@2
displayName: Maestro Channels Consistency
inputs:
filePath: $(Build.SourcesDirectory)/eng/common/post-build/check-channel-consistency.ps1
arguments: -PromoteToChannels "$(InitialChannels)[$(PromoteToMaestroChannelId)]"
-AvailableChannelIds ${{parameters.NetEngLatestChannelId}},${{parameters.NetEngValidationChannelId}},${{parameters.NetCoreDev5ChannelId}},${{parameters.GeneralTestingChannelId}},${{parameters.NETCoreToolingDevChannelId}},${{parameters.NETCoreToolingReleaseChannelId}},${{parameters.NETInternalToolingChannelId}},${{parameters.NETCoreExperimentalChannelId}},${{parameters.NetEngServicesIntChannelId}},${{parameters.NetEngServicesProdChannelId}},${{parameters.Net5Preview1ChannelId}},${{parameters.Net5Preview2ChannelId}}

- job:
displayName: NuGet Validation
dependsOn: setupMaestroVars
Expand Down Expand Up @@ -165,7 +199,7 @@ stages:
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
stageName: 'NetCore_Dev5_Publish'
channelName: '.NET Core 5 Dev'
channelId: 131
channelId: ${{ parameters.NetCoreDev5ChannelId }}
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5-transport/nuget/v3/index.json'
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json'
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5-symbols/nuget/v3/index.json'
Expand All @@ -178,7 +212,7 @@ stages:
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
stageName: 'Net5_Preview1_Publish'
channelName: '.NET 5 Preview 1'
channelId: 737
channelId: ${{ parameters.Net5Preview1ChannelId }}
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5-transport/nuget/v3/index.json'
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json'
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5-symbols/nuget/v3/index.json'
Expand All @@ -191,7 +225,7 @@ stages:
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
stageName: 'Net5_Preview2_Publish'
channelName: '.NET 5 Preview 2'
channelId: 738
channelId: ${{ parameters.Net5Preview2ChannelId }}
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5-transport/nuget/v3/index.json'
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json'
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5-symbols/nuget/v3/index.json'
Expand All @@ -204,7 +238,7 @@ stages:
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
stageName: 'Net_Eng_Latest_Publish'
channelName: '.NET Eng - Latest'
channelId: 2
channelId: ${{ parameters.NetEngLatestChannelId }}
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng-symbols/nuget/v3/index.json'
Expand All @@ -217,7 +251,7 @@ stages:
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
stageName: 'Net_Eng_Validation_Publish'
channelName: '.NET Eng - Validation'
channelId: 9
channelId: ${{ parameters.NetEngValidationChannelId }}
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng-symbols/nuget/v3/index.json'
Expand All @@ -230,7 +264,7 @@ stages:
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
stageName: 'General_Testing_Publish'
channelName: 'General Testing'
channelId: 529
channelId: ${{ parameters.GeneralTestingChannelId }}
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/general-testing/nuget/v3/index.json'
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/general-testing/nuget/v3/index.json'
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/general-testing-symbols/nuget/v3/index.json'
Expand All @@ -243,7 +277,7 @@ stages:
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
stageName: 'NETCore_Tooling_Dev_Publishing'
channelName: '.NET Core Tooling Dev'
channelId: 548
channelId: ${{ parameters.NETCoreToolingDevChannelId }}
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json'
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json'
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools-symbols/nuget/v3/index.json'
Expand All @@ -256,7 +290,7 @@ stages:
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
stageName: 'NETCore_Tooling_Release_Publishing'
channelName: '.NET Core Tooling Release'
channelId: 549
channelId: ${{ parameters.NETCoreToolingReleaseChannelId }}
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json'
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json'
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools-symbols/nuget/v3/index.json'
Expand All @@ -269,7 +303,7 @@ stages:
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
stageName: 'NET_Internal_Tooling_Publishing'
channelName: '.NET Internal Tooling'
channelId: 551
channelId: ${{ parameters.NETInternalToolingChannelId }}
transportFeed: 'https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet-tools-internal/nuget/v3/index.json'
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet-tools-internal/nuget/v3/index.json'
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet-tools-internal-symbols/nuget/v3/index.json'
Expand All @@ -282,7 +316,7 @@ stages:
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
stageName: 'NETCore_Experimental_Publishing'
channelName: '.NET Core Experimental'
channelId: 562
channelId: ${{ parameters.NETCoreExperimentalChannelId }}
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json'
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json'
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental-symbols/nuget/v3/index.json'
Expand All @@ -295,7 +329,7 @@ stages:
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
stageName: 'Net_Eng_Services_Int_Publish'
channelName: '.NET Eng Services - Int'
channelId: 678
channelId: ${{ parameters.NetEngServicesIntChannelId }}
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng-symbols/nuget/v3/index.json'
Expand All @@ -308,7 +342,7 @@ stages:
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
stageName: 'Net_Eng_Services_Prod_Publish'
channelName: '.NET Eng Services - Prod'
channelId: 679
channelId: ${{ parameters.NetEngServicesProdChannelId }}
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng-symbols/nuget/v3/index.json'
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"xcopy-msbuild": "16.4.0-alpha"
},
"msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "5.0.0-beta.20118.1"
"Microsoft.DotNet.Arcade.Sdk": "5.0.0-beta.20119.14"
}
}
2 changes: 1 addition & 1 deletion src/Analyzers/CSharp/Analyzers/CSharpAnalyzers.projitems
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<Import_RootNamespace>Microsoft.CodeAnalysis.CSharp.Analyzers</Import_RootNamespace>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="$(MSBuildThisFileDirectory)CSharpAnalyzersResources.resx" GenerateSource="true" />
<EmbeddedResource Include="$(MSBuildThisFileDirectory)CSharpAnalyzersResources.resx" GenerateSource="true" Link="CSharpAnalyzersResources.resx" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/Analyzers/CSharp/CodeFixes/CSharpCodeFixes.projitems
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<Import_RootNamespace>Microsoft.CodeAnalysis.CSharp.CodeFixes</Import_RootNamespace>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="$(MSBuildThisFileDirectory)CSharpCodeFixesResources.resx" GenerateSource="true" />
<EmbeddedResource Include="$(MSBuildThisFileDirectory)CSharpCodeFixesResources.resx" GenerateSource="true" Link="CSharpCodeFixesResources.resx" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/Analyzers/Core/Analyzers/Analyzers.projitems
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<Import_RootNamespace>Microsoft.CodeAnalysis.Analyzers</Import_RootNamespace>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="$(MSBuildThisFileDirectory)AnalyzersResources.resx" GenerateSource="true" />
<EmbeddedResource Include="$(MSBuildThisFileDirectory)AnalyzersResources.resx" GenerateSource="true" Link="AnalyzersResources.resx" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/Analyzers/Core/CodeFixes/CodeFixes.projitems
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<Import_RootNamespace>Microsoft.CodeAnalysis.CodeFixes</Import_RootNamespace>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="$(MSBuildThisFileDirectory)CodeFixesResources.resx" GenerateSource="true" />
<EmbeddedResource Include="$(MSBuildThisFileDirectory)CodeFixesResources.resx" GenerateSource="true" Link="CodeFixesResources.resx" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<Import_RootNamespace>Microsoft.CodeAnalysis.VisualBasic.Analyzers</Import_RootNamespace>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="$(MSBuildThisFileDirectory)VisualBasicAnalyzersResources.resx" GenerateSource="true" />
<EmbeddedResource Include="$(MSBuildThisFileDirectory)VisualBasicAnalyzersResources.resx" GenerateSource="true" Link="VisualBasicAnalyzersResources.resx" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<Import_RootNamespace>Microsoft.CodeAnalysis.VisualBasic.CodeFixes</Import_RootNamespace>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="$(MSBuildThisFileDirectory)VisualBasicCodeFixesResources.resx" GenerateSource="true" />
<EmbeddedResource Include="$(MSBuildThisFileDirectory)VisualBasicCodeFixesResources.resx" GenerateSource="true" Link="VisualBasicCodeFixesResources.resx" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,29 @@

namespace Microsoft.CodeAnalysis
{
internal static class AnalyzerConfigOptionsExtensions
internal static class OptionSetExtensions
{
public static T GetOption<T>(this OptionSet analyzerConfigOptions, Option<T> option)
public static T GetOption<T>(this OptionSet optionSet, Option<T> option)
{
if (!TryGetEditorConfigOption(analyzerConfigOptions, option, out T value))
if (!TryGetEditorConfigOption(optionSet, option, out T value))
{
value = option.DefaultValue;
}

return value;
}

public static T GetOption<T>(this OptionSet analyzerConfigOptions, PerLanguageOption<T> option, string language)
public static T GetOption<T>(this OptionSet optionSet, PerLanguageOption<T> option, string language)
{
if (!TryGetEditorConfigOption(analyzerConfigOptions, option, out T value))
if (!TryGetEditorConfigOption(optionSet, option, out T value))
{
value = option.DefaultValue;
}

return value;
}

private static bool TryGetEditorConfigOption<T>(this OptionSet analyzerConfigOptions, IOption option, out T value)
private static bool TryGetEditorConfigOption<T>(this OptionSet optionSet, IOption option, out T value)
{
foreach (var storageLocation in option.StorageLocations)
{
Expand All @@ -38,7 +38,7 @@ private static bool TryGetEditorConfigOption<T>(this OptionSet analyzerConfigOpt
continue;
}

if (!analyzerConfigOptions.TryGetValue(editorConfigStorageLocation.KeyName, out var stringValue))
if (!optionSet.TryGetValue(editorConfigStorageLocation.KeyName, out var stringValue))
{
continue;
}
Expand Down
4 changes: 3 additions & 1 deletion src/Compilers/CSharp/Portable/CSharpResources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -4612,12 +4612,14 @@ To remove the warning, you can use /reference instead (set the Embed Interop Typ
-instrument:TestCoverage Produce an assembly instrumented to collect
coverage information
-sourcelink:&lt;file&gt; Source link info to embed into PDB.

- ERRORS AND WARNINGS -
-warnaserror[+|-] Report all warnings as errors
-warnaserror[+|-]:&lt;warn list&gt; Report specific warnings as errors
(use "nullable" for all nullability warnings)
-warn:&lt;n&gt; Set warning level (0-4) (Short form: -w)
-nowarn:&lt;warn list&gt; Disable specific warning messages
(use "nullable" for all nullability warnings)
-ruleset:&lt;file&gt; Specify a ruleset file that disables specific
diagnostics.
-errorlog:&lt;file&gt;[,version=&lt;sarif_version&gt;]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1961,6 +1961,9 @@ private static IEnumerable<string> ParseWarnings(string value)
{
yield return errorCode;
}

yield return CSharp.MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_MissingNonNullTypesContextForAnnotation);
yield return CSharp.MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_MissingNonNullTypesContextForAnnotationInGeneratedCode);
}
else if (ushort.TryParse(id, NumberStyles.Integer, CultureInfo.InvariantCulture, out ushort number) &&
ErrorFacts.IsWarning((ErrorCode)number))
Expand Down
Loading