Skip to content

Commit

Permalink
- Linting (StyleCop analyzers)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwithan8 committed Sep 1, 2023
1 parent 5b52232 commit 6d79c5e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
3 changes: 2 additions & 1 deletion EasyPost/Models/API/CarrierAccountType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}

Expand Down
3 changes: 2 additions & 1 deletion EasyPost/Parameters/BaseParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace EasyPost.Parameters
/// <summary>
/// Base class for all parameters used in functions.
/// </summary>
/// <typeparam name="TMatchInputType">The type of <see cref="EphemeralEasyPostObject"/> that will be compared against in the <see cref="MatchFunction"/>.</typeparam>
public abstract class BaseParameters<TMatchInputType> : IBaseParameters where TMatchInputType : EphemeralEasyPostObject
{
/*
Expand Down Expand Up @@ -45,7 +46,7 @@ public abstract class BaseParameters<TMatchInputType> : IBaseParameters where TM
/// Execute the match function on a given object.
/// </summary>
/// <param name="obj">The <see cref="EasyPostObject"/> to compare this parameter set against.</param>
/// <returns>The result of the <see cref="MatchFunction"/></returns>
/// <returns>The result of the <see cref="MatchFunction"/>.</returns>
public bool Matches(TMatchInputType obj) => MatchFunction(obj);

/// <summary>
Expand Down
13 changes: 7 additions & 6 deletions EasyPost/Parameters/CarrierAccount/Create.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,19 @@ public class Create : ACreate
#endregion

/// <summary>
/// Create a new <see cref="Create"/> instance.
/// Initializes a new instance of the <see cref="Create"/> class.
/// </summary>
[Obsolete("Use Create(CarrierAccountType type) instead.")]
public Create() : base()
public Create()
{
}

/// <summary>
/// Create a new <see cref="Create"/> instance.
/// Initializes a new instance of the <see cref="Create"/> class.
/// </summary>
/// <param name="type">The type of carrier account to create.</param>
public Create(CarrierAccountType type) : base(type)
public Create(CarrierAccountType type)
: base(type)
{
}
}
Expand Down Expand Up @@ -83,14 +84,14 @@ public abstract class ACreate : BaseParameters<Models.API.CarrierAccount>, ICarr
internal abstract string Endpoint { get; }

/// <summary>
/// Create a new <see cref="ACreate"/> instance.
/// Initializes a new instance of the <see cref="ACreate"/> class.
/// </summary>
protected ACreate()
{
}

/// <summary>
/// Create a new <see cref="ACreate"/> instance.
/// Initializes a new instance of the <see cref="ACreate"/> class.
/// </summary>
/// <param name="type">The type of carrier account to create.</param>
protected ACreate(CarrierAccountType type)
Expand Down
3 changes: 2 additions & 1 deletion EasyPost/Parameters/CarrierAccount/CreateFedEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ public class CreateFedEx : ACreate
/// <summary>
/// Construct a new set of <see cref="CreateFedEx"/> parameters.
/// </summary>
public CreateFedEx() : base(CarrierAccountType.FedEx)
public CreateFedEx()
: base(CarrierAccountType.FedEx)
{
}
}
Expand Down
3 changes: 2 additions & 1 deletion EasyPost/Parameters/CarrierAccount/CreateFedExSmartPost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public class CreateFedExSmartPost : ACreate
/// <summary>
/// Construct a new set of <see cref="CreateFedExSmartPost"/> parameters.
/// </summary>
internal CreateFedExSmartPost() : base(CarrierAccountType.FedExSmartPost)
internal CreateFedExSmartPost()
: base(CarrierAccountType.FedExSmartPost)
{
}
}
5 changes: 3 additions & 2 deletions EasyPost/Parameters/CarrierAccount/CreateUps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ public class CreateUps : ACreate
#endregion

/// <summary>
/// Construct a new set of <see cref="CreateUps"/> parameters.
/// Initializes a new instance of the <see cref="CreateUps"/> class.
/// </summary>
public CreateUps() : base(CarrierAccountType.Ups)
public CreateUps()
: base(CarrierAccountType.Ups)
{
}
}
Expand Down

0 comments on commit 6d79c5e

Please sign in to comment.