Skip to content

Commit

Permalink
Update editor config
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorBanai committed Oct 28, 2023
1 parent a13ab66 commit 9d4daf9
Showing 1 changed file with 138 additions and 4 deletions.
142 changes: 138 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case
dotnet_diagnostic.SA1101.severity = silent
dotnet_diagnostic.SA1513.severity = silent
dotnet_diagnostic.SA1600.severity = suggestion
dotnet_diagnostic.SA1600.severity = silent
dotnet_diagnostic.SA1508.severity = error
dotnet_diagnostic.SA1128.severity = silent
dotnet_diagnostic.SA1516.severity = silent
Expand All @@ -246,7 +246,7 @@ dotnet_diagnostic.MA0004.severity = silent
dotnet_diagnostic.SA1117.severity = silent
dotnet_diagnostic.MA0015.severity = silent
dotnet_diagnostic.MA0026.severity = suggestion
dotnet_diagnostic.SA1202.severity = suggestion
dotnet_diagnostic.SA1202.severity = silent
dotnet_diagnostic.SA1116.severity = silent
dotnet_diagnostic.MA0051.severity = silent
dotnet_diagnostic.SA1633.severity = silent
Expand All @@ -258,21 +258,153 @@ dotnet_diagnostic.SA1507.severity = error
dotnet_diagnostic.SA1505.severity = error
dotnet_diagnostic.SA1400.severity = error
dotnet_diagnostic.SA1503.severity = error
dotnet_diagnostic.SA1515.severity = error
dotnet_diagnostic.SA1515.severity = silent
dotnet_diagnostic.SA1514.severity = error
dotnet_diagnostic.SA1413.severity = error
dotnet_diagnostic.SA1008.severity = error
dotnet_diagnostic.SA1121.severity = error
dotnet_diagnostic.SA1212.severity = error
dotnet_diagnostic.SA1313.severity = error
dotnet_diagnostic.CA1805.severity = error

# Do not ignore method results
dotnet_diagnostic.CA1806.severity = error

# Initialize reference type static fields inline
dotnet_diagnostic.CA1810.severity = error

# Avoid uninstantiated internal classes
dotnet_diagnostic.CA1812.severity = warning

# Avoid unsealed attributes
dotnet_diagnostic.CA1813.severity = error

# Remove empty finalizers
dotnet_diagnostic.CA1821.severity = error

# Avoid unused private fields
dotnet_diagnostic.CA1823.severity = error

# Avoid zero-length array allocations
dotnet_diagnostic.CA1825.severity = warning

# Use property instead of Linq Enumerable method
dotnet_diagnostic.CA1826.severity = warning

# Do not use Count/LongCount when Any can be used
dotnet_diagnostic.CA1827.severity = suggestion

# Do not use CountAsync/LongCountAsync when AnyAsync can be used
dotnet_diagnostic.CA1828.severity = suggestion

# Use Length/Count property instead of Enumerable.Count method
dotnet_diagnostic.CA1829.severity = warning

# Prefer strongly-typed Append and Insert method overloads on StringBuilder.
dotnet_diagnostic.CA1830.severity = warning

# Use AsSpan instead of Range-based indexers for string when appropriate
dotnet_diagnostic.CA1831.severity = warning

# Use AsSpan or AsMemory instead of Range-based indexers for getting ReadOnlySpan or ReadOnlyMemory portion of an array
dotnet_diagnostic.CA1832.severity = warning

# Use AsSpan or AsMemory instead of Range-based indexers for getting Span or Memory portion of an array
dotnet_diagnostic.CA1833.severity = warning

# Use StringBuilder.Append(char) for single character strings
dotnet_diagnostic.CA1834.severity = warning

# Prefer the memory-based overloads of ReadAsync/WriteAsync methods in stream-based classes
dotnet_diagnostic.CA1835.severity = warning

# Prefer IsEmpty over Count when available
dotnet_diagnostic.CA1836.severity = warning

