Skip to content

Commit

Permalink
Fix CodeStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
trejjam committed Oct 18, 2023
1 parent 0b7866f commit 5fe3a19
Show file tree
Hide file tree
Showing 30 changed files with 31 additions and 33 deletions.
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Builders/Base/BaseBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ public virtual TObjectType Build()
{
return WorkingObject;
}
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Builders/Base/BuilderBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ public TObjectType Build()
{
return WorkingObject;
}
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Builders/ComposeBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ public ComposeBuilder WithSecrets(params Secret[] secrets)

return this;
}
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Builders/DeployBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ public DeployBuilder WithResources(Action<MapBuilder> resources)
WorkingObject.Resources = mb.Build();
return this;
}
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Builders/MapBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ public class MapBuilder : BuilderBase<MapBuilder, Map>
internal MapBuilder()
{
}
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Builders/NetworkBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public NetworkBuilder SetExternal(bool isExternal)
{
return WithProperty("external", isExternal);
}
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Builders/SecretBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ public SecretBuilder SetExternal(bool isExternal)
{
return WithProperty("external", isExternal);
}
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Builders/ServiceBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,4 +237,4 @@ public override Service Build()

return base.Build();
}
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Builders/SwarmServiceBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ protected SwarmServiceBuilder WithDeploy(Deploy deploy)
WorkingObject.Deploy = deploy;
return this;
}
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Builders/VolumeBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public VolumeBuilder SetExternal(bool isExternal)
{
return WithProperty("external", isExternal);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ public override void Emit(ScalarEventInfo eventInfo, IEmitter emitter)

nextEmitter.Emit(eventInfo, emitter);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ public override void Emit(SequenceStartEventInfo eventInfo, IEmitter emitter)

nextEmitter.Emit(eventInfo, emitter);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ public enum EventType : byte
Sequence,
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ public override void Emit(MappingEndEventInfo eventInfo, IEmitter emitter)
{
nextEmitter.Emit(eventInfo, emitter);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ public override bool EnterMapping(IPropertyDescriptor key, IObjectDescriptor val

return retVal;
}
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Enums/EReplicationMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ public enum EReplicationMode

[EnumMember(Value = "global")]
Global,
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Enums/ERestartMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ public enum ERestartMode

[EnumMember(Value = "unless-stopped")]
UnlessStopped
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Extensions/ComposeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ public static string Serialize(this Compose serializable, string lineEndings = "

return serializer.Serialize(serializable);
}
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Interfaces/IObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ namespace DockerComposeBuilder.Interfaces;
public interface IObject
{
string Name { get; set; }
}
}
5 changes: 2 additions & 3 deletions src/DockerComposeBuilder/Model/Base/ObjectBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ public T SetProperty<T>(string property, T value)

public bool TryGetProperty<T>(
string property,
[NotNullWhen(true)]
out T? result
[NotNullWhen(true)] out T? result
) where T : class
{
if (ContainsKey(property))
Expand Down Expand Up @@ -73,4 +72,4 @@ out T? result

return null;
}
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Model/Compose.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ public class Compose

[YamlMember(Alias = "volumes")]
public Dictionary<string, Volume>? Volumes { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Model/HealthCheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ public class HealthCheck

[YamlMember(Alias = "start_period")]
public string? StartPeriod { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Model/Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ namespace DockerComposeBuilder.Model;
[Serializable]
public class Map : ObjectBase
{
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Model/Network.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ namespace DockerComposeBuilder.Model;
[Serializable]
public class Network : ObjectBase
{
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Model/PlacementPreferences.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ public string Spread
get => GetProperty<string>("spread")!;
set => SetProperty("spread", value);
}
}
}
3 changes: 1 addition & 2 deletions src/DockerComposeBuilder/Model/Secret.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ namespace DockerComposeBuilder.Model;
[Serializable]
public class Secret : ObjectBase
{

}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Model/Service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ public class Service

[YamlMember(Alias = "deploy")]
public Deploy? Deploy { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Model/Services/Deploy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ public class Deploy

[YamlMember(Alias = "resources")]
public Map? Resources { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Model/Services/Port.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ public class Port

[YamlMember(Alias = "mode")]
public string? Mode { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/DockerComposeBuilder/Model/Volume.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ namespace DockerComposeBuilder.Model;
[Serializable]
public class Volume : ObjectBase
{
}
}

0 comments on commit 5fe3a19

Please sign in to comment.