Skip to content

Add Rosylyn analyzer for irrelevant APIs#717

Merged
jpalac merged 25 commits intomasterfrom
api-usage-analyzer-spike
Sep 15, 2023
Merged

Add Rosylyn analyzer for irrelevant APIs#717
jpalac merged 25 commits intomasterfrom
api-usage-analyzer-spike

Conversation

@jpalac
Copy link
Copy Markdown
Contributor

@jpalac jpalac commented Sep 8, 2023

Copy link
Copy Markdown
Contributor

@timbussmann timbussmann left a comment

Choose a reason for hiding this comment

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

Looks solid to me. I added a few thoughts about the diagnostic messages (sorry for not making better suggestions right away).

Comment thread src/NServiceBus.AzureFunctions.Analyzer/AzureFunctionsDiagnostics.cs Outdated
Comment thread src/NServiceBus.AzureFunctions.Analyzer/AzureFunctionsDiagnostics.cs Outdated
Comment thread src/NServiceBus.AzureFunctions.Analyzer/AzureFunctionsDiagnostics.cs Outdated
internal static readonly DiagnosticDescriptor MaxAutoLockRenewalDurationNotAllowed = new DiagnosticDescriptor(
id: MaxAutoLockRenewalDurationNotAllowedId,
title: "MaxAutoLockRenewalDuration is not supported in Azure Functions",
messageFormat: "Azure Functions endpoints do not control the message receiver and cannot decide the lock renewal duration.",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment thread src/NServiceBus.AzureFunctions.Analyzer/AzureFunctionsDiagnostics.cs Outdated
Comment thread src/NServiceBus.AzureFunctions.Analyzer/AzureFunctionsDiagnostics.cs Outdated
Comment thread src/NServiceBus.AzureFunctions.Analyzer/AzureFunctionsDiagnostics.cs Outdated
Comment thread src/NServiceBus.AzureFunctions.Analyzer/AzureFunctionsDiagnostics.cs Outdated
@jpalac
Copy link
Copy Markdown
Contributor Author

jpalac commented Sep 13, 2023

Thank you @timbussmann and @danielmarbach for taking the time to look over this PR.

@jpalac jpalac merged commit 3df1093 into master Sep 15, 2023
@jpalac jpalac deleted the api-usage-analyzer-spike branch September 15, 2023 04:41
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.

Prevent the use of NSB configuration APIs that aren't applicable to serverless environments

5 participants