Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SonnyRR committed Nov 24, 2024
1 parent 0f40924 commit cb65da0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
16 changes: 6 additions & 10 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ class Build : NukeBuild
.Executes(() => DotNetClean(c => c.SetProject(ApiProject)));

Target Restore => _ => _
.Executes(() =>
{
DotNetRestore(s => s
.SetProjectFile(Solution));
});
.Executes(() => DotNetRestore(s => s.SetProjectFile(Solution)));

Target Compile => _ => _
.DependsOn(Clean, Restore)
Expand Down Expand Up @@ -121,7 +117,7 @@ class Build : NukeBuild
Log.Warning(ex, "Docker login was unsuccessful");
Log.Information("Attempting to login into GitHub Docker image registry. Try #{RetryCount}", retryCount);
})
.Execute(() => DockerLogin(settings => settings
.Execute(() => DockerLogin(s => s
.SetServer(GitHubImageRegistry)
.SetUsername(GitHubUsername)
.SetPassword(GitHubPersonalAccessToken)
Expand All @@ -132,17 +128,17 @@ class Build : NukeBuild
var targetImageName =
$"{GitHubImageRegistry}/{repositoryOwner.ToLowerInvariant()}/{repositoryName}/{ImageName}";

DockerTag(settings => settings
DockerTag(s => s
.SetSourceImage(ImageName)
.SetTargetImage(targetImageName));

var tagWithSemver = targetImageName + '-' + GitVersion.MajorMinorPatch;
DockerTag(settings => settings
DockerTag(s => s
.SetSourceImage(ImageName)
.SetTargetImage(tagWithSemver));

DockerPush(settings => settings.SetName(targetImageName));
DockerPush(settings => settings.SetName(tagWithSemver));
DockerPush(s => s.SetName(targetImageName));
DockerPush(s => s.SetName(tagWithSemver));
});

Target TagReleaseCommit => _ => _
Expand Down
8 changes: 5 additions & 3 deletions build/GlobalSuppressions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

using System.Diagnostics.CodeAnalysis;

[assembly: SuppressMessage("Roslynator", "RCS1110:Declare type inside namespace", Justification = "<Pending>", Scope = "module")]
[assembly: SuppressMessage("Major Bug", "S3903:Types should be defined in named namespaces", Justification = "<Pending>", Scope = "module")]
[assembly: SuppressMessage("Design", "CA1050:Declare types in namespaces", Justification = "<Pending>", Scope = "module")]
[assembly: SuppressMessage("Roslynator", "RCS1110:Declare type inside namespace", Justification = "Not applicable for this assembly.", Scope = "module")]
[assembly: SuppressMessage("Major Bug", "S3903:Types should be defined in named namespaces", Justification = "Not applicable for this assembly.", Scope = "module")]
[assembly: SuppressMessage("Design", "CA1050:Declare types in namespaces", Justification = "Not applicable for this assembly.", Scope = "module")]
[assembly: SuppressMessage("CodeQuality", "IDE0051:Remove unused private members", Justification = "Not applicable for this assembly.", Scope = "module")]
[assembly: SuppressMessage("Roslynator", "RCS1213:Remove unused member declaration", Justification = "Not applicable for this assembly.", Scope = "module")]

0 comments on commit cb65da0

Please sign in to comment.