com.jetbrains.pluginverifier.tasks.checkPlugin.CheckPluginResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of verifier-cli Show documentation
Show all versions of verifier-cli Show documentation
Command-line interface for JetBrains Plugin Verifier with set of high-level tasks for plugin and IDE validation
/*
* Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.jetbrains.pluginverifier.tasks.checkPlugin
import com.jetbrains.pluginverifier.PluginVerificationResult
import com.jetbrains.pluginverifier.ide.IdeDescriptor
import com.jetbrains.pluginverifier.repository.PluginRepository
import com.jetbrains.pluginverifier.tasks.InvalidPluginFile
import com.jetbrains.pluginverifier.tasks.TaskResult
/**
* Result of the `check-plugin` task
*
* @param invalidPluginFiles list of plugins with structural problems or descriptor validation problems
* @param results list of nonstructural problems of plugins
* @param ideDescriptorsWithInvalidPlugins between specific IDE and corresponding list of plugins with structural problems.
* This is used to map the verification target IDE to list of plugins that did not even enter the actual verification
* stage due to the structural problems.
*
*/
class CheckPluginResult(
val invalidPluginFiles: List,
val results: List,
val ideDescriptorsWithInvalidPlugins: Map> = emptyMap()
) : TaskResult {
override fun createTaskResultsPrinter(pluginRepository: PluginRepository) =
CheckPluginResultPrinter(pluginRepository)
}