Skip to content

Commit 2e5dd58

Browse files
committed
Address PR comments
1 parent af26aa6 commit 2e5dd58

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

src/Analyzers/Analyzers.csproj

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,22 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5+
<IncludeShared>false</IncludeShared>
56
<IsRoslynComponent>true</IsRoslynComponent>
67
<EnableStyleCop>true</EnableStyleCop>
7-
8-
<!-- Do not include the generator as a lib dependency -->
9-
<IncludeBuildOutput>false</IncludeBuildOutput>
10-
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
11-
<IncludeShared>false</IncludeShared>
12-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
13-
<!-- Do not publish it until it is ready to release -->
14-
<IsPackable>false</IsPackable>
15-
</PropertyGroup>
16-
17-
<PropertyGroup>
188
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
19-
</PropertyGroup>
20-
21-
<PropertyGroup>
22-
<PackageDescription>.NET Analyzers for the Durable Task Framework.</PackageDescription>
9+
<GenerateDocumentationFile>false</GenerateDocumentationFile>
10+
<NoWarn>$(NoWarn);SA0001;</NoWarn>
2311
</PropertyGroup>
2412

2513
<PropertyGroup>
2614
<VersionPrefix>0.0.1</VersionPrefix>
2715
<VersionSuffix>preview.1</VersionSuffix>
16+
<PackageDescription>.NET Analyzers for the Durable Task Framework.</PackageDescription>
2817
<NeutralLanguage>en</NeutralLanguage>
18+
<IncludeBuildOutput>false</IncludeBuildOutput> <!-- Do not include the analyzer as a lib dependency -->
19+
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
20+
<IsPackable>false</IsPackable> <!-- Do not publish it until it is ready to release -->
2921
</PropertyGroup>
3022

3123
<ItemGroup>

test/Analyzers.Tests/Orchestration/DateTimeOrchestrationAnalyzerTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,9 @@ static DateTime MyRunAsync(TaskOrchestrationContext context)
369369

370370
await VerifyCS.VerifyDurableTaskCodeFixAsync(code, expected, fix, test =>
371371
{
372-
// TODO: CodeFixBehaviors.SkipLocalDiagnosticCheck is failing this test. This is apparently a bad analyzer practice.
372+
// By default, the analyzer will fail the test if the analyzer is 'non-local'. We set this behavior to skip
373+
// that check to allow this analyzer to pass, but we should follow up on this as it is a bad practice.
374+
// TODO: Investigate and address non-local analyzer behavior.
373375
test.CodeFixTestBehaviors |= CodeFixTestBehaviors.SkipLocalDiagnosticCheck;
374376
});
375377
}

0 commit comments

Comments
 (0)