From eadcf4b120f9177c4b53c7c098fc639114946bf1 Mon Sep 17 00:00:00 2001 From: Jeremy Sinclair <4016293+snickler@users.noreply.github.com> Date: Wed, 4 Dec 2024 12:58:36 -0500 Subject: [PATCH] [Analyzers] Update .editorconfig with rules to relax IDE errors (#36095) * [Analyzers] Remove duplicate pascal case style from .editorconfig * [Analyzers] Configured severity for individual IDE and CA rules showing as errors in VS Set severity for IDE0005, IDE0008, IDE0016, IDE0018, IDE0019, IDE0021, IDE0022, IDE0023, IDE0025, IDE0027, IDE0028, IDE0029, IDE0031, IDE0032, IDE0034, IDE0036, IDE0039, IDE0042, IDE0044, IDE0045, IDE0046, IDE0047, IDE0057, IDE0051, IDE0052, IDE0054, IDE0055, IDE0056, IDE0057, IDE0059, IDE0060, IDE0061, IDE0063, IDE0071, IDE0073, IDE0074, IDE0075, IDE0077, IDE0078, IDE0083, IDE0090, IDE0100, IDE0130, IDE160, IDE180, IDE0200, IDE0240, IDE0250, IDE0251, IDE0260, IDE0270, IDE0290, IDE0300, IDE0301, IDE0305, IDE1005, IDE1006, CA1859, CA2022, CA2263 * [Analyzers] Fix mismatched analyzer descriptions * [Analyzers] Fix misspelling * Update .editorconfig Made the following style rules `silent` instead of `suggestion`: - Use explicit type instead of 'var' - Use expression body for ... - Use block-scoped namespace * [Analyzers] Set IDE0290 to silent * [Analyzers] Remove IDE1006 configuration from .editorconfig in favor of making exclusions for the few entries * [Analyzers][Indexer] Add IDE1006 suppressions * [Analyzers][Peek] Add IDE1006 suppression * [Analyzers][MWB] Add IDE1006 suppression. * [Analyzers][Plugins] Add IDE1006 suppression * [Analyzers][ImageResizer] Suppress IDE0073 to retain original copyright * [Analyzers] Remove IDE0073 severity change in .editorconfig --------- Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com> --- src/.editorconfig | 194 ++++++++++++++++-- .../MouseWithoutBorders/App/Form/frmMatrix.cs | 1 + .../codeAnalysis/GlobalSuppressions.cs | 4 +- .../tests/Models/CustomSizeTests.cs | 2 + .../tests/Models/ResizeBatchTests.cs | 2 + .../tests/Models/ResizeOperationTests.cs | 2 + .../tests/Models/ResizeSizeTests.cs | 2 + .../tests/Properties/SettingsTests.cs | 2 + .../imageresizer/tests/Test/AssertEx.cs | 2 + .../tests/Test/BitmapSourceExtensions.cs | 4 +- .../imageresizer/tests/Test/TestDirectory.cs | 2 + .../Views/TimeRemainingConverterTests.cs | 2 + src/modules/imageresizer/ui/App.xaml.cs | 4 +- .../ui/Extensions/BitmapEncoderExtensions.cs | 4 +- .../ui/Extensions/ICollectionExtensions.cs | 4 +- .../ui/Extensions/TimeSpanExtensions.cs | 4 +- .../imageresizer/ui/Models/CustomSize.cs | 4 +- .../imageresizer/ui/Models/ResizeBatch.cs | 4 +- .../imageresizer/ui/Models/ResizeError.cs | 4 +- .../imageresizer/ui/Models/ResizeFit.cs | 4 +- .../imageresizer/ui/Models/ResizeOperation.cs | 4 +- .../imageresizer/ui/Models/ResizeSize.cs | 4 +- .../imageresizer/ui/Models/ResizeUnit.cs | 4 +- .../ui/Properties/InternalsVisibleTo.cs | 4 +- .../imageresizer/ui/Properties/Settings.cs | 4 +- .../ui/Properties/SettingsWrapper.cs | 4 +- .../ui/Properties/WrappedJsonConverter`1.cs | 4 +- .../Properties/WrappedJsonValueConverter.cs | 4 +- .../imageresizer/ui/Utilities/MathHelpers.cs | 4 +- .../ui/ViewModels/AdvancedViewModel.cs | 4 +- .../ui/ViewModels/ITabViewModel.cs | 4 +- .../ui/ViewModels/InputViewModel.cs | 4 +- .../ui/ViewModels/MainViewModel.cs | 4 +- .../ui/ViewModels/ProgressViewModel.cs | 4 +- .../ui/ViewModels/ResultsViewModel.cs | 4 +- .../ui/Views/AutoDoubleConverter.cs | 4 +- .../ui/Views/BoolValueConverter.cs | 4 +- .../ui/Views/EnumToIntConverter.cs | 4 +- .../ui/Views/EnumValueConverter.cs | 4 +- .../imageresizer/ui/Views/IMainView.cs | 4 +- .../imageresizer/ui/Views/InputPage.xaml.cs | 4 +- .../imageresizer/ui/Views/MainWindow.xaml.cs | 4 +- .../ui/Views/ProgressPage.xaml.cs | 4 +- .../imageresizer/ui/Views/ResultsPage.xaml.cs | 4 +- .../ui/Views/TiffCompressOptionConverter.cs | 4 +- .../ui/Views/TimeRemainingConverter.cs | 4 +- .../ui/Views/VisibilityBoolConverter.cs | 4 +- .../Interop/CSearchCatalogManager.cs | 1 + .../Interop/CSearchManager.cs | 1 + .../Interop/CSearchQueryHelper.cs | 1 + .../Programs/IAppxFactory.cs | 1 + .../Programs/IAppxManifestReader.cs | 2 + .../peek/Peek.Common/WIC/IWICBitmapDecoder.cs | 1 + 53 files changed, 316 insertions(+), 50 deletions(-) diff --git a/src/.editorconfig b/src/.editorconfig index 28245c30fc..c011b4a432 100644 --- a/src/.editorconfig +++ b/src/.editorconfig @@ -46,32 +46,28 @@ dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case dotnet_naming_symbols.interface.applicable_kinds = interface dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected -dotnet_naming_symbols.interface.required_modifiers = +dotnet_naming_symbols.interface.required_modifiers = dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected -dotnet_naming_symbols.types.required_modifiers = +dotnet_naming_symbols.types.required_modifiers = dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected -dotnet_naming_symbols.non_field_members.required_modifiers = +dotnet_naming_symbols.non_field_members.required_modifiers = # Naming styles dotnet_naming_style.begins_with_i.required_prefix = I -dotnet_naming_style.begins_with_i.required_suffix = -dotnet_naming_style.begins_with_i.word_separator = +dotnet_naming_style.begins_with_i.required_suffix = +dotnet_naming_style.begins_with_i.word_separator = dotnet_naming_style.begins_with_i.capitalization = pascal_case -dotnet_naming_style.pascal_case.required_prefix = -dotnet_naming_style.pascal_case.required_suffix = -dotnet_naming_style.pascal_case.word_separator = +dotnet_naming_style.pascal_case.required_prefix = +dotnet_naming_style.pascal_case.required_suffix = +dotnet_naming_style.pascal_case.word_separator = dotnet_naming_style.pascal_case.capitalization = pascal_case -dotnet_naming_style.pascal_case.required_prefix = -dotnet_naming_style.pascal_case.required_suffix = -dotnet_naming_style.pascal_case.word_separator = -dotnet_naming_style.pascal_case.capitalization = pascal_case dotnet_style_coalesce_expression = true:suggestion dotnet_style_null_propagation = true:suggestion dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion @@ -96,4 +92,176 @@ end_of_line = crlf dotnet_diagnostic.IDE0065.severity = none # IDE0009: Add this or Me qualification -dotnet_diagnostic.IDE0009.severity = none \ No newline at end of file +dotnet_diagnostic.IDE0009.severity = none + +# IDE-based code analysis rules +# IDE0005: Remove unnecessary import +dotnet_diagnostic.IDE0005.severity = suggestion + +# IDE0008: Use explicit type instead of 'var' +dotnet_diagnostic.IDE0008.severity = silent + +# IDE0016: Use throw expression +dotnet_diagnostic.IDE0016.severity = suggestion + +# IDE0018: Inline variable declaration +dotnet_diagnostic.IDE0018.severity = suggestion + +# IDE0019: Use pattern matching +dotnet_diagnostic.IDE0019.severity = suggestion + +# IDE0021: Use expression body for constructors +dotnet_diagnostic.IDE0021.severity = silent + +# IDE0022: Use expression body for methods +dotnet_diagnostic.IDE0022.severity = silent + +# IDE0023: Use expression body for conversion operators +dotnet_diagnostic.IDE0023.severity = silent + +# IDE0025: Use expression body for properties +dotnet_diagnostic.IDE0025.severity = silent + +# IDE0027: Use expression body for accessors +dotnet_diagnostic.IDE0027.severity = silent + +# IDE0028: Use collection initializers +dotnet_diagnostic.IDE0028.severity = suggestion + +# IDE0029: Null check can be simplified +dotnet_diagnostic.IDE0029.severity = suggestion + +# IDE0031: Use null propagation +dotnet_diagnostic.IDE0031.severity = suggestion + +# IDE0032: Use auto property +dotnet_diagnostic.IDE0032.severity = suggestion + +# IDE0034: Simplify default expression +dotnet_diagnostic.IDE0034.severity = suggestion + +# IDE0036: Order modifiers +dotnet_diagnostic.IDE0036.severity = suggestion + +# IDE0039: Use local function instead of lambda +dotnet_diagnostic.IDE0039.severity = suggestion + +# IDE0042: Deconstruct variable declaration +dotnet_diagnostic.IDE0042.severity = suggestion + +# IDE0044: Add readonly modifier +dotnet_diagnostic.IDE0044.severity = suggestion + +# IDE0045: Use conditional expression for assignment +dotnet_diagnostic.IDE0045.severity = suggestion + +# IDE0046: Use conditional expression for return +dotnet_diagnostic.IDE0046.severity = suggestion + +# IDE0047: Remove unnecessary parentheses +dotnet_diagnostic.IDE0047.severity = suggestion + +# IDE0051: Remove unused private member +dotnet_diagnostic.IDE0051.severity = suggestion + +# IDE0052: Remove unread private member +dotnet_diagnostic.IDE0052.severity = suggestion + +# IDE0054: Use compound assignment +dotnet_diagnostic.IDE0054.severity = suggestion + +# IDE0055: Fix formatting +dotnet_diagnostic.IDE0055.severity = suggestion + +# IDE0056: Use index operator +dotnet_diagnostic.IDE0056.severity = suggestion + +# IDE0057: Use range operator +dotnet_diagnostic.IDE0057.severity = suggestion + +# IDE0059: Remove unnecessary value assignment +dotnet_diagnostic.IDE0059.severity = suggestion + +# IDE0060: Remove unused parameter +dotnet_diagnostic.IDE0060.severity = suggestion + +# IDE0061: Use expression body for local functions +dotnet_diagnostic.IDE0061.severity = silent + +# IDE0063: Use simple 'using' statement +dotnet_diagnostic.IDE0063.severity = suggestion + +# IDE0071: Simplify interpolation +dotnet_diagnostic.IDE0071.severity = suggestion + +# IDE0074: Use coalesce compound assignment +dotnet_diagnostic.IDE0074.severity = suggestion + +# IDE0075: Simplify conditional expression +dotnet_diagnostic.IDE0075.severity = suggestion + +# IDE0077: Avoid legacy format target in global 'SuppressMessageAttribute' +dotnet_diagnostic.IDE0077.severity = suggestion + +# IDE0078: Use pattern matching +dotnet_diagnostic.IDE0078.severity = suggestion + +# IDE0083: Use pattern matching ('not' operator) +dotnet_diagnostic.IDE0083.severity = suggestion + +# IDE0090: Simplify 'new' expression +dotnet_diagnostic.IDE0090.severity = suggestion + +# IDE0100: Remove unnecessary equality operator +dotnet_diagnostic.IDE0100.severity = suggestion + +# IDE0130: Namespace does not match folder structure +dotnet_diagnostic.IDE0130.severity = suggestion + +# IDE0160: Use block-scoped namespace +dotnet_diagnostic.IDE0160.severity = silent + +# IDE0180: Use tuple to swap values +dotnet_diagnostic.IDE0180.severity = suggestion + +# IDE0200: Remove unnecessary lambda expression +dotnet_diagnostic.IDE0200.severity = suggestion + +# IDE0240: Nullable directive is redundant +dotnet_diagnostic.IDE0240.severity = suggestion + +# IDE0250: Struct can be made 'readonly' +dotnet_diagnostic.IDE0250.severity = suggestion + +# IDE0251: Member can be made 'readonly'' +dotnet_diagnostic.IDE0251.severity = suggestion + +# IDE0260: Use pattern matching +dotnet_diagnostic.IDE0260.severity = suggestion + +# IDE0270: Null check can be simplified +dotnet_diagnostic.IDE0270.severity = suggestion + +# IDE0290: Use primary constructor +dotnet_diagnostic.IDE0290.severity = silent + +# IDE0300: Use collection expression for array +dotnet_diagnostic.IDE0300.severity = suggestion + +# IDE0301: Use collection expression for empty +dotnet_diagnostic.IDE0301.severity = suggestion + +# IDE0305: Use collection expression for fluent +dotnet_diagnostic.IDE0305.severity = suggestion + +# IDE1005: Use conditional delegate call +dotnet_diagnostic.IDE1005.severity = suggestion + +# CA1859: Use concrete types when possible for improved performance +dotnet_diagnostic.CA1859.severity = suggestion + +# CA2202: Avoid inexact read with Stream.Read +dotnet_diagnostic.CA2022.severity = suggestion + +# CA2263: Prefer generic overload when type is known +dotnet_diagnostic.CA2263.severity = suggestion diff --git a/src/modules/MouseWithoutBorders/App/Form/frmMatrix.cs b/src/modules/MouseWithoutBorders/App/Form/frmMatrix.cs index fff0199069..7d4e2da3fa 100644 --- a/src/modules/MouseWithoutBorders/App/Form/frmMatrix.cs +++ b/src/modules/MouseWithoutBorders/App/Form/frmMatrix.cs @@ -33,6 +33,7 @@ using Timer = System.Windows.Forms.Timer; [module: SuppressMessage("Microsoft.Usage", "CA2213:DisposableFieldsShouldBeDisposed", Scope = "member", Target = "MouseWithoutBorders.frmMatrix.#Dispose(System.Boolean)", MessageId = "logoBitmap", Justification = "Dotnet port with style preservation")] [module: SuppressMessage("Microsoft.Mobility", "CA1601:DoNotUseTimersThatPreventPowerStateChanges", Scope = "member", Target = "MouseWithoutBorders.frmMatrix.#frmMatrix_Shown(System.Object,System.EventArgs)", Justification = "Dotnet port with style preservation")] [module: SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Scope = "member", Target = "MouseWithoutBorders.frmMatrix.#PaintMyLogo()", Justification = "Dotnet port with style preservation")] +[module: SuppressMessage("Style", "IDE1006:Naming Styles", Scope = "member", Target = "~M:MouseWithoutBorders.FrmMatrix.M_EnabledChanged(System.Object,System.EventArgs)", Justification = "Dotnet port with style preservation")] namespace MouseWithoutBorders { diff --git a/src/modules/imageresizer/codeAnalysis/GlobalSuppressions.cs b/src/modules/imageresizer/codeAnalysis/GlobalSuppressions.cs index 0c41e79839..34ceb00539 100644 --- a/src/modules/imageresizer/codeAnalysis/GlobalSuppressions.cs +++ b/src/modules/imageresizer/codeAnalysis/GlobalSuppressions.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 // This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. diff --git a/src/modules/imageresizer/tests/Models/CustomSizeTests.cs b/src/modules/imageresizer/tests/Models/CustomSizeTests.cs index a3382fa949..10b905bfc4 100644 --- a/src/modules/imageresizer/tests/Models/CustomSizeTests.cs +++ b/src/modules/imageresizer/tests/Models/CustomSizeTests.cs @@ -1,6 +1,8 @@ +#pragma warning disable IDE0073 // Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using ImageResizer.Properties; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/src/modules/imageresizer/tests/Models/ResizeBatchTests.cs b/src/modules/imageresizer/tests/Models/ResizeBatchTests.cs index 90722cf023..36a17ceb19 100644 --- a/src/modules/imageresizer/tests/Models/ResizeBatchTests.cs +++ b/src/modules/imageresizer/tests/Models/ResizeBatchTests.cs @@ -1,6 +1,8 @@ +#pragma warning disable IDE0073 // Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Collections.Concurrent; diff --git a/src/modules/imageresizer/tests/Models/ResizeOperationTests.cs b/src/modules/imageresizer/tests/Models/ResizeOperationTests.cs index 870ee78e2d..d1eeae664e 100644 --- a/src/modules/imageresizer/tests/Models/ResizeOperationTests.cs +++ b/src/modules/imageresizer/tests/Models/ResizeOperationTests.cs @@ -1,6 +1,8 @@ +#pragma warning disable IDE0073 // Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.IO; diff --git a/src/modules/imageresizer/tests/Models/ResizeSizeTests.cs b/src/modules/imageresizer/tests/Models/ResizeSizeTests.cs index 83e527b042..13c99131ac 100644 --- a/src/modules/imageresizer/tests/Models/ResizeSizeTests.cs +++ b/src/modules/imageresizer/tests/Models/ResizeSizeTests.cs @@ -1,6 +1,8 @@ +#pragma warning disable IDE0073 // Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Collections.Generic; diff --git a/src/modules/imageresizer/tests/Properties/SettingsTests.cs b/src/modules/imageresizer/tests/Properties/SettingsTests.cs index 563055ffa8..ed182556a3 100644 --- a/src/modules/imageresizer/tests/Properties/SettingsTests.cs +++ b/src/modules/imageresizer/tests/Properties/SettingsTests.cs @@ -1,6 +1,8 @@ +#pragma warning disable IDE0073 // Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System.Collections.Specialized; using System.ComponentModel; diff --git a/src/modules/imageresizer/tests/Test/AssertEx.cs b/src/modules/imageresizer/tests/Test/AssertEx.cs index b34ba02dbc..4cb9a2067b 100644 --- a/src/modules/imageresizer/tests/Test/AssertEx.cs +++ b/src/modules/imageresizer/tests/Test/AssertEx.cs @@ -1,6 +1,8 @@ +#pragma warning disable IDE0073 // Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Collections.Generic; diff --git a/src/modules/imageresizer/tests/Test/BitmapSourceExtensions.cs b/src/modules/imageresizer/tests/Test/BitmapSourceExtensions.cs index c226ff6637..ed25e800f4 100644 --- a/src/modules/imageresizer/tests/Test/BitmapSourceExtensions.cs +++ b/src/modules/imageresizer/tests/Test/BitmapSourceExtensions.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System.Windows; using System.Windows.Media; diff --git a/src/modules/imageresizer/tests/Test/TestDirectory.cs b/src/modules/imageresizer/tests/Test/TestDirectory.cs index 022eee7638..0095a5da17 100644 --- a/src/modules/imageresizer/tests/Test/TestDirectory.cs +++ b/src/modules/imageresizer/tests/Test/TestDirectory.cs @@ -1,6 +1,8 @@ +#pragma warning disable IDE0073 // Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Collections.Generic; diff --git a/src/modules/imageresizer/tests/Views/TimeRemainingConverterTests.cs b/src/modules/imageresizer/tests/Views/TimeRemainingConverterTests.cs index a7731ce5bf..5ae1cf5f10 100644 --- a/src/modules/imageresizer/tests/Views/TimeRemainingConverterTests.cs +++ b/src/modules/imageresizer/tests/Views/TimeRemainingConverterTests.cs @@ -1,6 +1,8 @@ +#pragma warning disable IDE0073 // Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Globalization; diff --git a/src/modules/imageresizer/ui/App.xaml.cs b/src/modules/imageresizer/ui/App.xaml.cs index 33e2240614..e2b87d7746 100644 --- a/src/modules/imageresizer/ui/App.xaml.cs +++ b/src/modules/imageresizer/ui/App.xaml.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Globalization; diff --git a/src/modules/imageresizer/ui/Extensions/BitmapEncoderExtensions.cs b/src/modules/imageresizer/ui/Extensions/BitmapEncoderExtensions.cs index 78bcdb1098..963f6f15cc 100644 --- a/src/modules/imageresizer/ui/Extensions/BitmapEncoderExtensions.cs +++ b/src/modules/imageresizer/ui/Extensions/BitmapEncoderExtensions.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 namespace System.Windows.Media.Imaging { diff --git a/src/modules/imageresizer/ui/Extensions/ICollectionExtensions.cs b/src/modules/imageresizer/ui/Extensions/ICollectionExtensions.cs index 05008f920b..11d11ddc22 100644 --- a/src/modules/imageresizer/ui/Extensions/ICollectionExtensions.cs +++ b/src/modules/imageresizer/ui/Extensions/ICollectionExtensions.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 namespace System.Collections.Generic { diff --git a/src/modules/imageresizer/ui/Extensions/TimeSpanExtensions.cs b/src/modules/imageresizer/ui/Extensions/TimeSpanExtensions.cs index f0bc48074a..252a67f0ff 100644 --- a/src/modules/imageresizer/ui/Extensions/TimeSpanExtensions.cs +++ b/src/modules/imageresizer/ui/Extensions/TimeSpanExtensions.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 namespace System { diff --git a/src/modules/imageresizer/ui/Models/CustomSize.cs b/src/modules/imageresizer/ui/Models/CustomSize.cs index 8dbb3cd124..bc4e73557a 100644 --- a/src/modules/imageresizer/ui/Models/CustomSize.cs +++ b/src/modules/imageresizer/ui/Models/CustomSize.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System.Text.Json.Serialization; diff --git a/src/modules/imageresizer/ui/Models/ResizeBatch.cs b/src/modules/imageresizer/ui/Models/ResizeBatch.cs index dfe05360f3..1181395c09 100644 --- a/src/modules/imageresizer/ui/Models/ResizeBatch.cs +++ b/src/modules/imageresizer/ui/Models/ResizeBatch.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Collections.Concurrent; diff --git a/src/modules/imageresizer/ui/Models/ResizeError.cs b/src/modules/imageresizer/ui/Models/ResizeError.cs index 2d63a30349..89d5550f03 100644 --- a/src/modules/imageresizer/ui/Models/ResizeError.cs +++ b/src/modules/imageresizer/ui/Models/ResizeError.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 namespace ImageResizer.Models { diff --git a/src/modules/imageresizer/ui/Models/ResizeFit.cs b/src/modules/imageresizer/ui/Models/ResizeFit.cs index 6f880114a9..955d0b0ac3 100644 --- a/src/modules/imageresizer/ui/Models/ResizeFit.cs +++ b/src/modules/imageresizer/ui/Models/ResizeFit.cs @@ -1,7 +1,9 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 namespace ImageResizer.Models { diff --git a/src/modules/imageresizer/ui/Models/ResizeOperation.cs b/src/modules/imageresizer/ui/Models/ResizeOperation.cs index 0878459e7b..2c81076012 100644 --- a/src/modules/imageresizer/ui/Models/ResizeOperation.cs +++ b/src/modules/imageresizer/ui/Models/ResizeOperation.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Diagnostics; diff --git a/src/modules/imageresizer/ui/Models/ResizeSize.cs b/src/modules/imageresizer/ui/Models/ResizeSize.cs index 4ecdd1036c..ebfca83963 100644 --- a/src/modules/imageresizer/ui/Models/ResizeSize.cs +++ b/src/modules/imageresizer/ui/Models/ResizeSize.cs @@ -1,7 +1,9 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System.Collections.Generic; using System.Diagnostics; diff --git a/src/modules/imageresizer/ui/Models/ResizeUnit.cs b/src/modules/imageresizer/ui/Models/ResizeUnit.cs index 13ef1f63df..31851a7806 100644 --- a/src/modules/imageresizer/ui/Models/ResizeUnit.cs +++ b/src/modules/imageresizer/ui/Models/ResizeUnit.cs @@ -1,7 +1,9 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 namespace ImageResizer.Models { diff --git a/src/modules/imageresizer/ui/Properties/InternalsVisibleTo.cs b/src/modules/imageresizer/ui/Properties/InternalsVisibleTo.cs index 2fe9c52886..b2793599f5 100644 --- a/src/modules/imageresizer/ui/Properties/InternalsVisibleTo.cs +++ b/src/modules/imageresizer/ui/Properties/InternalsVisibleTo.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System.Runtime.CompilerServices; diff --git a/src/modules/imageresizer/ui/Properties/Settings.cs b/src/modules/imageresizer/ui/Properties/Settings.cs index 3150f9768f..ff31ddcc3f 100644 --- a/src/modules/imageresizer/ui/Properties/Settings.cs +++ b/src/modules/imageresizer/ui/Properties/Settings.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Collections; diff --git a/src/modules/imageresizer/ui/Properties/SettingsWrapper.cs b/src/modules/imageresizer/ui/Properties/SettingsWrapper.cs index 0c40ddf8ef..638860e3fc 100644 --- a/src/modules/imageresizer/ui/Properties/SettingsWrapper.cs +++ b/src/modules/imageresizer/ui/Properties/SettingsWrapper.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System.Text.Json.Serialization; diff --git a/src/modules/imageresizer/ui/Properties/WrappedJsonConverter`1.cs b/src/modules/imageresizer/ui/Properties/WrappedJsonConverter`1.cs index e4cbc98e8b..e6ce293d1e 100644 --- a/src/modules/imageresizer/ui/Properties/WrappedJsonConverter`1.cs +++ b/src/modules/imageresizer/ui/Properties/WrappedJsonConverter`1.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Text.Json; diff --git a/src/modules/imageresizer/ui/Properties/WrappedJsonValueConverter.cs b/src/modules/imageresizer/ui/Properties/WrappedJsonValueConverter.cs index 62b2d0598a..c21af6e926 100644 --- a/src/modules/imageresizer/ui/Properties/WrappedJsonValueConverter.cs +++ b/src/modules/imageresizer/ui/Properties/WrappedJsonValueConverter.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Text.Json; diff --git a/src/modules/imageresizer/ui/Utilities/MathHelpers.cs b/src/modules/imageresizer/ui/Utilities/MathHelpers.cs index 7973b2cfc9..22ddc37aca 100644 --- a/src/modules/imageresizer/ui/Utilities/MathHelpers.cs +++ b/src/modules/imageresizer/ui/Utilities/MathHelpers.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; diff --git a/src/modules/imageresizer/ui/ViewModels/AdvancedViewModel.cs b/src/modules/imageresizer/ui/ViewModels/AdvancedViewModel.cs index 08dc5d04c9..a4792e529e 100644 --- a/src/modules/imageresizer/ui/ViewModels/AdvancedViewModel.cs +++ b/src/modules/imageresizer/ui/ViewModels/AdvancedViewModel.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Collections.Generic; diff --git a/src/modules/imageresizer/ui/ViewModels/ITabViewModel.cs b/src/modules/imageresizer/ui/ViewModels/ITabViewModel.cs index 4db87c0dcb..62ef93beab 100644 --- a/src/modules/imageresizer/ui/ViewModels/ITabViewModel.cs +++ b/src/modules/imageresizer/ui/ViewModels/ITabViewModel.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 namespace ImageResizer.ViewModels { diff --git a/src/modules/imageresizer/ui/ViewModels/InputViewModel.cs b/src/modules/imageresizer/ui/ViewModels/InputViewModel.cs index 03986342b3..54728defd4 100644 --- a/src/modules/imageresizer/ui/ViewModels/InputViewModel.cs +++ b/src/modules/imageresizer/ui/ViewModels/InputViewModel.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Collections.Generic; diff --git a/src/modules/imageresizer/ui/ViewModels/MainViewModel.cs b/src/modules/imageresizer/ui/ViewModels/MainViewModel.cs index de921ba89d..d92753edba 100644 --- a/src/modules/imageresizer/ui/ViewModels/MainViewModel.cs +++ b/src/modules/imageresizer/ui/ViewModels/MainViewModel.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System.Collections.Generic; using System.Windows.Input; diff --git a/src/modules/imageresizer/ui/ViewModels/ProgressViewModel.cs b/src/modules/imageresizer/ui/ViewModels/ProgressViewModel.cs index a1b8bc6c1b..095c3a795e 100644 --- a/src/modules/imageresizer/ui/ViewModels/ProgressViewModel.cs +++ b/src/modules/imageresizer/ui/ViewModels/ProgressViewModel.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Diagnostics; diff --git a/src/modules/imageresizer/ui/ViewModels/ResultsViewModel.cs b/src/modules/imageresizer/ui/ViewModels/ResultsViewModel.cs index eb5f8a0f50..854981479d 100644 --- a/src/modules/imageresizer/ui/ViewModels/ResultsViewModel.cs +++ b/src/modules/imageresizer/ui/ViewModels/ResultsViewModel.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System.Collections.Generic; using System.Windows.Input; diff --git a/src/modules/imageresizer/ui/Views/AutoDoubleConverter.cs b/src/modules/imageresizer/ui/Views/AutoDoubleConverter.cs index bdf950c345..69f886036b 100644 --- a/src/modules/imageresizer/ui/Views/AutoDoubleConverter.cs +++ b/src/modules/imageresizer/ui/Views/AutoDoubleConverter.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Globalization; diff --git a/src/modules/imageresizer/ui/Views/BoolValueConverter.cs b/src/modules/imageresizer/ui/Views/BoolValueConverter.cs index d8b0ac6d25..ac59068a28 100644 --- a/src/modules/imageresizer/ui/Views/BoolValueConverter.cs +++ b/src/modules/imageresizer/ui/Views/BoolValueConverter.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Globalization; diff --git a/src/modules/imageresizer/ui/Views/EnumToIntConverter.cs b/src/modules/imageresizer/ui/Views/EnumToIntConverter.cs index fcfd151c77..a48030c2cc 100644 --- a/src/modules/imageresizer/ui/Views/EnumToIntConverter.cs +++ b/src/modules/imageresizer/ui/Views/EnumToIntConverter.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Globalization; diff --git a/src/modules/imageresizer/ui/Views/EnumValueConverter.cs b/src/modules/imageresizer/ui/Views/EnumValueConverter.cs index a579a77f0a..76ed5e2c23 100644 --- a/src/modules/imageresizer/ui/Views/EnumValueConverter.cs +++ b/src/modules/imageresizer/ui/Views/EnumValueConverter.cs @@ -1,7 +1,9 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Globalization; diff --git a/src/modules/imageresizer/ui/Views/IMainView.cs b/src/modules/imageresizer/ui/Views/IMainView.cs index fcd59d11b3..cfbfd014ad 100644 --- a/src/modules/imageresizer/ui/Views/IMainView.cs +++ b/src/modules/imageresizer/ui/Views/IMainView.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System.Collections.Generic; diff --git a/src/modules/imageresizer/ui/Views/InputPage.xaml.cs b/src/modules/imageresizer/ui/Views/InputPage.xaml.cs index a118faceeb..b7dec222d5 100644 --- a/src/modules/imageresizer/ui/Views/InputPage.xaml.cs +++ b/src/modules/imageresizer/ui/Views/InputPage.xaml.cs @@ -1,7 +1,9 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System.Windows.Controls; using System.Windows.Input; diff --git a/src/modules/imageresizer/ui/Views/MainWindow.xaml.cs b/src/modules/imageresizer/ui/Views/MainWindow.xaml.cs index 82eb5c1b3a..c64a43552c 100644 --- a/src/modules/imageresizer/ui/Views/MainWindow.xaml.cs +++ b/src/modules/imageresizer/ui/Views/MainWindow.xaml.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Collections.Generic; diff --git a/src/modules/imageresizer/ui/Views/ProgressPage.xaml.cs b/src/modules/imageresizer/ui/Views/ProgressPage.xaml.cs index 7437f2b3a2..a0dd9202d7 100644 --- a/src/modules/imageresizer/ui/Views/ProgressPage.xaml.cs +++ b/src/modules/imageresizer/ui/Views/ProgressPage.xaml.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System.Windows.Controls; diff --git a/src/modules/imageresizer/ui/Views/ResultsPage.xaml.cs b/src/modules/imageresizer/ui/Views/ResultsPage.xaml.cs index 1da8cd1a47..295211c3b1 100644 --- a/src/modules/imageresizer/ui/Views/ResultsPage.xaml.cs +++ b/src/modules/imageresizer/ui/Views/ResultsPage.xaml.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System.Windows.Controls; diff --git a/src/modules/imageresizer/ui/Views/TiffCompressOptionConverter.cs b/src/modules/imageresizer/ui/Views/TiffCompressOptionConverter.cs index ebc49faa9a..419cb2746f 100644 --- a/src/modules/imageresizer/ui/Views/TiffCompressOptionConverter.cs +++ b/src/modules/imageresizer/ui/Views/TiffCompressOptionConverter.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Globalization; diff --git a/src/modules/imageresizer/ui/Views/TimeRemainingConverter.cs b/src/modules/imageresizer/ui/Views/TimeRemainingConverter.cs index 5b1003d8b0..b862f85dc7 100644 --- a/src/modules/imageresizer/ui/Views/TimeRemainingConverter.cs +++ b/src/modules/imageresizer/ui/Views/TimeRemainingConverter.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Globalization; diff --git a/src/modules/imageresizer/ui/Views/VisibilityBoolConverter.cs b/src/modules/imageresizer/ui/Views/VisibilityBoolConverter.cs index 1ebfdaa751..3369c56cfd 100644 --- a/src/modules/imageresizer/ui/Views/VisibilityBoolConverter.cs +++ b/src/modules/imageresizer/ui/Views/VisibilityBoolConverter.cs @@ -1,6 +1,8 @@ -// Copyright (c) Brice Lambson +#pragma warning disable IDE0073 +// Copyright (c) Brice Lambson // The Brice Lambson licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/ +#pragma warning restore IDE0073 using System; using System.Globalization; diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Interop/CSearchCatalogManager.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Interop/CSearchCatalogManager.cs index 50456b552f..80f0d74cd2 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Interop/CSearchCatalogManager.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Interop/CSearchCatalogManager.cs @@ -11,6 +11,7 @@ namespace Microsoft.Plugin.Indexer.Interop [ComImport] [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1715:Identifiers should have correct prefix", Justification = "Using original name from type lib")] [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.NamingRules", "SA1302:Interface names should begin with I", Justification = "Using original name from type lib")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "Using original name from type lib")] public interface CSearchCatalogManager : ISearchCatalogManager { } diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Interop/CSearchManager.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Interop/CSearchManager.cs index c603149bec..8fe3c725c4 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Interop/CSearchManager.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Interop/CSearchManager.cs @@ -11,6 +11,7 @@ namespace Microsoft.Plugin.Indexer.Interop [ComImport] [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1715:Identifiers should have correct prefix", Justification = "Using original name from type lib")] [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.NamingRules", "SA1302:Interface names should begin with I", Justification = "Using original name from type lib")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "Using original name from type lib")] public interface CSearchManager : ISearchManager { } diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Interop/CSearchQueryHelper.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Interop/CSearchQueryHelper.cs index 2c2dcf7858..cdc0acb164 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Interop/CSearchQueryHelper.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/Interop/CSearchQueryHelper.cs @@ -11,6 +11,7 @@ namespace Microsoft.Plugin.Indexer.Interop [ComImport] [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1715:Identifiers should have correct prefix", Justification = "Using original name from type lib")] [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.NamingRules", "SA1302:Interface names should begin with I", Justification = "Using original name from type lib")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "Using original name from type lib")] public interface CSearchQueryHelper : ISearchQueryHelper { } diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/IAppxFactory.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/IAppxFactory.cs index cca59e99ad..3de0aaf17a 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/IAppxFactory.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/IAppxFactory.cs @@ -13,6 +13,7 @@ namespace Microsoft.Plugin.Program.Programs public interface IAppxFactory { [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.NamingRules", "SA1300:Element should begin with upper-case letter", Justification = "Implements COM Interface")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "Implements COM Interface")] void _VtblGap0_2(); // skip 2 methods IAppxManifestReader CreateManifestReader(IStream inputStream); diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/IAppxManifestReader.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/IAppxManifestReader.cs index 5557e93ddc..baba46cfe5 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/IAppxManifestReader.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/IAppxManifestReader.cs @@ -12,11 +12,13 @@ namespace Microsoft.Plugin.Program.Programs public interface IAppxManifestReader { [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.NamingRules", "SA1300:Element should begin with upper-case letter", Justification = "Implements COM Interface")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "Implements COM Interface")] void _VtblGap0_1(); // skip 1 method IAppxManifestProperties GetProperties(); [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.NamingRules", "SA1300:Element should begin with upper-case letter", Justification = "Implements COM Interface")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "Implements COM Interface")] void _VtblGap1_5(); // skip 5 methods IAppxManifestApplicationsEnumerator GetApplications(); diff --git a/src/modules/peek/Peek.Common/WIC/IWICBitmapDecoder.cs b/src/modules/peek/Peek.Common/WIC/IWICBitmapDecoder.cs index b9c42057ac..ff3afb072a 100644 --- a/src/modules/peek/Peek.Common/WIC/IWICBitmapDecoder.cs +++ b/src/modules/peek/Peek.Common/WIC/IWICBitmapDecoder.cs @@ -13,6 +13,7 @@ namespace Peek.Common.WIC public interface IWICBitmapDecoder { [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.NamingRules", "SA1300:Element should begin with upper-case letter", Justification = "Implements COM Interface")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "Implements COM Interface")] void _VtblGap1_10(); // skip 10 methods IWICBitmapFrameDecode GetFrame([In] int index);