Skip to content

Commit 1b30145

Browse files
Bump Akka.Analyzers from 0.2.1 to 0.2.2 (#7073)
Co-authored-by: Aaron Stannard <[email protected]>
1 parent bdc46f2 commit 1b30145

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<MultiNodeAdapterVersion>1.5.13</MultiNodeAdapterVersion>
4040
<MicrosoftLibVersion>[6.0.*,)</MicrosoftLibVersion>
4141
<MsExtVersion>[6.0.*,)</MsExtVersion>
42-
<AkkaAnalyzerVersion>0.2.1</AkkaAnalyzerVersion>
42+
<AkkaAnalyzerVersion>0.2.2</AkkaAnalyzerVersion>
4343
<AkkaPackageTags>akka;actors;actor model;Akka;concurrency</AkkaPackageTags>
4444
</PropertyGroup>
4545
<PropertyGroup>

src/benchmark/PingPong/ClientAsyncActor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using Akka.Actor;
1111

1212
#pragma warning disable 1998 //async method lacks an await
13+
#pragma warning disable AK1003 // ReceiveAsync lacks an await
1314

1415
namespace PingPong
1516
{

src/core/Akka.Tests/Actor/ReceiveTimeoutSpec.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ public AsyncTimeoutActor(TestLatch timeoutLatch, TimeSpan? timeout)
7777

7878
Context.SetReceiveTimeout(timeout.GetValueOrDefault());
7979

80+
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously
81+
#pragma warning disable AK1003
8082
ReceiveAsync<ReceiveTimeout>(async _ =>
8183
{
8284
log.Info($"Received {nameof(ReceiveTimeout)}");
@@ -92,6 +94,8 @@ public AsyncTimeoutActor(TestLatch timeoutLatch, TimeSpan? timeout)
9294
{
9395
log.Info($"Received {nameof(Tick)}");
9496
});
97+
#pragma warning restore AK1003
98+
#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
9599
}
96100

97101
}

src/core/Akka.Tests/Actor/SupervisorHierarchySpec.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,12 @@ private class ResumerAsync : TestReceiveActor
7474
public ResumerAsync()
7575
{
7676
#pragma warning disable CS1998
77+
#pragma warning disable AK1003
7778
ReceiveAsync<string>(s => s.StartsWith("spawn:"), async s => Sender.Tell(Context.ActorOf<ResumerAsync>(s.Substring(6))));
7879
ReceiveAsync<string>(s => s.Equals("spawn"), async _ => Sender.Tell(Context.ActorOf<ResumerAsync>()));
7980
ReceiveAsync<string>(s => s.Equals("fail"), async _ => { throw new Exception("expected"); });
8081
ReceiveAsync<string>(s => s.Equals("ping"), async _ => Sender.Tell("pong"));
82+
#pragma warning restore AK1003
8183
#pragma warning restore CS1998
8284
}
8385

src/core/Akka.Tests/Dispatch/AsyncAwaitSpec.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,11 +429,13 @@ public class AsyncFailingActor : ReceiveActor
429429
public AsyncFailingActor()
430430
{
431431
#pragma warning disable CS1998
432+
#pragma warning disable AK1003
432433
ReceiveAsync<string>(async _ =>
433-
#pragma warning restore CS1998
434434
{
435435
ThrowException();
436436
});
437+
#pragma warning restore AK1003
438+
#pragma warning restore CS1998
437439
}
438440

439441
protected override void PreRestart(Exception reason, object message)

0 commit comments

Comments
 (0)