Azure / Azure/azure-functions-dotnet-worker

[Source Gen] Analyzer to enforce relationship between Binding constructor parameter names and property names

Open
#1,185 0 comments 0 reactions 0 assignees View on GitHub
enhancement feature: source-metadata-generator team-issue
Dominant language
C#
Stars
466
Forks
215
Avg merge
3d 10h
Merged PRs (30d)
7

Description

Related to #1113 and #1087, discussed in a previous design meeting.

While all current bindings follow the convention where constructor parameter names match property names ([EventHubs example](https://github.com/Azure/azure-functions-dotnet-worker/blob/main/extensions/Worker.Extensions.EventHubs/src/EventHubOutputAttribute.cs)), since source-generation relies on this convention explicitly now, we want to make sure future changes continue to adhere to this rule.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the EventHubOutputAttribute.cs example and the discussions in issues #1113 and #1087. Locate the source-generation analyzer entry point, then verify that its completed diagnostics enforce matching binding constructor parameter and property names.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.