From 4cde253c491e0c65b74bdf82871a514e1d8849d6 Mon Sep 17 00:00:00 2001 From: David Driscoll Date: Wed, 29 Nov 2023 12:58:24 -0500 Subject: [PATCH] Making sure linting works (#1019) * Making sure linting works * Automatically linting code --------- Co-authored-by: david-driscoll --- src/Nuke/ICanLint.cs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/Nuke/ICanLint.cs b/src/Nuke/ICanLint.cs index a597a04b..dfb96965 100644 --- a/src/Nuke/ICanLint.cs +++ b/src/Nuke/ICanLint.cs @@ -21,14 +21,13 @@ public interface ICanLint : INukeBuild /// /// A ensure only the linted files are added to the commit /// - public Target LintGitAdd => t => t - .Unlisted() - .After(PostLint) - .TriggeredBy(PostLint) - .OnlyWhenDynamic(() => LintPaths.Any()) - .Executes( - () => GitTasks.Git($"add {string.Join(" ", LintPaths.Select(z => $"\"{RootDirectory.GetRelativePathTo(z)}\""))}") - ); + public Target LintGitAdd => + t => t + .Unlisted() + .After(PostLint) + .TriggeredBy(PostLint) + .OnlyWhenDynamic(() => LintPaths.Any()) + .Executes(() => GitTasks.Git($"add {string.Join(" ", LintPaths.Select(z => $"\"{RootDirectory.GetRelativePathTo(z)}\""))}")); /// /// The lint paths rooted as an absolute path.