Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 2.59 KB

Microsoft.CodeAnalysis.PublicApiAnalyzers.md

File metadata and controls

10 lines (9 loc) · 2.59 KB
Sr. No. Rule ID Title Category Enabled CodeFix Description
1 RS0016 Add public types and members to the declared API ApiDesign True True All public types and members should be declared in PublicAPI.txt. This draws attention to API changes in the code reviews and source control history, and helps prevent breaking changes.
2 RS0017 Remove deleted types and members from the declared API ApiDesign True False When removing a public type or member the corresponding entry in PublicAPI.txt should also be removed. This draws attention to API changes in the code reviews and source control history, and helps prevent breaking changes.
3 RS0022 Constructor make noninheritable base class inheritable ApiDesign True False Constructor makes its noninheritable base class inheritable, thereby exposing its protected members.
4 RS0024 The contents of the public API files are invalid ApiDesign True False The contents of the public API files are invalid: {0}
5 RS0025 Do not duplicate symbols in public API files ApiDesign True False The symbol '{0}' appears more than once in the public API files.
6 RS0026 Do not add multiple public overloads with optional parameters ApiDesign True False Symbol '{0}' violates the backcompat requirement: 'Do not add multiple overloads with optional parameters'. See '{1}' for details.
7 RS0027 Public API with optional parameter(s) should have the most parameters amongst its public overloads. ApiDesign True False Symbol '{0}' violates the backcompat requirement: 'Public API with optional parameter(s) should have the most parameters amongst its public overloads'. See '{1}' for details.