You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# CS4014: Because this call is not awaited, execution of the current method continues before the call is completed
dotnet_diagnostic.CS4014.severity = warning
# CS2012: ValueTask instances returned from member invocations are intended to be directly awaited. Attempts to consume a ValueTask multiple times or to directly access one's result before it's known to be completed may result in an exception or corruption. Ignoring such a ValueTask is likely an indication of a functional bug and may degrade performance.
dotnet_diagnostic.CS2012.severity = error
# CS1998 : This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
# CA1822: Member does not access instance data and can be marked as static
dotnet_diagnostic.CA1822.severity = suggestion
# CA1050: Declare types in namespaces
dotnet_diagnostic.CA1050.severity = error
# CA2016: Forward the 'cancellationToken' parameter methods that take one
dotnet_diagnostic.CA2016.severity = warning
# CA1068: CancellationToken parameters must come last
dotnet_diagnostic.CA1068.severity = error
# CA2208: Method passes parameter as the paramName argument to a ArgumentNullException constructor. Replace this argument with one of the method's parameter names. Note that the provided parameter name should have the exact casing as declared on the method.
dotnet_diagnostic.CA2208.severity = error
# CA1834: Use 'StringBuilder.Append(char)' instead of 'StringBuilder.Append(string)' when the input is a constant unit string
dotnet_diagnostic.CA1834.severity = error
# IDE0220: Add explicit cast
dotnet_diagnostic.IDE0220.severity = error
# StyleCop.Analyzers (referenced for every project in Directory.Packages.props).
# Only the element-ordering rules are enabled. They stay warnings so attendee code still builds, and Directory.Build.props hides them outside Release builds.
# Order of elements in a file: extern alias, usings, namespaces, delegates, enums, interfaces, records, structs, classes.
# Order of members in a type: fields, constructors, finalizers, delegates, events, enums, interfaces, properties, indexers, methods, records, structs, classes.
# Within each group: public, internal, protected internal, protected, private protected, private; static before instance; readonly before non-readonly.
# dotnet format cannot apply StyleCop fixes on the .NET 10 SDK: reorder members by hand and rebuild until no SA warnings remain.