Azure / Azure/azure-sdk-tools

C# Analyzers: Prevent mutation of customer provided ClientOptions objects

Open
#2,603 0 comments 1 reaction 0 assignees View on GitHub
Client
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

ClientOptions instances can be reused across multiple clients so we should never mutate them.

Should catch things like:
![image](https://user-images.githubusercontent.com/1697911/150888127-d853db58-7bb4-43f4-a3bf-e6d9a734ce79.png)

cc @AlexanderSher @JoshLove-msft @christothes @annelo-msft

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or analyzer entry points and includes only an example image. Start by locating the C# analyzer project and its existing mutation-detection tests; the work is done when customer-provided ClientOptions mutations are reliably reported without false positives.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.