root = true [*] indent_style = tab indent_size = 4 insert_final_newline = true end_of_line = crlf spelling_exclusion_path = spellcheck.txt # Code files [*.{cs,csx,vb,vbx}] charset = utf-8-bom # XML project files [*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}] # XML config files [*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}] # JSON files [*.json] # Powershell files [*.ps1] # Azure files [*.{yml,sh,cmd,md}] indent_style = space # Azure files [*.sh] end_of_line = lf # Dotnet code style settings: [*.{cs,vb}] # Sort using and Import directives with System.* appearing first dotnet_sort_system_directives_first = true dotnet_separate_import_directive_groups = false # Use language keywords instead of framework type names for type references dotnet_style_predefined_type_for_locals_parameters_members = true:error dotnet_style_predefined_type_for_member_access = true:suggestion # Suggest more modern language features when available dotnet_style_object_initializer = true:suggestion dotnet_style_collection_initializer = true:suggestion dotnet_style_coalesce_expression = true:suggestion dotnet_style_null_propagation = true:suggestion dotnet_style_explicit_tuple_names = true:suggestion # CSharp code style settings: [*.cs] # Newline settings csharp_new_line_before_open_brace = all csharp_new_line_before_else = true csharp_new_line_before_catch = true csharp_new_line_before_finally = true csharp_new_line_before_members_in_object_initializers = true csharp_new_line_before_members_in_anonymous_types = true csharp_new_line_between_query_expression_clauses = true # Indentation preferences csharp_indent_block_contents = true csharp_indent_braces = false csharp_indent_case_contents = true csharp_indent_case_contents_when_block = false csharp_indent_switch_labels = true csharp_indent_labels = flush_left # Spacing options csharp_space_around_declaration_statements = ignore # Prefer "var" everywhere csharp_style_var_for_built_in_types = true:suggestion csharp_style_var_when_type_is_apparent = true:suggestion csharp_style_var_elsewhere = true:suggestion # Prefer method-like constructs to have a block body csharp_style_expression_bodied_methods = false:none csharp_style_expression_bodied_constructors = false:none csharp_style_expression_bodied_operators = false:none # Prefer property-like constructs to have an expression-body csharp_style_expression_bodied_properties = true:warning csharp_style_expression_bodied_indexers = true:warning csharp_style_expression_bodied_accessors = true:warning # Suggest more modern language features when available csharp_style_pattern_matching_over_is_with_cast_check = true:warning csharp_style_pattern_matching_over_as_with_null_check = true:warning csharp_style_inlined_variable_declaration = true:suggestion csharp_style_throw_expression = true:suggestion csharp_style_conditional_delegate_call = true:suggestion # Blocks are allowed csharp_prefer_braces = true:silent csharp_preserve_single_line_blocks = true csharp_preserve_single_line_statements = true csharp_prefer_simple_using_statement = false:silent csharp_style_prefer_switch_expression = true:warning dotnet_style_prefer_compound_assignment = true:warning [*.{cs,vb}] ############# # Analyzers # ############# # general settings applied to all source files # Source folder contains additional .editorconfig with overrides # # enable all analyzers by default # https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ dotnet_analyzer_diagnostic.severity = error dotnet_code_quality.api_surface = all dotnet_code_quality.enable_platform_analyzer_on_pre_net5_target = true ############################################## # active diagnostics (explicitly configured) # ############################################## dotnet_diagnostic.CA1825.severity = error # CA1825: Avoid zero-length array allocations # generates a lot of noise in tests, enabled in source .editorconfig dotnet_diagnostic.CA2007.severity = none # CA2007: Do not directly await a Task dotnet_diagnostic.CA2012.severity = error # CA2012: Use ValueTasks correctly dotnet_diagnostic.CA2016.severity = error # CA2016: Forward the CancellationToken parameter to methods that take one dotnet_diagnostic.CA1018.severity = error # CA1018: Mark attributes with AttributeUsageAttribute dotnet_diagnostic.CA1200.severity = error # CA1200: Avoid using cref tags with a prefix dotnet_diagnostic.CA1507.severity = error # CA1507: Use nameof in place of string dotnet_diagnostic.CA1725.severity = error # CA1725: Parameter names should match base declaration dotnet_diagnostic.CA1805.severity = error # CA1805: Do not initialize unnecessarily # not interested dotnet_diagnostic.CA1816.severity = none # CA1816: Call GC.SuppressFinalize correctly dotnet_diagnostic.CA1826.severity = error # CA1826: Use property instead of Linq Enumerable method # reported for valid test linq code, rule enabled in source .editorconfig dotnet_diagnostic.CA1827.severity = none # CA1827: Do not use Count/LongCount when Any can be used # reported for valid test linq code, rule enabled in source .editorconfig dotnet_diagnostic.CA1829.severity = none # CA1829: Use Length/Count property instead of Enumerable.Count method dotnet_diagnostic.CA1830.severity = error # CA1830: Prefer strongly-typed Append and Insert method overloads on StringBuilder dotnet_diagnostic.CA1834.severity = error # CA1834: Use StringBuilder.Append(char) for single character strings dotnet_diagnostic.CA1836.severity = error # CA1836: Prefer IsEmpty over Count when available dotnet_diagnostic.CA2101.severity = error # CA2101: Specify marshaling for P/Invoke string arguments dotnet_diagnostic.CA2200.severity = error # CA2200: Rethrow to preserve stack details dotnet_diagnostic.CA2201.severity = error # CA2201: Do not raise reserved exception types dotnet_diagnostic.CA2208.severity = error # CA2208: Instantiate argument exceptions correctly dotnet_diagnostic.CA2215.severity = error # CA2215: Dispose methods should call base class dispose # not interested dotnet_diagnostic.CA2231.severity = none # CA2231: Overload operator equals on overriding ValueType.Equals # disabled, as NETFX doesn't have string.Contains overloads with comparison type dotnet_diagnostic.CA2249.severity = none # CA2249: Consider using String.Contains instead of String.IndexOf dotnet_diagnostic.CA3075.severity = error # CA3075: Insecure DTD Processing # very slow (https://github.com/dotnet/roslyn-analyzers/issues/4754) # also we don't have code that could be targeted by it dotnet_diagnostic.CA3076.severity = none # CA3076: Insecure XSLT Script Execution ######################################################################################################### # inactive diagnostics (not reviewed yet => disabled to not fail build, basically TODO list for future) # ######################################################################################################### dotnet_diagnostic.CA1000.severity = none # CA1000: Do not declare static members on generic types dotnet_diagnostic.CA1001.severity = none # CA1001: Types that own disposable fields should be disposable dotnet_diagnostic.CA1002.severity = none # CA1002: Do not expose generic lists dotnet_diagnostic.CA1010.severity = none # CA1010: Collections should implement generic interface dotnet_diagnostic.CA1033.severity = none # CA1033: Interface methods should be callable by child types dotnet_diagnostic.CA1050.severity = none # CA1050: Declare types in namespaces dotnet_diagnostic.CA1036.severity = none # CA1036: Override methods on comparable types dotnet_diagnostic.CA1051.severity = none # CA1051: Do not declare visible instance fields dotnet_diagnostic.CA1056.severity = none # CA1056: URI properties should not be strings dotnet_diagnostic.CA1062.severity = none # CA1062: Validate arguments of public methods dotnet_diagnostic.CA1067.severity = none # CA1067: Override Equals when implementing IEquatable dotnet_diagnostic.CA1068.severity = none # CA1068: CancellationToken parameters must come last dotnet_diagnostic.CA1069.severity = none # CA1069: Enums should not have duplicate values dotnet_diagnostic.CA1307.severity = none # CA1307: Specify StringComparison for clarity dotnet_diagnostic.CA1309.severity = none # CA1309: Use ordinal StringComparison dotnet_diagnostic.CA1310.severity = none # CA1310: Specify StringComparison for correctness dotnet_diagnostic.CA1707.severity = none # CA1707: Identifiers should not contain underscores dotnet_diagnostic.CA1708.severity = none # CA1708: Identifiers should differ by more than case dotnet_diagnostic.CA1711.severity = none # CA1711: Identifiers should not have incorrect suffix dotnet_diagnostic.CA1715.severity = none # CA1715: Identifiers should have correct prefix dotnet_diagnostic.CA1716.severity = none # CA1716: Identifiers should not match keywords dotnet_diagnostic.CA1720.severity = none # CA1720: Identifiers should not contain type names dotnet_diagnostic.CA1806.severity = none # CA1806: Do not ignore method results dotnet_diagnostic.CA1819.severity = none # CA1819: Properties should not return arrays dotnet_diagnostic.CA1822.severity = none # CA1822: Mark members as static dotnet_diagnostic.CA1859.severity = none # CA1859: Use concrete types when possible for improved performance dotnet_diagnostic.CA2211.severity = none # CA2211: Non-constant fields should not be visible dotnet_diagnostic.CA2225.severity = none # CA2225: Operator overloads have named alternates dotnet_diagnostic.CA2227.severity = none # CA2227: Remove property setter ################################################################################### # VS analyzers # # https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ # ################################################################################### dotnet_diagnostic.IDE0001.severity = error # IDE0001: Simplify name dotnet_diagnostic.IDE0002.severity = error # IDE0002: Simplify member access # IDE0003: Remove this or Me qualification # IDE0009: Add this or Me qualification dotnet_diagnostic.IDE0003.severity = error dotnet_style_qualification_for_field = false:refactoring dotnet_style_qualification_for_property = false:refactoring dotnet_style_qualification_for_method = false:refactoring dotnet_style_qualification_for_event = false:refactoring dotnet_diagnostic.IDE0004.severity = error # IDE0004: Remove unnecessary cast dotnet_diagnostic.IDE0005.severity = error # IDE0005: Remove unnecessary import # not reviewed yet rules dotnet_diagnostic.IDE0007.severity = none # IDE0007: Use 'var' instead of explicit type dotnet_diagnostic.IDE0010.severity = none # IDE0010: Add missing cases to switch statement dotnet_diagnostic.IDE0011.severity = none # IDE0011: Add braces dotnet_diagnostic.IDE0016.severity = none # IDE0016: Use throw expression dotnet_diagnostic.IDE0017.severity = none # IDE0017: Use object initializers dotnet_diagnostic.IDE0018.severity = none # IDE0018: Inline variable declaration dotnet_diagnostic.IDE0019.severity = none # IDE0019: Use pattern matching to avoid 'as' followed by a 'null' check dotnet_diagnostic.IDE0025.severity = none # IDE0025: Use expression body for properties dotnet_diagnostic.IDE0026.severity = none # IDE0026: Use expression body for indexers dotnet_diagnostic.IDE0027.severity = none # IDE0027: Use expression body for accessors dotnet_diagnostic.IDE0028.severity = none # IDE0028: Use collection initializers dotnet_diagnostic.IDE0029.severity = none # IDE0029: Use coalesce expression (non-nullable types) dotnet_diagnostic.IDE0030.severity = none # IDE0030: Use coalesce expression dotnet_diagnostic.IDE0031.severity = none # IDE0031: Use null propagation dotnet_diagnostic.IDE0032.severity = none # IDE0032: Use auto property dotnet_diagnostic.IDE0034.severity = none # IDE0034: Simplify 'default' expression dotnet_diagnostic.IDE0036.severity = none # IDE0036: Order modifiers dotnet_diagnostic.IDE0037.severity = none # IDE0037: Use inferred member name dotnet_diagnostic.IDE0038.severity = none # IDE0038: Use pattern matching to avoid 'is' check followed by a cast dotnet_diagnostic.IDE0040.severity = none # IDE0040: Add accessibility modifiers dotnet_diagnostic.IDE0041.severity = none # IDE0041: Use is null check dotnet_diagnostic.IDE0044.severity = none # IDE0044: Add readonly modifier dotnet_diagnostic.IDE0045.severity = none # IDE0045: Use conditional expression for assignment dotnet_diagnostic.IDE0046.severity = none # IDE0046: Convert to conditional expression dotnet_diagnostic.IDE0047.severity = none # IDE0047: Remove unnecessary parentheses dotnet_diagnostic.IDE0048.severity = none # IDE0048: Add parentheses for clarity dotnet_diagnostic.IDE0049.severity = none # IDE0049: Use language keywords instead of framework type names for type references dotnet_diagnostic.IDE0050.severity = none # IDE0050: Convert to tuple dotnet_diagnostic.IDE0051.severity = none # IDE0051: Remove unused private members dotnet_diagnostic.IDE0052.severity = none # IDE0052: Remove unread private member dotnet_diagnostic.IDE0054.severity = none # IDE0054: Use compound assignment dotnet_diagnostic.IDE0055.severity = none # IDE0055: Formatting rules dotnet_diagnostic.IDE0056.severity = none # IDE0056: Use index operator dotnet_diagnostic.IDE0057.severity = none # IDE0057: Use range operator dotnet_diagnostic.IDE0058.severity = none # IDE0058: computed value is never used dotnet_diagnostic.IDE0059.severity = none # IDE0059: Remove unnecessary value assignment dotnet_diagnostic.IDE0060.severity = none # IDE0060: Remove unused parameter dotnet_diagnostic.IDE0061.severity = none # IDE0061: Use expression body for local functions dotnet_diagnostic.IDE0062.severity = none # IDE0062: Make local function static dotnet_diagnostic.IDE0065.severity = none # IDE0065: Misplaced using directive dotnet_diagnostic.IDE0066.severity = none # IDE0066: Convert switch statement to expression dotnet_diagnostic.IDE0070.severity = none # IDE0070: Use 'System.HashCode.Combine' dotnet_diagnostic.IDE0072.severity = none # IDE0072: Add missing cases dotnet_diagnostic.IDE0075.severity = none # IDE0075: Simplify conditional expression dotnet_diagnostic.IDE0078.severity = none # IDE0078: Use pattern matching dotnet_diagnostic.IDE0079.severity = none # IDE0079: Remove unnecessary suppression dotnet_diagnostic.IDE0080.severity = none # IDE0080: Remove unnecessary suppression operator dotnet_diagnostic.IDE0081.severity = none # IDE0081: Remove ByVal dotnet_diagnostic.IDE0083.severity = none # IDE0083: Use pattern matching (not operator) dotnet_diagnostic.IDE0130.severity = none # IDE0130: Namespace does not match folder structure dotnet_diagnostic.IDE0290.severity = none # IDE0290: Use primary constructor dotnet_diagnostic.IDE0305.severity = none # IDE0305: Use collection expression (from ToArray) dotnet_diagnostic.IDE1006.severity = none # IDE1006: Naming rule violation dotnet_diagnostic.CS1998.severity = error # CS1998: Async method lacks 'await' operators and will run synchronously dotnet_diagnostic.CS8618.severity = error # CS8618: Non-nullable field is uninitialized. Consider declaring as nullable. dotnet_diagnostic.CS4014.severity = error # CS4014: Because this call is not awaited, execution of the current method continues before the call is completed # do not disable rules below dotnet_diagnostic.CA1304.severity = error # CA1304: Specify CultureInfo dotnet_diagnostic.CA1305.severity = error # CA1305: Specify IFormatProvider dotnet_code_quality.CA1305.excluded_symbol_names = M:System.Convert.ToString(System.Boolean)|M:System.Convert.ToChar(System.String)|M:System.Convert.ToBoolean(System.String) ###### Meziantou.Analyzers # MA0001: StringComparison is missing dotnet_diagnostic.MA0001.severity = none # MA0002: IEqualityComparer or IComparer is missing dotnet_diagnostic.MA0002.severity = none # MA0003: Add parameter name to improve readability dotnet_diagnostic.MA0003.severity = none # MA0004: Use Task.ConfigureAwait(false) dotnet_diagnostic.MA0004.severity = none # MA0005: Use Array.Empty() dotnet_diagnostic.MA0005.severity = none # MA0006: Use String.Equals instead of equality operator dotnet_diagnostic.MA0006.severity = none # MA0007: Add a comma after the last value dotnet_diagnostic.MA0007.severity = none # MA0008: Add StructLayoutAttribute dotnet_diagnostic.MA0008.severity = none # MA0009: Add regex evaluation timeout dotnet_diagnostic.MA0009.severity = none # MA0010: Mark attributes with AttributeUsageAttribute dotnet_diagnostic.MA0010.severity = none # MA0011: IFormatProvider is missing dotnet_diagnostic.MA0011.severity = error # MA0012: Do not raise reserved exception type dotnet_diagnostic.MA0012.severity = none # MA0013: Types should not extend System.ApplicationException dotnet_diagnostic.MA0013.severity = none # MA0014: Do not raise System.ApplicationException type dotnet_diagnostic.MA0014.severity = none # MA0015: Specify the parameter name in ArgumentException dotnet_diagnostic.MA0015.severity = none # MA0016: Prefer using collection abstraction instead of implementation dotnet_diagnostic.MA0016.severity = none # MA0017: Abstract types should not have public or internal constructors dotnet_diagnostic.MA0017.severity = none # MA0018: Do not declare static members on generic types (deprecated; use CA1000 instead) dotnet_diagnostic.MA0018.severity = none # MA0019: Use EventArgs.Empty dotnet_diagnostic.MA0019.severity = none # MA0020: Use direct methods instead of LINQ methods dotnet_diagnostic.MA0020.severity = none # MA0021: Use StringComparer.GetHashCode instead of string.GetHashCode dotnet_diagnostic.MA0021.severity = none # MA0022: Return Task.FromResult instead of returning null dotnet_diagnostic.MA0022.severity = none # MA0023: Add RegexOptions.ExplicitCapture dotnet_diagnostic.MA0023.severity = none # MA0024: Use an explicit StringComparer when possible dotnet_diagnostic.MA0024.severity = none # MA0025: Implement the functionality instead of throwing NotImplementedException dotnet_diagnostic.MA0025.severity = none # MA0026: Fix TODO comment dotnet_diagnostic.MA0026.severity = none # MA0027: Prefer rethrowing an exception implicitly dotnet_diagnostic.MA0027.severity = none # MA0028: Optimize StringBuilder usage dotnet_diagnostic.MA0028.severity = none # MA0029: Combine LINQ methods dotnet_diagnostic.MA0029.severity = none # MA0030: Remove useless OrderBy call dotnet_diagnostic.MA0030.severity = none # MA0031: Optimize Enumerable.Count() usage dotnet_diagnostic.MA0031.severity = none # MA0032: Use an overload with a CancellationToken argument dotnet_diagnostic.MA0032.severity = none # MA0033: Do not tag instance fields with ThreadStaticAttribute dotnet_diagnostic.MA0033.severity = none # MA0035: Do not use dangerous threading methods dotnet_diagnostic.MA0035.severity = none # MA0036: Make class static dotnet_diagnostic.MA0036.severity = none # MA0037: Remove empty statement dotnet_diagnostic.MA0037.severity = none # MA0038: Make method static (deprecated, use CA1822 instead) dotnet_diagnostic.MA0038.severity = none # MA0039: Do not write your own certificate validation method dotnet_diagnostic.MA0039.severity = none # MA0040: Forward the CancellationToken parameter to methods that take one dotnet_diagnostic.MA0040.severity = none # MA0041: Make property static (deprecated, use CA1822 instead) dotnet_diagnostic.MA0041.severity = none # MA0042: Do not use blocking calls in an async method dotnet_diagnostic.MA0042.severity = none # MA0043: Use nameof operator in ArgumentException dotnet_diagnostic.MA0043.severity = none # MA0044: Remove useless ToString call dotnet_diagnostic.MA0044.severity = error # MA0045: Do not use blocking calls in a sync method (need to make calling method async) dotnet_diagnostic.MA0045.severity = none # MA0046: Use EventHandler to declare events dotnet_diagnostic.MA0046.severity = none # MA0047: Declare types in namespaces dotnet_diagnostic.MA0047.severity = none # MA0048: File name must match type name dotnet_diagnostic.MA0048.severity = none # MA0049: Type name should not match containing namespace dotnet_diagnostic.MA0049.severity = none # MA0050: Validate arguments correctly in iterator methods dotnet_diagnostic.MA0050.severity = none # MA0051: Method is too long dotnet_diagnostic.MA0051.severity = none # MA0052: Replace constant Enum.ToString with nameof dotnet_diagnostic.MA0052.severity = none # MA0053: Make class sealed dotnet_diagnostic.MA0053.severity = none # MA0054: Embed the caught exception as innerException dotnet_diagnostic.MA0054.severity = none # MA0055: Do not use finalizer dotnet_diagnostic.MA0055.severity = none # MA0056: Do not call overridable members in constructor dotnet_diagnostic.MA0056.severity = none # MA0057: Class name should end with 'Attribute' dotnet_diagnostic.MA0057.severity = none # MA0058: Class name should end with 'Exception' dotnet_diagnostic.MA0058.severity = none # MA0059: Class name should end with 'EventArgs' dotnet_diagnostic.MA0059.severity = none # MA0060: The value returned by Stream.Read/Stream.ReadAsync is not used dotnet_diagnostic.MA0060.severity = none # MA0061: Method overrides should not change default values dotnet_diagnostic.MA0061.severity = none # MA0062: Non-flags enums should not be marked with "FlagsAttribute" dotnet_diagnostic.MA0062.severity = none # MA0063: Use Where before OrderBy dotnet_diagnostic.MA0063.severity = none # MA0064: Avoid locking on publicly accessible instance dotnet_diagnostic.MA0064.severity = none # MA0065: Default ValueType.Equals or HashCode is used for struct equality dotnet_diagnostic.MA0065.severity = none # MA0066: Hash table unfriendly type is used in a hash table dotnet_diagnostic.MA0066.severity = none # MA0067: Use Guid.Empty dotnet_diagnostic.MA0067.severity = none # MA0068: Invalid parameter name for nullable attribute dotnet_diagnostic.MA0068.severity = none # MA0069: Non-constant static fields should not be visible dotnet_diagnostic.MA0069.severity = none # MA0070: Obsolete attributes should include explanations dotnet_diagnostic.MA0070.severity = none # MA0071: Avoid using redundant else dotnet_diagnostic.MA0071.severity = none # MA0072: Do not throw from a finally block dotnet_diagnostic.MA0072.severity = none # MA0073: Avoid comparison with bool constant dotnet_diagnostic.MA0073.severity = none # MA0074: Avoid implicit culture-sensitive methods dotnet_diagnostic.MA0074.severity = none # MA0075: Do not use implicit culture-sensitive ToString dotnet_diagnostic.MA0075.severity = error # MA0076: Do not use implicit culture-sensitive ToString in interpolated strings dotnet_diagnostic.MA0076.severity = error # MA0077: A class that provides Equals(T) should implement IEquatable dotnet_diagnostic.MA0077.severity = none # MA0078: Use 'Cast' instead of 'Select' to cast dotnet_diagnostic.MA0078.severity = none # MA0079: Forward the CancellationToken using .WithCancellation() dotnet_diagnostic.MA0079.severity = none # MA0080: Use a cancellation token using .WithCancellation() dotnet_diagnostic.MA0080.severity = none # MA0081: Method overrides should not omit params keyword dotnet_diagnostic.MA0081.severity = none # MA0082: NaN should not be used in comparisons dotnet_diagnostic.MA0082.severity = none # MA0083: ConstructorArgument parameters should exist in constructors dotnet_diagnostic.MA0083.severity = none # MA0084: Local variables should not hide other symbols dotnet_diagnostic.MA0084.severity = none # MA0085: Anonymous delegates should not be used to unsubscribe from Events dotnet_diagnostic.MA0085.severity = none # MA0086: Do not throw from a finalizer dotnet_diagnostic.MA0086.severity = none # MA0087: Parameters with [DefaultParameterValue] attributes should also be marked [Optional] dotnet_diagnostic.MA0087.severity = none # MA0088: Use [DefaultParameterValue] instead of [DefaultValue] dotnet_diagnostic.MA0088.severity = none # MA0089: Optimize string method usage dotnet_diagnostic.MA0089.severity = none # MA0090: Remove empty else/finally block dotnet_diagnostic.MA0090.severity = none # MA0091: Sender should be 'this' for instance events dotnet_diagnostic.MA0091.severity = none # MA0092: Sender should be 'null' for static events dotnet_diagnostic.MA0092.severity = none # MA0093: EventArgs should not be null dotnet_diagnostic.MA0093.severity = none # MA0094: A class that provides CompareTo(T) should implement IComparable dotnet_diagnostic.MA0094.severity = none # MA0095: A class that implements IEquatable should override Equals(object) dotnet_diagnostic.MA0095.severity = none # MA0096: A class that implements IComparable should also implement IEquatable dotnet_diagnostic.MA0096.severity = none # MA0097: A class that implements IComparable or IComparable should override comparison operators dotnet_diagnostic.MA0097.severity = none # MA0098: Use indexer instead of LINQ methods dotnet_diagnostic.MA0098.severity = none # MA0099: Use Explicit enum value instead of 0 dotnet_diagnostic.MA0099.severity = none # MA0100: Await task before disposing of resources dotnet_diagnostic.MA0100.severity = none # MA0101: String contains an implicit end of line character dotnet_diagnostic.MA0101.severity = none # MA0102: Make member readonly dotnet_diagnostic.MA0102.severity = none # MA0103: Use SequenceEqual instead of equality operator dotnet_diagnostic.MA0103.severity = none # MA0104: Do not create a type with a name from the BCL dotnet_diagnostic.MA0104.severity = none # MA0105: Use the lambda parameters instead of using a closure dotnet_diagnostic.MA0105.severity = none # MA0106: Avoid closure by using an overload with the 'factoryArgument' parameter dotnet_diagnostic.MA0106.severity = none # MA0107: Do not use culture-sensitive object.ToString dotnet_diagnostic.MA0107.severity = error # MA0108: Remove redundant argument value dotnet_diagnostic.MA0108.severity = none # MA0109: Consider adding an overload with a Span or Memory dotnet_diagnostic.MA0109.severity = none # MA0110: Use the Regex source generator dotnet_diagnostic.MA0110.severity = none # MA0111: Use string.Create instead of FormattableString dotnet_diagnostic.MA0111.severity = none # MA0112: Use 'Count > 0' instead of 'Any()' dotnet_diagnostic.MA0112.severity = none # MA0113: Use DateTime.UnixEpoch dotnet_diagnostic.MA0113.severity = none # MA0114: Use DateTimeOffset.UnixEpoch dotnet_diagnostic.MA0114.severity = none # MA0115: Unknown component parameter dotnet_diagnostic.MA0115.severity = none # MA0116: Parameters with [SupplyParameterFromQuery] attributes should also be marked as [Parameter] dotnet_diagnostic.MA0116.severity = none # MA0117: Parameters with [EditorRequired] attributes should also be marked as [Parameter] dotnet_diagnostic.MA0117.severity = none # MA0118: [JSInvokable] methods must be public dotnet_diagnostic.MA0118.severity = none # MA0119: JSRuntime must not be used in OnInitialized or OnInitializedAsync dotnet_diagnostic.MA0119.severity = none # MA0120: Use InvokeVoidAsync when the returned value is not used dotnet_diagnostic.MA0120.severity = none # MA0121: Do not overwrite parameter value dotnet_diagnostic.MA0121.severity = none # MA0122: Parameters with [SupplyParameterFromQuery] attributes are only valid in routable components (@page) dotnet_diagnostic.MA0122.severity = none # MA0123: Sequence number must be a constant dotnet_diagnostic.MA0123.severity = none # MA0124: Log Parameter type is not valid dotnet_diagnostic.MA0124.severity = none # MA0125: The list of log parameter types contains an invalid type dotnet_diagnostic.MA0125.severity = none # MA0126: The list of log parameter types contains a duplicate dotnet_diagnostic.MA0126.severity = none # MA0127: Use String.Equals instead of is pattern dotnet_diagnostic.MA0127.severity = none # MA0128: Use 'is' operator instead of SequenceEqual dotnet_diagnostic.MA0128.severity = none # MA0129: Await task in using statement dotnet_diagnostic.MA0129.severity = none # MA0130: GetType() should not be used on System.Type instances dotnet_diagnostic.MA0130.severity = none # MA0131: ArgumentNullException.ThrowIfNull should not be used with non-nullable types dotnet_diagnostic.MA0131.severity = none # MA0132: Do not convert implicitly to DateTimeOffset dotnet_diagnostic.MA0132.severity = none # MA0133: Use DateTimeOffset instead of relying on the implicit conversion dotnet_diagnostic.MA0133.severity = none # MA0134: Observe result of async calls dotnet_diagnostic.MA0134.severity = none # MA0135: The log parameter has no configured type dotnet_diagnostic.MA0135.severity = none # MA0136: Raw String contains an implicit end of line character dotnet_diagnostic.MA0136.severity = none # MA0137: Use 'Async' suffix when a method returns an awaitable type dotnet_diagnostic.MA0137.severity = none # MA0138: Do not use 'Async' suffix when a method does not return an awaitable type dotnet_diagnostic.MA0138.severity = none # MA0139: Log Parameter type is not valid dotnet_diagnostic.MA0139.severity = none # MA0140: Both if and else branch have identical code dotnet_diagnostic.MA0140.severity = none # MA0141: Use pattern matching instead of inequality operators for null check dotnet_diagnostic.MA0141.severity = none # MA0142: Use pattern matching instead of equality operators for null check dotnet_diagnostic.MA0142.severity = none # MA0143: Primary constructor parameters should be readonly dotnet_diagnostic.MA0143.severity = none # MA0144: Use System.OperatingSystem to check the current OS dotnet_diagnostic.MA0144.severity = none # MA0145: Signature for [UnsafeAccessorAttribute] method is not valid dotnet_diagnostic.MA0145.severity = none # MA0146: Name must be set explicitly on local functions dotnet_diagnostic.MA0146.severity = none # MA0147: Avoid async void method for delegate dotnet_diagnostic.MA0147.severity = none # MA0148: Use pattern matching instead of equality operators for discrete value dotnet_diagnostic.MA0148.severity = none # MA0149: Use pattern matching instead of inequality operators for discrete value dotnet_diagnostic.MA0149.severity = none # MA0150: Do not call the default object.ToString explicitly dotnet_diagnostic.MA0150.severity = none # MA0151: DebuggerDisplay must contain valid members dotnet_diagnostic.MA0151.severity = none # MA0152: Use Unwrap instead of using await twice dotnet_diagnostic.MA0152.severity = none # MA0153: Do not log symbols decorated with DataClassificationAttribute directly dotnet_diagnostic.MA0153.severity = none # MA0154: Use langword in XML comment dotnet_diagnostic.MA0154.severity = none # MA0165: Use langword in XML comment dotnet_diagnostic.MA0165.severity = none