From 6d79c5e9b9c35c6ef56992293f948190c73390c2 Mon Sep 17 00:00:00 2001 From: nwithan8 Date: Fri, 1 Sep 2023 16:38:07 -0600 Subject: [PATCH] - Linting (StyleCop analyzers) --- EasyPost/Models/API/CarrierAccountType.cs | 3 ++- EasyPost/Parameters/BaseParameters.cs | 3 ++- EasyPost/Parameters/CarrierAccount/Create.cs | 13 +++++++------ EasyPost/Parameters/CarrierAccount/CreateFedEx.cs | 3 ++- .../CarrierAccount/CreateFedExSmartPost.cs | 3 ++- EasyPost/Parameters/CarrierAccount/CreateUps.cs | 5 +++-- 6 files changed, 18 insertions(+), 12 deletions(-) diff --git a/EasyPost/Models/API/CarrierAccountType.cs b/EasyPost/Models/API/CarrierAccountType.cs index 8f54adcbc..42c6df847 100644 --- a/EasyPost/Models/API/CarrierAccountType.cs +++ b/EasyPost/Models/API/CarrierAccountType.cs @@ -71,7 +71,8 @@ public class CarrierAccountType : ValueEnum public static readonly CarrierAccountType Veho = new CarrierAccountType(64, "VehoAccount"); public static readonly CarrierAccountType XDelivery = new CarrierAccountType(65, "XDeliveryAccount"); - private CarrierAccountType(int id, string name) : base(id, name) + private CarrierAccountType(int id, string name) + : base(id, name) { } diff --git a/EasyPost/Parameters/BaseParameters.cs b/EasyPost/Parameters/BaseParameters.cs index a3e09b5d2..d1249ef56 100644 --- a/EasyPost/Parameters/BaseParameters.cs +++ b/EasyPost/Parameters/BaseParameters.cs @@ -15,6 +15,7 @@ namespace EasyPost.Parameters /// /// Base class for all parameters used in functions. /// + /// The type of that will be compared against in the . public abstract class BaseParameters : IBaseParameters where TMatchInputType : EphemeralEasyPostObject { /* @@ -45,7 +46,7 @@ public abstract class BaseParameters : IBaseParameters where TM /// Execute the match function on a given object. /// /// The to compare this parameter set against. - /// The result of the + /// The result of the . public bool Matches(TMatchInputType obj) => MatchFunction(obj); /// diff --git a/EasyPost/Parameters/CarrierAccount/Create.cs b/EasyPost/Parameters/CarrierAccount/Create.cs index 56fbe3de6..589265ed6 100644 --- a/EasyPost/Parameters/CarrierAccount/Create.cs +++ b/EasyPost/Parameters/CarrierAccount/Create.cs @@ -35,18 +35,19 @@ public class Create : ACreate #endregion /// - /// Create a new instance. + /// Initializes a new instance of the class. /// [Obsolete("Use Create(CarrierAccountType type) instead.")] - public Create() : base() + public Create() { } /// - /// Create a new instance. + /// Initializes a new instance of the class. /// /// The type of carrier account to create. - public Create(CarrierAccountType type) : base(type) + public Create(CarrierAccountType type) + : base(type) { } } @@ -83,14 +84,14 @@ public abstract class ACreate : BaseParameters, ICarr internal abstract string Endpoint { get; } /// - /// Create a new instance. + /// Initializes a new instance of the class. /// protected ACreate() { } /// - /// Create a new instance. + /// Initializes a new instance of the class. /// /// The type of carrier account to create. protected ACreate(CarrierAccountType type) diff --git a/EasyPost/Parameters/CarrierAccount/CreateFedEx.cs b/EasyPost/Parameters/CarrierAccount/CreateFedEx.cs index 104cf99e5..6428d53bc 100644 --- a/EasyPost/Parameters/CarrierAccount/CreateFedEx.cs +++ b/EasyPost/Parameters/CarrierAccount/CreateFedEx.cs @@ -70,7 +70,8 @@ public class CreateFedEx : ACreate /// /// Construct a new set of parameters. /// - public CreateFedEx() : base(CarrierAccountType.FedEx) + public CreateFedEx() + : base(CarrierAccountType.FedEx) { } } diff --git a/EasyPost/Parameters/CarrierAccount/CreateFedExSmartPost.cs b/EasyPost/Parameters/CarrierAccount/CreateFedExSmartPost.cs index 4100c6d73..edcb8e651 100644 --- a/EasyPost/Parameters/CarrierAccount/CreateFedExSmartPost.cs +++ b/EasyPost/Parameters/CarrierAccount/CreateFedExSmartPost.cs @@ -71,7 +71,8 @@ public class CreateFedExSmartPost : ACreate /// /// Construct a new set of parameters. /// - internal CreateFedExSmartPost() : base(CarrierAccountType.FedExSmartPost) + internal CreateFedExSmartPost() + : base(CarrierAccountType.FedExSmartPost) { } } diff --git a/EasyPost/Parameters/CarrierAccount/CreateUps.cs b/EasyPost/Parameters/CarrierAccount/CreateUps.cs index 1dca41da9..8a87a1016 100644 --- a/EasyPost/Parameters/CarrierAccount/CreateUps.cs +++ b/EasyPost/Parameters/CarrierAccount/CreateUps.cs @@ -71,9 +71,10 @@ public class CreateUps : ACreate #endregion /// - /// Construct a new set of parameters. + /// Initializes a new instance of the class. /// - public CreateUps() : base(CarrierAccountType.Ups) + public CreateUps() + : base(CarrierAccountType.Ups) { } }