Skip to content

Commit ced29d3

Browse files
committed
Replaced reduced with inferred for better clarity
1 parent 5aae181 commit ced29d3

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

doc/analyzers/PH_S034.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PH_S034 - Async Lambda Reduced to Async Void
1+
# PH_S034 - Async Lambda Inferred to Async Void
22

33
## Problem
44

src/ParallelHelper.Plugin/ReleaseNotes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
v3.6.0
22

3-
- New Analyzer: PH_S034 - Async Lambda Reduced to Async Void
3+
- New Analyzer: PH_S034 - Async Lambda Inferred to Async Void
44

55

66
------------------

src/ParallelHelper.Test/Analyzer/Smells/AsyncLambdaReducedToAsyncVoidAnalyzerTest.cs renamed to src/ParallelHelper.Test/Analyzer/Smells/AsyncLambdaInferredToAsyncVoidAnalyzerTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace ParallelHelper.Test.Analyzer.Smells {
55
[TestClass]
6-
public class AsyncLambdaReducedToAsyncVoidAnalyzerTest : AnalyzerTestBase<AsyncLambdaReducedToAsyncVoidAnalyzer> {
6+
public class AsyncLambdaInferredToAsyncVoidAnalyzerTest : AnalyzerTestBase<AsyncLambdaInferredToAsyncVoidAnalyzer> {
77
[TestMethod]
88
public void ReportsAsyncParenthesizedLambdaPassedToMethodAcceptingAction() {
99
const string source = @"

src/ParallelHelper/Analyzer/Smells/AsyncLambdaReducedToAsyncVoidAnalyzer.cs renamed to src/ParallelHelper/Analyzer/Smells/AsyncLambdaInferredToAsyncVoidAnalyzer.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
namespace ParallelHelper.Analyzer.Smells {
99
/// <summary>
10-
/// Analyzer that analyzes sources for async lambda expressions that are reduced to async void.
10+
/// Analyzer that analyzes sources for async lambda expressions that are inferred to async void.
1111
///
12-
/// <example>Illustrates a class that defines an async lambda expression which is reduced to async void.
12+
/// <example>Illustrates a class that defines an async lambda expression which is inferred to async void.
1313
/// <code>
1414
/// interface IWorkQueue {
1515
/// // Method only accepts synchronous callbacks
@@ -33,13 +33,13 @@ namespace ParallelHelper.Analyzer.Smells {
3333
/// </example>
3434
/// </summary>
3535
[DiagnosticAnalyzer(LanguageNames.CSharp)]
36-
public class AsyncLambdaReducedToAsyncVoidAnalyzer : DiagnosticAnalyzer {
36+
public class AsyncLambdaInferredToAsyncVoidAnalyzer : DiagnosticAnalyzer {
3737
public const string DiagnosticId = "PH_S034";
3838

3939
private const string Category = "Concurrency";
4040

41-
private static readonly LocalizableString Title = "Async Lambda Reduced to Async Void";
42-
private static readonly LocalizableString MessageFormat = "The async lambda expression is reduced to async void; thus, it cannot be awaited and uncaught exceptions may crash the application.";
41+
private static readonly LocalizableString Title = "Async Lambda Inferred to Async Void";
42+
private static readonly LocalizableString MessageFormat = "The async lambda expression is inferred to async void; thus, it cannot be awaited and uncaught exceptions may crash the application.";
4343
private static readonly LocalizableString Description = "";
4444

4545
private static readonly DiagnosticDescriptor Rule = new DiagnosticDescriptor(

src/ParallelHelper/ParallelHelper.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<RepositoryUrl>https://github.com/Concurrency-Lab/ParallelHelper</RepositoryUrl>
1818
<RepositoryType>git</RepositoryType>
1919
<Description>ParallelHelper is a static code analyzer that helps to identify concurrency related issues. Moreover, it provides hints to improve the robustness of code with concurrency in mind.</Description>
20-
<PackageReleaseNotes>- New Analyzer: PH_S034 - Async Lambda Reduced to Async Void</PackageReleaseNotes>
20+
<PackageReleaseNotes>- New Analyzer: PH_S034 - Async Lambda Inferred to Async Void</PackageReleaseNotes>
2121
<Copyright>Copyright (C) 2019 - 2021 Christoph Amrein, Concurrency Lab, Eastern Switzerland University of Applied Sciences, Switzerland</Copyright>
2222
<PackageTags>C#, Parallel, Asynchronous, Concurrency, Bugs, Best Practices, TPL, Task, QC, Static Analysis, async, await</PackageTags>
2323
<NoPackageAnalysis>true</NoPackageAnalysis>

0 commit comments

Comments
 (0)