Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
</PropertyGroup>
<ItemGroup>
<GlobalPackageReference Include="CSharpier.MSBuild" Version="1.3.0" />
<GlobalPackageReference Include="CSharpier.MSBuild" Version="1.4.0" />
<GlobalPackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="5.6.0" />
<GlobalPackageReference Include="Meziantou.Analyzer" Version="3.0.322" />
<GlobalPackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.403" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ ImmutableArray<string> validSuffixes
// RS1010: the missing equivalence key is intentional here — see the comment above.
#pragma warning disable RS1010
context.RegisterCodeFix(
CodeAction.Create(
$"Use the '{suffix}' suffix",
cancellationToken => AddSuffixAsync(context.Document, literal, suffix, cancellationToken)
CodeAction.Create($"Use the '{suffix}' suffix", cancellationToken =>
AddSuffixAsync(context.Document, literal, suffix, cancellationToken)
),
diagnostic
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ internal static IEnumerable<Location> FirstParamElement(SyntaxNode root) =>
.Take(1)
.Select(element => element.GetLocation());

private readonly Func<SyntaxNode, IEnumerable<Location>> _selectLocations =
selectLocations ?? AllCOrCodeElements;
private readonly Func<SyntaxNode, IEnumerable<Location>> _selectLocations = selectLocations
?? AllCOrCodeElements;

public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
ImmutableArray.Create(Descriptor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ private static ImmutableArray<MetadataReference> Resolve()
{
// .NET Framework (net472/net48/net481) doesn't populate TRUSTED_PLATFORM_ASSEMBLIES; fall back to
// the assemblies already loaded into this AppDomain, which cover the BCL surface test sources need.
var trustedAssemblies =
(string?)AppContext.GetData("TRUSTED_PLATFORM_ASSEMBLIES")
var trustedAssemblies = (string?)AppContext.GetData("TRUSTED_PLATFORM_ASSEMBLIES")
?? string.Join(
Path.PathSeparator.ToString(),
AppDomain
Expand Down
3 changes: 1 addition & 2 deletions test/NetEvolve.Analyzer.Tests.Unit/FrameworkReferences.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ private static ImmutableArray<MetadataReference> Resolve()
{
// .NET Framework (net472/net48/net481) doesn't populate TRUSTED_PLATFORM_ASSEMBLIES; fall back to
// the assemblies already loaded into this AppDomain, which cover the BCL surface test sources need.
var trustedAssemblies =
(string?)AppContext.GetData("TRUSTED_PLATFORM_ASSEMBLIES")
var trustedAssemblies = (string?)AppContext.GetData("TRUSTED_PLATFORM_ASSEMBLIES")
?? string.Join(
Path.PathSeparator.ToString(),
AppDomain
Expand Down
Loading