![JAR search and dependency download from the Maven repository](/logo.png)
com.jetbrains.plugin.structure.teamcity.action.TeamCityActionProblems.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structure-teamcity-actions Show documentation
Show all versions of structure-teamcity-actions Show documentation
Library for parsing JetBrains TeamCity actions. Can be used to verify that plugin complies with JetBrains Marketplace requirements.
package com.jetbrains.plugin.structure.teamcity.action
import com.jetbrains.plugin.structure.base.problems.PluginProblem
abstract class InvalidPropertyProblem : PluginProblem() {
override val level: Level = Level.ERROR
}
object ParseYamlProblem : InvalidPropertyProblem() {
override val message = "The action specification should follow valid YAML syntax."
}
class InvalidPropertyValueProblem(override val message: String) : InvalidPropertyProblem()
class MissingValueProblem(propertyName: String, propertyDescription: String) : InvalidPropertyProblem() {
override val message = "The property <$propertyName> ($propertyDescription) should be specified."
}
class EmptyValueProblem(propertyName: String, propertyDescription: String) : InvalidPropertyProblem() {
override val message = "The property <$propertyName> ($propertyDescription) should not be empty."
}
class EmptyCollectionProblem(propertyName: String, propertyDescription: String) : InvalidPropertyProblem() {
override val message = "The array property <$propertyName> ($propertyDescription) should have at least one value."
}
class InvalidBooleanProblem(propertyName: String, propertyDescription: String) : InvalidPropertyProblem() {
override val message = "The property <$propertyName> ($propertyDescription) should be either 'true' or 'false'."
}
class TooLongValueProblem(
propertyName: String,
propertyDescription: String,
currentLength: Int,
maxAllowedLength: Int,
) : InvalidPropertyProblem() {
override val message =
"The property <$propertyName> ($propertyDescription) should not contain more than $maxAllowedLength characters. " +
"The current number of characters is $currentLength."
}
class PropertiesCombinationProblem(override val message: String) : InvalidPropertyProblem()
class InvalidVersionProblem(
propertyName: String,
propertyDescription: String,
) : InvalidPropertyProblem() {
override val message =
"The property <$propertyName> ($propertyDescription) should follow semantic versioning specification."
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy