3 Star 2 Fork 1

Gitee 极速下载/unoplatform

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/unoplatform/uno
克隆/下载
.globalconfig 5.43 KB
一键复制 编辑 原始数据 按行查看 历史
is_global = true
# RS0030: Do not used banned APIs
# https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.BannedApiAnalyzers/BannedApiAnalyzers.Help.md
dotnet_diagnostic.RS0030.severity = error
dotnet_analyzer_diagnostic.category-Performance.severity = error
# CA1044: Properties should not be write only
dotnet_diagnostic.CA1044.severity = error
# CA1304: Specify CultureInfo
dotnet_diagnostic.CA1304.severity = error
# CA1305: Specify IFormatProvider
dotnet_diagnostic.CA1305.severity = error
# When we have interpolated string handlers (.NET 6+), there is an overload that accepts IFormatProvider.
# However, the same code is targeting older versions that only have `Append(string)` and no overload accepting IFormatProvider.
# Fixing the warning in this case will require noisy `#if` directives. We exclude this overload for now and get no warning at all.
dotnet_code_quality.CA1305.excluded_symbol_names = M:System.Text.StringBuilder.Append(System.Text.StringBuilder.AppendInterpolatedStringHandler@)|M:System.Text.StringBuilder.AppendLine(System.Text.StringBuilder.AppendInterpolatedStringHandler@)
# CA1805: Do not initialize unnecessarily
dotnet_diagnostic.CA1805.severity = error
# CA1815: Override equals and operator equals on value types
dotnet_diagnostic.CA1815.severity = error
# CA1821: Remove empty Finalizers
dotnet_diagnostic.CA1821.severity = error
# CA1821: Remove empty Finalizers
dotnet_diagnostic.CA1823.severity = error
# CA1825: Avoid zero-length array allocations
dotnet_diagnostic.CA1825.severity = error
# CA1826: Do not use Enumerable methods on indexable collections
dotnet_diagnostic.CA1826.severity = error
# CA1827: Do not use Count() or LongCount() when Any() can be used
dotnet_diagnostic.CA1827.severity = error
# CA1828: Do not use CountAsync() or LongCountAsync() when AnyAsync() can be used
dotnet_diagnostic.CA1828.severity = error
# CA1829: Use Length/Count property instead of Count() when available
dotnet_diagnostic.CA1829.severity = error
# CA2200: Rethrow to preserve stack details
dotnet_diagnostic.CA2200.severity = error
# CA2211: Non-constant fields should not be visible
dotnet_diagnostic.CA2211.severity = error
# CA2218: Override GetHashCode on overriding Equals
dotnet_diagnostic.CA2218.severity = error
# CA1802: Use literals where appropriate
dotnet_diagnostic.CA1802.severity = none
# CA1806: Do not ignore method results
dotnet_diagnostic.CA1806.severity = error
# CA1810: Initialize reference type static fields inline
dotnet_diagnostic.CA1810.severity = none
# CA1812: Avoid uninstantiated internal classes
dotnet_diagnostic.CA1812.severity = none
# CA1813: Avoid unsealed attributes
dotnet_diagnostic.CA1813.severity = none
# CA1819: Properties should not return arrays
dotnet_diagnostic.CA1819.severity = none
# CA1820: Test for empty strings using string length
dotnet_diagnostic.CA1820.severity = none
# CA1822: Mark members as static
dotnet_diagnostic.CA1822.severity = none
# CA1823: Avoid unused private fields
dotnet_diagnostic.CA1823.severity = none
# CA1835: Prefer the 'Memory'-based overloads for 'ReadAsync' and 'WriteAsync'
dotnet_diagnostic.CA1835.severity = none
# CA1838: Avoid 'StringBuilder' parameters for P/Invokes
dotnet_diagnostic.CA1838.severity = none
# CA1844: Provide memory-based overrides of async methods when subclassing 'Stream'
dotnet_diagnostic.CA1844.severity = none
# CA1846: Prefer 'AsSpan' over 'Substring'
dotnet_diagnostic.CA1846.severity = none
# CA1847: Use char literal for a single character lookup
dotnet_diagnostic.CA1847.severity = none
# CA1848: Use the LoggerMessage delegates
dotnet_diagnostic.CA1848.severity = none
# CA1849: Call async methods when in an async method
dotnet_diagnostic.CA1849.severity = none
# CA1850: Prefer static 'System.Security.Cryptography.SHA256.HashData' method over 'ComputeHash'
dotnet_diagnostic.CA1850.severity = none
# CA1851: Possible multiple enumerations of 'IEnumerable' collection.
dotnet_diagnostic.CA1851.severity = none
# CA1854: Prefer a 'TryGetValue' call over a Dictionary indexer access guarded by a 'ContainsKey'
dotnet_diagnostic.CA1854.severity = none
# CA1852: Type 'XX' can be sealed because
dotnet_diagnostic.CA1852.severity = none
# CA1859: Change return type of method 'XX' from 'XX' to 'XX' for improved performance
dotnet_diagnostic.CA1859.severity = none
# CA1860: Prefer comparing 'Count' to 0 rather than using 'Any()', both for clarity and for performance
dotnet_diagnostic.CA1860.severity = none
# CA1863: Use composite format
# TODO: Enable when we are .NET 8+ to avoid conditional code between net7.0 and net8.0
dotnet_diagnostic.CA1863.severity = none
dotnet_code_quality.CA1822.api_surface = private, internal
# CA1303: Do not pass literals as localized parameters
dotnet_diagnostic.CA1303.severity = none
# CA1307: Specify StringComparison for clarity
dotnet_diagnostic.CA1307.severity = none
# CA1308: Normalize strings to uppercase
dotnet_diagnostic.CA1308.severity = none
# CA1309: Use ordinal StringComparison
dotnet_diagnostic.CA1309.severity = none
# CA2101: Specify marshalling for P/Invoke string arguments
dotnet_diagnostic.CA2101.severity = none
# IDE0005: Remove unnecessary using directives
dotnet_diagnostic.IDE0005.severity = none
# IDE0055: Fix formatting
dotnet_diagnostic.IDE0055.severity = warning # Will be promoted as an error by TreatWarningsAsErrors but also allows usage of WarningsNotAsErrors in debug
# IDE0051: Remove unused private member
dotnet_diagnostic.IDE0051.severity = warning
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/mirrors/unoplatform.git
git@gitee.com:mirrors/unoplatform.git
mirrors
unoplatform
unoplatform
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385