diff --git a/.editorconfig b/.editorconfig index 8c3845c..0808675 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,6 +7,18 @@ end_of_line = lf charset = utf-8 trim_trailing_whitespace = true +[*.cs] +dotnet_analyzer_diagnostic.severity = warning +dotnet_diagnostic.IDE0008.severity = none +dotnet_diagnostic.IDE0055.severity = none +dotnet_diagnostic.IDE0160.severity = none +dotnet_diagnostic.CA1707.severity = none +dotnet_diagnostic.IDE0048.severity = none +dotnet_diagnostic.IDE0058.severity = none +dotnet_diagnostic.IDE0017.severity = none +dotnet_diagnostic.CA5350.severity = none +dotnet_diagnostic.CA5351.severity = none + # ReSharper properties resharper_align_linq_query = true @@ -35,6 +47,7 @@ resharper_indent_preprocessor_other = usual_indent resharper_int_align = true resharper_keep_existing_arrangement = false resharper_place_linq_into_on_new_line = false +resharper_place_simple_embedded_statement_on_same_line = false resharper_place_simple_switch_expression_on_single_line = true resharper_wrap_before_eq = true resharper_wrap_chained_method_calls = chop_if_long diff --git a/SonarqubleAnalyzer.props b/SonarqubleAnalyzer.props deleted file mode 100644 index 43a4aff..0000000 --- a/SonarqubleAnalyzer.props +++ /dev/null @@ -1,8 +0,0 @@ - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - \ No newline at end of file diff --git a/dot.sln b/dot.sln index a06fe81..1a36ef8 100644 --- a/dot.sln +++ b/dot.sln @@ -17,7 +17,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "meta", "meta", "{AD79881E-7 CodeCleanupOnSave.csx = CodeCleanupOnSave.csx Directory.Build.props = Directory.Build.props dot.sln.DotSettings = dot.sln.DotSettings - dot.sln.DotSettings.user = dot.sln.DotSettings.user dotnet-tools.json = dotnet-tools.json GenerateResx.targets = GenerateResx.targets git-clean.cmd = git-clean.cmd @@ -27,7 +26,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "meta", "meta", "{AD79881E-7 README.md = README.md README.zh-CN.md = README.zh-CN.md SafetyDelUnusedResx.ahk = SafetyDelUnusedResx.ahk - SonarqubleAnalyzer.props = SonarqubleAnalyzer.props switch-nuget.cmd = switch-nuget.cmd switch-project.cmd = switch-project.cmd switcher.json = switcher.json diff --git a/dot.sln.DotSettings b/dot.sln.DotSettings index 205c3ab..fdb713b 100644 --- a/dot.sln.DotSettings +++ b/dot.sln.DotSettings @@ -1,6 +1,12 @@ + Required + Required + Required + Required <?xml version="1.0" encoding="utf-16"?> <Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"> <TypePattern> diff --git a/src/Color/Main.cs b/src/Color/Main.cs index 889b509..eb98533 100644 --- a/src/Color/Main.cs +++ b/src/Color/Main.cs @@ -1,10 +1,14 @@ // ReSharper disable ClassNeverInstantiated.Global +using System.Runtime.InteropServices; +using System.Runtime.Versioning; + #if NET7_0_WINDOWS namespace Dot.Color; [Description(nameof(Str.ScreenPixelTool))] [Localization(typeof(Str))] +[SupportedOSPlatform(nameof(OSPlatform.Windows))] internal sealed class Main : ToolBase