From b7c20e4df5e4cdb0bd8c76762a2e1f184fcabbe0 Mon Sep 17 00:00:00 2001 From: Joey Robichaud Date: Sun, 7 Jun 2020 17:42:08 -0700 Subject: [PATCH] Fix style error --- src/Analyzers/AnalyzerFinderHelpers.cs | 2 +- src/Analyzers/AnalyzerReferenceAnalyzerFinder.cs | 2 +- src/Analyzers/Extensions.cs | 2 +- validate.rsp | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Analyzers/AnalyzerFinderHelpers.cs b/src/Analyzers/AnalyzerFinderHelpers.cs index 2bd8b1d3e1..21ab8eaa09 100644 --- a/src/Analyzers/AnalyzerFinderHelpers.cs +++ b/src/Analyzers/AnalyzerFinderHelpers.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. +// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. using System.Collections.Generic; using System.Collections.Immutable; diff --git a/src/Analyzers/AnalyzerReferenceAnalyzerFinder.cs b/src/Analyzers/AnalyzerReferenceAnalyzerFinder.cs index 74edc62eb5..7e4e053f0a 100644 --- a/src/Analyzers/AnalyzerReferenceAnalyzerFinder.cs +++ b/src/Analyzers/AnalyzerReferenceAnalyzerFinder.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. +// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. using System.Collections.Generic; using System.Collections.Immutable; diff --git a/src/Analyzers/Extensions.cs b/src/Analyzers/Extensions.cs index d56e7b5c6e..c35e2172c7 100644 --- a/src/Analyzers/Extensions.cs +++ b/src/Analyzers/Extensions.cs @@ -170,7 +170,7 @@ static DiagnosticSeverity ToSeverity(ReportDiagnostic reportDiagnostic) var codeStyleOptions = (IEnumerable)parameters[2]!; foreach (var codeStyleOptionObj in codeStyleOptions) { - IOption codeStyleOption = (IOption)codeStyleOptionObj; + var codeStyleOption = (IOption)codeStyleOptionObj; var option = options.GetOption(new OptionKey(codeStyleOption, codeStyleOption.IsPerLanguage ? compilation.Language : null)); if (option is null) { diff --git a/validate.rsp b/validate.rsp index a73c2fd40b..cd0bd8bffa 100644 --- a/validate.rsp +++ b/validate.rsp @@ -1,5 +1,6 @@ ./format.sln --fix-style +--fix-analyzers --exclude ./tests/projects/ --check