What problem does it solve?
This Skill provides a comprehensive workflow for enabling nullable reference types in C# projects, systematically resolving all associated warnings, and ensuring accurate nullability information for both the compiler and consumers.
Core Features & Use Cases
- Nullable Reference Type Enablement: Automates the process of enabling nullable reference types in C# projects, including setting the necessary compiler flags and analyzing project settings.
- Warning Resolution: Identifies and resolves nullable warnings (CS8602, CS8600, CS8603, CS8604), ensuring the project compiles without errors.
- Annotation and Attribute Application: Provides guidelines for annotating API surfaces and applying nullable attributes for advanced nullability scenarios.
- Suppression Auditing: Helps in auditing and removing unnecessary suppressions to maintain code quality and maintainability.
- Validation: Validates the migration outcome to ensure the project meets the required nullability standards without runtime issues.
Quick Start
Run the skill with the project path as input to enable nullable reference types and resolve all warnings: migrate-nullable-references /path/to/project.