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

Rule S6424: Azure Functions - Entity interfaces restrictions #5600

Closed
andrei-epure-sonarsource opened this issue Apr 25, 2022 · 0 comments · Fixed by #5681
Closed

Rule S6424: Azure Functions - Entity interfaces restrictions #5600

andrei-epure-sonarsource opened this issue Apr 25, 2022 · 0 comments · Fixed by #5681
Assignees
Labels
Area: C# C# rules related issues.
Milestone

Comments

@andrei-epure-sonarsource
Copy link
Contributor

andrei-epure-sonarsource commented Apr 25, 2022

MMF: https://jira.sonarsource.com/browse/MMF-2699
RSPEC PR to be merged after implementing this ticket: SonarSource/rspec#964

Possibility A

  • During compilation capture info about
    • all interfaces that do not respect the restrictions.
    • all interfaces that are passed to SignalEntity<IInterfaceType>, SignalEntityAsync<IInterfaceType>, or CreateEntityProxy throughout the program (which are entity interfaces).
  • At the compilation end, raise on the entity interfaces that do not respect the restrictions.

Posibility B

  • During the compilation, capture info about all interfaces that are passed to SignalEntity<IInterfaceType>, SignalEntityAsync<IInterfaceType>, or CreateEntityProxy throughout the program (which are entity interfaces).
  • At compilation end, verify using the symbol if the declaration respects the restrictions and raise an issue on the interface declarations that are non compliant.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: C# C# rules related issues.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants