Skip to content

Public API fixers should automatically generate #nullable enable where applicable #3962

Open

Description

Analyzer

Diagnostic ID: RS0016

Describe the improvement

Currently the RS0016 fixer creates new PublicApi.*.txt files without #nullable enable. This rather frequently leads to RS0037 warnings i.e. the RS0016 is not generating useful / valid API baseline files.

Describe suggestions on how to achieve the rule

Either the analyzer should always reflect whatever nullability attributes appear in the assembly or the fixer should detect the presence of some of these attributes and include #nullable enable when creating API baselines.

Additional context

See also #3957.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Relationships

None yet

Development

No branches or pull requests

Issue actions