Azure / Azure/azure-sdk-tools

Handle events that are part of client API surface

Open
#1,310 0 comments 0 reactions 0 assignees View on GitHub
API Analyzer
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

Currently, events make a bunch of our analyzers to fire:

```
#pragma warning disable AZC0002 // DO ensure all service methods, both asynchronous and synchronous, take an optional CancellationToken parameter called cancellationToken.
#pragma warning disable AZC0003 // DO make service methods virtual.
#pragma warning disable AZC0004 // DO provide both asynchronous and synchronous variants for all service methods.
#pragma warning disable AZC0015 // Unexpected client method return type.
```

Contributor guide

Open the contributing guide

Research direction

Start by locating the analyzers that emit AZC0002, AZC0003, AZC0004, and AZC0015, then inspect how event members are classified as part of the client API surface. Done means events no longer cause inappropriate service-method warnings while the relevant analyzer behavior remains covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.