dotnet-sdk-contrib icon indicating copy to clipboard operation
dotnet-sdk-contrib copied to clipboard

Enable nullables and enforce warnings as error

Open askpt opened this issue 7 months ago • 3 comments

Description

Enable nullable reference types across the project to improve code safety, ensuring potential null-related issues are caught at compile time. Additionally, enforce strict compilation standards by treating warnings as errors, promoting code quality and adherence to best practices. This change aims to reduce runtime null reference exceptions and create a more robust codebase.

askpt avatar May 02 '25 07:05 askpt

Hey, can I work on this?

VanshikaNavya avatar Jun 19 '25 21:06 VanshikaNavya

Hi @askpt To maintain consistency, should nullable enforcement and warnings-as-errors be enabled for test projects too, or is it preferred to apply these only to the source components?

VanshikaNavya avatar Jun 21 '25 21:06 VanshikaNavya

Hi @askpt To maintain consistency, should nullable enforcement and warnings-as-errors be enabled for test projects too, or is it preferred to apply these only to the source components?

Yes. Enforce nullables in all flagd projects (tests and src)

askpt avatar Jun 22 '25 14:06 askpt