2025-08-11 12:47:29 +00:00
|
|
|
[*.cs]
|
|
|
|
|
|
|
|
|
|
# IDE0290: Use primary constructor
|
|
|
|
|
# Primary constructors are far from perfect: they can't have readonly fields, while fields can be used anywhere in the class body.
|
|
|
|
|
csharp_style_prefer_primary_constructors = false
|
2026-01-13 19:40:10 +00:00
|
|
|
|
|
|
|
|
# IDE0305: Simplify collection initialization
|
|
|
|
|
dotnet_style_prefer_collection_expression = never
|
2026-01-16 16:02:53 +00:00
|
|
|
|
|
|
|
|
# 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
|