# NOTE: Requires **VS2019 16.7** or later

# 'Reliability' Rules from '8.0' release with 'Recommended' analysis mode
# Description: 'Reliability' Rules with enabled-by-default state from '8.0' release with 'Recommended' analysis mode. Rules that are first released in a version later than '8.0' are disabled.

is_global = true

global_level = -99


# CA2009: Do not call ToImmutableCollection on an ImmutableCollection value
dotnet_diagnostic.CA2009.severity = warning

# CA2011: Avoid infinite recursion
dotnet_diagnostic.CA2011.severity = warning

# CA2012: Use ValueTasks correctly
dotnet_diagnostic.CA2012.severity = warning

# CA2016: Forward the 'CancellationToken' parameter to methods
dotnet_diagnostic.CA2016.severity = warning

# CA2019: Improper 'ThreadStatic' field initialization
dotnet_diagnostic.CA2019.severity = warning

# CA2020: Prevent behavioral change
dotnet_diagnostic.CA2020.severity = warning

# CA2022: Avoid inexact read with 'Stream.Read'
dotnet_diagnostic.CA2022.severity = none
