Skip to content

Commit 366d5bb

Browse files
committed
Use <TargetFramework>netcoreapp3.1</TargetFramework> in ValidCode.csproj
1 parent 7f61b89 commit 366d5bb

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

IDisposableAnalyzers/Helpers/Walkers/AssignedValueWalker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public override void VisitInvocationExpression(InvocationExpressionSyntax node)
115115
if (this.context.Node is ElementAccessExpressionSyntax &&
116116
method.Name == "Add" &&
117117
MemberPath.TrySingle(node, out var memberIdentifier) &&
118-
memberIdentifier.Parent is IdentifierNameSyntax { } member &&
118+
memberIdentifier.Parent is IdentifierNameSyntax member &&
119119
this.semanticModel.TryGetSymbol(member, this.cancellationToken, out var memberSymbol) &&
120120
memberSymbol.Equals(this.CurrentSymbol))
121121
{

ValidCode/.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.cs]
2+
dotnet_diagnostic.IDE0009.severity = none
3+
dotnet_diagnostic.IDE0051.severity = none
4+
dotnet_diagnostic.IDE0052.severity = none
5+
dotnet_diagnostic.IDE1006.severity = none

ValidCode/ValidCode.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<TargetFramework>net472</TargetFramework>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<CodeAnalysisRuleSet>ValidCode.ruleset</CodeAnalysisRuleSet>
7-
<Description>A project only used by the HasppyPathTests. It contains all kinds of weird variations that is still valid code. We use it to test all analyzers. If a bug is found we extract it to a minimal repro and use it in a test for the analyzer but we leave this project as is.</Description>
8-
<NoWarn>$(NoWarn);IDE0051;IDE0052</NoWarn>
7+
<Description>A project only used by the HappyPathTests. It contains all kinds of weird variations that is still valid code. We use it to test all analyzers. If a bug is found we extract it to a minimal repro and use it in a test for the analyzer but we leave this project as is.</Description>
98
</PropertyGroup>
109

1110
<ItemGroup>

0 commit comments

Comments
 (0)