# Use Environment.ProcessId instead of Process.GetCurrentProcess().Id
dotnet_diagnostic.CA1837.severity = warning

# Avoid StringBuilder parameters for P/Invokes
dotnet_diagnostic.CA1838.severity = warning

# Use Environment.ProcessPath instead of Process.GetCurrentProcess().MainModule.FileName
dotnet_diagnostic.CA1839.severity = warning

# Use Environment.CurrentManagedThreadId instead of Thread.CurrentThread.ManagedThreadId
dotnet_diagnostic.CA1840.severity = warning

# Prefer Dictionary Contains methods
dotnet_diagnostic.CA1841.severity = warning

# Do not use 'WhenAll' with a single task
dotnet_diagnostic.CA1842.severity = error

# Do not use 'WaitAll' with a single task
dotnet_diagnostic.CA1843.severity = error

# Provide memory-based overrides of async methods when subclassing 'Stream'
dotnet_diagnostic.CA1844.severity = warning

# Use span-based 'string.Concat'
dotnet_diagnostic.CA1845.severity = warning

# Prefer AsSpan over Substring
dotnet_diagnostic.CA1846.severity = warning

# Use string.Contains(char) instead of string.Contains(string) with single character
dotnet_diagnostic.CA1847.severity = warning

# Use the LoggerMessage delegates
dotnet_diagnostic.CA1848.severity = warning

# Call async methods when in an async method
dotnet_diagnostic.CA1849.severity = error

# Prefer static HashData method over ComputeHash
dotnet_diagnostic.CA1850.severity = error

# Possible multiple enumerations of IEnumerable collection
dotnet_diagnostic.CA1851.severity = warning

# Seal internal types
dotnet_diagnostic.CA1852.severity = error

# Unnecessary call to 'Dictionary.ContainsKey(key)'
dotnet_diagnostic.CA1853.severity = error

# Prefer the IDictionary.TryGetValue(TKey, out TValue) method
dotnet_diagnostic.CA1854.severity = error

# Use Span<T>.Clear() instead of Span<T>.Fill()
dotnet_diagnostic.CA1855.severity = error

# Use StartsWith instead of IndexOf
dotnet_diagnostic.CA1858.severity = error

# Avoid using 'Enumerable.Any()' extension method
dotnet_diagnostic.CA1860.severity = error

dotnet_diagnostic.MA0134.severity = error
dotnet_diagnostic.SA1408.severity = error
dotnet_diagnostic.SA1210.severity = error
dotnet_diagnostic.SA1122.severity = suggestion
dotnet_diagnostic.SA1108.severity = silent
dotnet_diagnostic.SA1012.severity = error
dotnet_diagnostic.SA1500.severity = error
dotnet_diagnostic.SA1134.severity = silent
dotnet_diagnostic.SA1509.severity = error
dotnet_diagnostic.SA1002.severity = suggestion
dotnet_diagnostic.MA0003.severity = error
dotnet_diagnostic.MA0005.severity = error
dotnet_diagnostic.MA0010.severity = error
dotnet_diagnostic.MA0019.severity = error
dotnet_diagnostic.MA0012.severity = error
dotnet_diagnostic.MA0022.severity = error
dotnet_diagnostic.MA0028.severity = silent
dotnet_diagnostic.MA0044.severity = error
dotnet_diagnostic.MA0052.severity = error
dotnet_diagnostic.SA1139.severity = error
dotnet_diagnostic.SA1316.severity = error

[*.{cs,vb}]
dotnet_style_operator_placement_when_wrapping = beginning_of_line
Expand All @@ -296,4 +428,6 @@ dotnet_style_predefined_type_for_locals_parameters_members = true:silent
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
dotnet_code_quality_unused_parameters = all:suggestion
dotnet_diagnostic.CA2200.severity = error
dotnet_diagnostic.CA1012.severity = error
dotnet_diagnostic.CA1012.severity = error
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
dotnet_diagnostic.CA1806.severity = warning

0 comments on commit 9d4daf9

Please sign in to comment.