Skip to content

Commit 32ffb68

Browse files
Merge pull request #79 from atc-net/feature/maintenance
Feature/maintenance
2 parents 654c6ab + b9407f0 commit 32ffb68

File tree

43 files changed

+5709
-2059
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+5709
-2059
lines changed

.editorconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,4 +513,6 @@ dotnet_diagnostic.CA2254.severity = none # For improved performance,
513513
dotnet_diagnostic.MA0004.severity = none # Use Task.ConfigureAwait(false) as the current SynchronizationContext is not needed
514514
dotnet_diagnostic.MA0016.severity = none # Prefer return collection abstraction instead of implementation
515515
dotnet_diagnostic.MA0075.severity = none # Do not use implicit culture-sensitive ToString
516-
dotnet_diagnostic.MA0076.severity = none # Do not use implicit culture-sensitive ToString in interpolated strings
516+
dotnet_diagnostic.MA0076.severity = none # Do not use implicit culture-sensitive ToString in interpolated strings
517+
518+
dotnet_diagnostic.S1172.severity = none # False positive

AnalyzerProviderBaseRules/AsyncFixer.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,36 @@
55
"Code": "AsyncFixer01",
66
"Title": "Unnecessary async/await usage",
77
"Link": "https://github.com/semihokur/AsyncFixer/blob/main/README.md#user-content-asyncfixer01unnecessary-asyncawait-usage",
8-
"Description": "There are some async methods where there is no need to use async/await keywords. It is important to detect this kind of misuse because adding the async modifier comes at a price. AsyncFixer automatically removes async/await keywords from those methods."
8+
"Description": "There are some async methods where there is no need to use async/await keywords. It is important to detect this kind of misuse because adding the async modifier comes at a price. AsyncFixer automatically removes async/await keywords from those methods.",
9+
"TitleAndLink": " - Unnecessary async/await usage - https://github.com/semihokur/AsyncFixer/blob/main/README.md#user-content-asyncfixer01unnecessary-asyncawait-usage"
910
},
1011
{
1112
"Code": "AsyncFixer02",
1213
"Title": "Long-running or blocking operations inside an async method",
1314
"Link": "https://github.com/semihokur/AsyncFixer/blob/main/README.md#user-content-asyncfixer02long-running-or-blocking-operations-inside-an-async-method",
14-
"Description": "Developers use some potentially long-running or blocking operations inside async methods even though there are corresponding asynchronous versions of these methods in .NET or third-party libraries. Some examples for such operations: Task.Wait(), Task.Result, StreamReader.ReadToEnd(), Thread.Sleep(), etc."
15+
"Description": "Developers use some potentially long-running or blocking operations inside async methods even though there are corresponding asynchronous versions of these methods in .NET or third-party libraries. Some examples for such operations: Task.Wait(), Task.Result, StreamReader.ReadToEnd(), Thread.Sleep(), etc.",
16+
"TitleAndLink": " - Long-running or blocking operations inside an async method - https://github.com/semihokur/AsyncFixer/blob/main/README.md#user-content-asyncfixer02long-running-or-blocking-operations-inside-an-async-method"
1517
},
1618
{
1719
"Code": "AsyncFixer03",
1820
"Title": "Fire-and-forget async-void methods and delegates",
1921
"Link": "https://github.com/semihokur/AsyncFixer/blob/main/README.md#user-content-asyncfixer03fire-and-forget-async-void-methods-and-delegates",
20-
"Description": "Some async methods and delegates are fire-and-forget, which return void. Unless a method is only called as an event handler, it must be awaitable. Otherwise, it is a code smell because it complicates control flow and makes error detection/correction difficult. Unhandled exceptions in those async-void methods and delegates will crash the process as well."
22+
"Description": "Some async methods and delegates are fire-and-forget, which return void. Unless a method is only called as an event handler, it must be awaitable. Otherwise, it is a code smell because it complicates control flow and makes error detection/correction difficult. Unhandled exceptions in those async-void methods and delegates will crash the process as well.",
23+
"TitleAndLink": " - Fire-and-forget async-void methods and delegates - https://github.com/semihokur/AsyncFixer/blob/main/README.md#user-content-asyncfixer03fire-and-forget-async-void-methods-and-delegates"
2124
},
2225
{
2326
"Code": "AsyncFixer04",
2427
"Title": "Fire-and-forget async call inside an using block",
2528
"Link": "https://github.com/semihokur/AsyncFixer/blob/main/README.md#user-content-asyncfixer04fire-and-forget-async-call-inside-an-using-block",
26-
"Description": "Inside a using block, developers insert a fire-and-forget async call which uses a disposable object as a parameter or target object. It can cause potential exceptions or wrong results."
29+
"Description": "Inside a using block, developers insert a fire-and-forget async call which uses a disposable object as a parameter or target object. It can cause potential exceptions or wrong results.",
30+
"TitleAndLink": " - Fire-and-forget async call inside an using block - https://github.com/semihokur/AsyncFixer/blob/main/README.md#user-content-asyncfixer04fire-and-forget-async-call-inside-an-using-block"
2731
},
2832
{
2933
"Code": "AsyncFixer05",
3034
"Title": "Downcasting from a nested task to an outer task.",
3135
"Link": "https://github.com/semihokur/AsyncFixer/blob/main/README.md#user-content-asyncfixer05downcasting-from-a-nested-task-to-an-outer-task",
32-
"Description": "Downcasting from a nested task to a task or awaiting a nested task is dangerous. There is no way to wait for and get the result of the child task. This usually occurs when mixing async/await keywords with the old threading APIs such as TaskFactory.StartNew."
36+
"Description": "Downcasting from a nested task to a task or awaiting a nested task is dangerous. There is no way to wait for and get the result of the child task. This usually occurs when mixing async/await keywords with the old threading APIs such as TaskFactory.StartNew.",
37+
"TitleAndLink": " - Downcasting from a nested task to an outer task. - https://github.com/semihokur/AsyncFixer/blob/main/README.md#user-content-asyncfixer05downcasting-from-a-nested-task-to-an-outer-task"
3338
}
3439
]
3540
}

AnalyzerProviderBaseRules/Asyncify.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
"Code": "AsyncifyInvocation",
66
"Title": "Invocation",
77
"Link": "https://github.com/hvanbakel/Asyncify-CSharp",
8-
"Description": "This invocation could benefit from the use of Task async."
8+
"Description": "This invocation could benefit from the use of Task async.",
9+
"TitleAndLink": " - Invocation - https://github.com/hvanbakel/Asyncify-CSharp"
910
},
1011
{
1112
"Code": "AsyncifyVariableAccess",
1213
"Title": "Variable access",
1314
"Link": "https://github.com/hvanbakel/Asyncify-CSharp",
14-
"Description": "This variable access could benefit from the use of Task async."
15+
"Description": "This variable access could benefit from the use of Task async.",
16+
"TitleAndLink": " - Variable access - https://github.com/hvanbakel/Asyncify-CSharp"
1517
}
1618
]
1719
}

0 commit comments

Comments
 (0)