Skip to content

Commit

Permalink
Merge pull request #121 from nils-a/feature/GH-119
Browse files Browse the repository at this point in the history
(#119) add parameter: intelliJAnalyzerTasks
  • Loading branch information
nils-a authored May 14, 2024
2 parents 22d214b + c2654f3 commit e73afbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/Cake.IntelliJ.Recipe/Content/analyzing.cake
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ BuildParameters.Tasks.AnalyzeTask = Task("IntelliJAnalyze")
.FromPath(BuildParameters.SourceDirectoryPath)
.WithLogLevel(IntelliJBuildParameters.GradleVerbosity)
.WithProjectProperty("pluginVersion", buildVersion.SemVersion)
.WithTask("detekt")
.WithTask("ktlintCheck")
.WithTask("verifyPlugin")
.WithTask(IntelliJBuildParameters.IntelliJAnalyzerTasks)
.Run();
});

Expand Down
6 changes: 5 additions & 1 deletion src/Cake.IntelliJ.Recipe/Content/parameters.cake
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public static class IntelliJBuildParameters
public static IntelliJBuildTasks Tasks { get; private set; }
public static IntelliJBuildPaths Paths { get; private set; }
public static bool ShouldRunPluginVerifier { get; private set; }
public static string[] IntelliJAnalyzerTasks { get; private set; }
static IntelliJBuildParameters()
{
Tasks = new IntelliJBuildTasks();
Expand All @@ -40,6 +41,7 @@ public static class IntelliJBuildParameters
context.Information("PluginChannelGradleProperty: {0}", PluginChannelGradleProperty);
context.Information("PluginVersionGradleProperty: {0}", PluginVersionGradleProperty);
context.Information("ShouldRunPluginVerifier: {0}", ShouldRunPluginVerifier);
context.Information("IntelliJAnalyzerTasks: {0}", string.Join(", ", IntelliJAnalyzerTasks));
}

public static void SetParameters(
Expand Down Expand Up @@ -121,7 +123,8 @@ public static class IntelliJBuildParameters
GradleLogLevel gradleVerbosity = GradleLogLevel.Default,
DirectoryPath pluginBuildOutputPath = null,
DirectoryPath pluginPackOutputPath = null,
bool shouldRunPluginVerifier = true
bool shouldRunPluginVerifier = true,
string[] intelliJAnalyzerTasks = null
)
{
if (context == null)
Expand Down Expand Up @@ -231,5 +234,6 @@ public static class IntelliJBuildParameters
PluginVersionGradleProperty = pluginVersionGradleProperty;
Paths = IntelliJBuildPaths.GetPaths(context);
ShouldRunPluginVerifier = shouldRunPluginVerifier;
IntelliJAnalyzerTasks = intelliJAnalyzerTasks ?? new[] { "detekt", "ktlintCheck", "verifyPlugin" };
}
}

0 comments on commit e73afbe

Please sign in to comment.