Update AGENTS.md to clarify project-level nullable reference types#9
Conversation
Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Malcolmnixon
left a comment
There was a problem hiding this comment.
I'd prefer to leave nullability at the project level, as that seems to be the industry recommendation for consistency - especially when adding new files.
Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Reverted the explicit |
Malcolmnixon
left a comment
There was a problem hiding this comment.
Could you propose a modification to the AGENTS.md file to indicate the nullability is captured at the project level rather than at the file level.
Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Updated AGENTS.md to clarify that nullable reference types are enabled at the project level via |
AGENTS.md previously stated "Use nullable reference types (
#nullable enable)." which implied file-level directives should be used. This PR updates the documentation to clarify that the project uses project-level configuration instead.Analysis
The project correctly implements nullable reference types using the project-level
<Nullable>enable</Nullable>setting in .csproj files, which is the industry recommendation for consistency - especially when adding new files.Changes
Updated AGENTS.md to explicitly document the project-level approach:
Before:
After:
This clarifies the convention and prevents future additions of file-level directives.
Verification
<Nullable>enable</Nullable>configured in all .csproj filesThe project maintains nullable reference type enforcement through project-level configuration, providing consistent behavior across all files.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.