From 7febebc3ad82adcd6de9a0f151a36473d458d61b Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Sat, 29 Jun 2024 00:26:45 -0300 Subject: [PATCH] Fix formatting/whitespace --- src/SponsorLink/Analyzer/StatusReportingAnalyzer.cs | 4 ++-- src/SponsorLink/Tests/Sample.cs | 2 +- src/SponsorLink/Tests/SponsorableManifest.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SponsorLink/Analyzer/StatusReportingAnalyzer.cs b/src/SponsorLink/Analyzer/StatusReportingAnalyzer.cs index 2c4a253..9f02466 100644 --- a/src/SponsorLink/Analyzer/StatusReportingAnalyzer.cs +++ b/src/SponsorLink/Analyzer/StatusReportingAnalyzer.cs @@ -14,14 +14,14 @@ namespace Analyzer; public class StatusReportingAnalyzer : DiagnosticAnalyzer { public override ImmutableArray SupportedDiagnostics => ImmutableArray.Create(new DiagnosticDescriptor( - "SL001", "Report Sponsoring Status", "Reports sponsoring status determined by SponsorLink", "Sponsors", + "SL001", "Report Sponsoring Status", "Reports sponsoring status determined by SponsorLink", "Sponsors", DiagnosticSeverity.Warning, true)); public override void Initialize(AnalysisContext context) { context.EnableConcurrentExecution(); context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None); - + context.RegisterCompilationAction(c => { var installed = c.Options.AdditionalFiles.Where(x => diff --git a/src/SponsorLink/Tests/Sample.cs b/src/SponsorLink/Tests/Sample.cs index 897c91c..6249e62 100644 --- a/src/SponsorLink/Tests/Sample.cs +++ b/src/SponsorLink/Tests/Sample.cs @@ -40,7 +40,7 @@ public void Test(string culture, SponsorStatus kind) public void RenderSponsorables() { Assert.NotEmpty(SponsorLink.Sponsorables); - + foreach (var pair in SponsorLink.Sponsorables) { output.WriteLine($"{pair.Key} = {pair.Value}"); diff --git a/src/SponsorLink/Tests/SponsorableManifest.cs b/src/SponsorLink/Tests/SponsorableManifest.cs index 89af242..d65d0fb 100644 --- a/src/SponsorLink/Tests/SponsorableManifest.cs +++ b/src/SponsorLink/Tests/SponsorableManifest.cs @@ -285,7 +285,7 @@ public ClaimsIdentity Validate(string jwt, out SecurityToken? token) MapInboundClaims = false, SetDefaultTimesOnTokenCreation = false, }.ValidateTokenAsync(jwt, validation).Result; - + token = result.SecurityToken; return result.ClaimsIdentity; }