All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jetbrains.plugin.structure.base.problems.Validator.kt Maven / Gradle / Ivy

Go to download

Base library for parsing JetBrains plugins. Used by other JetBrains Plugins structure libraries.

There is a newer version: 3.290
Show newest version
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))
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy