Azure / Azure/azure-sdk-tools

Immutable classes should hide default ctor analyzer

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

Description

public class ConflictProperties {
public ConflictProperties();
public string Id { get; }
public OperationKind OperationKind { get; }
}

These are immutable yet have a public default ctor.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by locating the analyzer that handles immutable classes and reproduce the issue with the ConflictProperties declaration; done means the analyzer correctly handles its public default constructor.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.