Skip to content

Commit

Permalink
Fix formatting/whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Jun 29, 2024
1 parent 9f918ec commit 7febebc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/SponsorLink/Analyzer/StatusReportingAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ namespace Analyzer;
public class StatusReportingAnalyzer : DiagnosticAnalyzer
{
public override ImmutableArray<DiagnosticDescriptor> 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 =>
Expand Down
2 changes: 1 addition & 1 deletion src/SponsorLink/Tests/Sample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
Expand Down
2 changes: 1 addition & 1 deletion src/SponsorLink/Tests/SponsorableManifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7febebc

Please sign in to comment.