Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User type symbol equality everywhere #82

Merged

Conversation

Arkatufus
Copy link
Contributor

Changes

  • Remove as many magic string as possible by referencing the actual class/methods/properties from the actual compilation instance.
  • Use type equality to make sure that each class/methods/properties actually came from the reference Akka assemblies.

# Conflicts:
#	src/Akka.Analyzers/AK1000/MustNotAwaitGracefulStopInsideReceiveAsyncAnalyzer.cs
#	src/Akka.Analyzers/AK1000/MustNotUseNewKeywordOnActorsAnalyzer.cs
#	src/Akka.Analyzers/Context/Core/Actor/AkkaCoreActorContext.cs
#	src/Akka.Analyzers/Context/Core/Actor/IAkkaCoreActorContext.cs
#	src/Akka.Analyzers/Utility/CodeAnalysisExtensions.cs
Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just 1 question but otherwise looks good

@@ -12,5 +12,8 @@

<ItemGroup>
<Compile Include="..\Akka.Analyzers\**\*.cs" Exclude="..\Akka.Analyzers\obj\**\*.cs" />
<Compile Update="..\Akka.Analyzers\Context\Core\Actor\ActorContextContext.cs">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this necessary @Arkatufus ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a strange refactor artifact by Rider, let me remove that

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) March 7, 2024 22:21
@Aaronontheweb Aaronontheweb merged commit 364172b into akkadotnet:dev Mar 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants