diff --git a/src/PriceCheck/PriceCheck.csproj b/src/PriceCheck/PriceCheck.csproj index ac6e6b5..dd0b4ed 100644 --- a/src/PriceCheck/PriceCheck.csproj +++ b/src/PriceCheck/PriceCheck.csproj @@ -95,7 +95,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/PriceCheck/PriceCheck/Configuration/PriceCheckConfig.cs b/src/PriceCheck/PriceCheck/Configuration/PriceCheckConfig.cs index 175d3c3..12052f6 100644 --- a/src/PriceCheck/PriceCheck/Configuration/PriceCheckConfig.cs +++ b/src/PriceCheck/PriceCheck/Configuration/PriceCheckConfig.cs @@ -2,6 +2,7 @@ using Dalamud.Game.Text; +// ReSharper disable UseCollectionExpression namespace PriceCheck { /// @@ -142,12 +143,12 @@ public abstract class PriceCheckConfig /// /// Gets or sets list of items to show above. /// - public List ShowContextAboveThis { get; set; } = new(); + public List ShowContextAboveThis { get; set; } = new (); /// /// Gets or sets list of items to show below. /// - public List ShowContextBelowThis { get; set; } = new(); + public List ShowContextBelowThis { get; set; } = new (); /// /// Gets or sets chat channel to use for price check messages. diff --git a/src/PriceCheck/PriceCheck/Model/PriceMode.cs b/src/PriceCheck/PriceCheck/Model/PriceMode.cs index 80edc36..537187d 100644 --- a/src/PriceCheck/PriceCheck/Model/PriceMode.cs +++ b/src/PriceCheck/PriceCheck/Model/PriceMode.cs @@ -3,6 +3,7 @@ using CheapLoc; +// ReSharper disable UseCollectionExpression namespace PriceCheck { /// @@ -13,17 +14,17 @@ public class PriceMode /// /// List of price modes. /// - public static readonly List PriceModes = new(); + public static readonly List PriceModes = new (); /// /// List of price mode names. /// - public static readonly List PriceModeNames = new(); + public static readonly List PriceModeNames = new (); /// /// Price mode: historical average. /// - public static readonly PriceMode AveragePrice = new( + public static readonly PriceMode AveragePrice = new ( 0, Loc.Localize("AveragePrice", "Average Price"), Loc.Localize("AveragePriceDesc", "The average sale price in recent sale history with outliers removed beyond three standard deviations of the mean.")); @@ -31,7 +32,7 @@ public class PriceMode /// /// Price mode: current average. /// - public static readonly PriceMode CurrentAveragePrice = new( + public static readonly PriceMode CurrentAveragePrice = new ( 1, Loc.Localize("CurrentAveragePrice", "Current Average Price"), Loc.Localize("CurrentAveragePriceDesc", "The average sale price in current listings with outliers removed beyond three standard deviations of the mean.")); @@ -39,7 +40,7 @@ public class PriceMode /// /// Price mode: minimum price. /// - public static readonly PriceMode MinimumPrice = new( + public static readonly PriceMode MinimumPrice = new ( 2, Loc.Localize("MinimumPrice", "Minimum Price"), Loc.Localize("MinimumPriceDesc", "The minimum price in current listings.")); @@ -47,7 +48,7 @@ public class PriceMode /// /// Price mode: maximum price. /// - public static readonly PriceMode MaximumPrice = new( + public static readonly PriceMode MaximumPrice = new ( 3, Loc.Localize("MaximumPrice", "Maximum Price"), Loc.Localize("MaximumPriceDesc", "The maximum price in current listings.")); @@ -55,7 +56,7 @@ public class PriceMode /// /// Price mode: current minimum price. /// - public static readonly PriceMode CurrentMinimumPrice = new( + public static readonly PriceMode CurrentMinimumPrice = new ( 4, Loc.Localize("CurrentMinimumPrice", "Current Minimum Price"), Loc.Localize("CurrentMinimumPriceDesc", "The minimum price in current listings across both normal and high quality items.")); diff --git a/src/PriceCheck/PriceCheck/Service/PriceService.cs b/src/PriceCheck/PriceCheck/Service/PriceService.cs index 14629b4..f92796b 100644 --- a/src/PriceCheck/PriceCheck/Service/PriceService.cs +++ b/src/PriceCheck/PriceCheck/Service/PriceService.cs @@ -20,8 +20,8 @@ namespace PriceCheck public class PriceService { private readonly PriceCheckPlugin plugin; - private readonly List pricedItems = new(); - private readonly object locker = new(); + private readonly List pricedItems = new (); + private readonly object locker = new (); /// /// Initializes a new instance of the class. diff --git a/src/PriceCheck/packages.lock.json b/src/PriceCheck/packages.lock.json index 7fe492c..4b9ea55 100644 --- a/src/PriceCheck/packages.lock.json +++ b/src/PriceCheck/packages.lock.json @@ -10,12 +10,9 @@ }, "StyleCop.Analyzers": { "type": "Direct", - "requested": "[1.2.0-beta.435, )", - "resolved": "1.2.0-beta.435", - "contentHash": "TADk7vdGXtfTnYCV7GyleaaRTQjfoSfZXprQrVMm7cSJtJbFc1QIbWPyLvrgrfGdfHbGmUPvaN4ODKNxg2jgPQ==", - "dependencies": { - "StyleCop.Analyzers.Unstable": "1.2.0.435" - } + "requested": "[1.1.118, )", + "resolved": "1.1.118", + "contentHash": "Onx6ovGSqXSK07n/0eM3ZusiNdB6cIlJdabQhWGgJp3Vooy9AaLS/tigeybOJAobqbtggTamoWndz72JscZBvw==" }, "System.Net.Http": { "type": "Direct", @@ -177,11 +174,6 @@ "resolved": "4.3.2", "contentHash": "leXiwfiIkW7Gmn7cgnNcdtNAU70SjmKW3jxGj1iKHOvdn0zRWsgv/l2OJUO5zdGdiv2VRFnAsxxhDgMzofPdWg==" }, - "StyleCop.Analyzers.Unstable": { - "type": "Transitive", - "resolved": "1.2.0.435", - "contentHash": "ouwPWZxbOV3SmCZxIRqHvljkSzkCyi1tDoMzQtDb/bRP8ctASV/iRJr+A2Gdj0QLaLmWnqTWDrH82/iP+X80Lg==" - }, "System.Collections": { "type": "Transitive", "resolved": "4.3.0",