com.jetbrains.plugin.structure.base.problems.Validator.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structure-base Show documentation
Show all versions of structure-base Show documentation
Base library for parsing JetBrains plugins. Used by other JetBrains Plugins structure libraries.
package com.jetbrains.plugin.structure.base.problems
fun validatePropertyLength(
descriptor: String,
propertyName: String,
propertyValue: String,
maxLength: Int,
problems: MutableList
) {
if (propertyValue.length > maxLength) {
problems.add(TooLongPropertyValue(descriptor, propertyName, propertyValue.length, maxLength))
}
}