Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#119) add parameter: intelliJAnalyzerTasks #121

Merged
merged 1 commit into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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" };
}
}
Loading