1
0
Fork 0

editorconfig: do not suggest null propagation for Unity code

This commit is contained in:
ivan tkachenko 2026-01-16 18:02:53 +02:00
parent 3835e84450
commit 908ddeb862
1 changed files with 7 additions and 0 deletions

View File

@ -6,3 +6,10 @@ csharp_style_prefer_primary_constructors = false
# IDE0305: Simplify collection initialization # IDE0305: Simplify collection initialization
dotnet_style_prefer_collection_expression = never dotnet_style_prefer_collection_expression = never
# IDE0031: Use null propagation
# Unity overrides equality operator, so gameObject == null also accounts for internal state of the backing C++ object
# Read more:
# - https://blog.lslabs.dev/posts/null_check_equality_unity
# - https://blog.lslabs.dev/posts/unity_script_duality
dotnet_style_null_propagation = false