com.typesafe.sbt.packager.validation

==validation==

This package contains stanard validators that can be used by format and archetype plugins.

Attributes

Members list

Type members

Classlikes

final case class Validation(errors: List[ValidationError], warnings: List[ValidationWarning])

Validation result.

Validation result.

Value parameters

errors

all errors that were found during the validation

warnings

all warnings that were found during the validation

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Validation

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Validation.type
final case class ValidationError(description: String, howToFix: String) extends ValidationResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Keys

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait ValidationResult

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
final case class ValidationWarning(description: String, howToFix: String) extends ValidationResult

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def checkMaintainer(maintainer: String, asWarning: Boolean): Validator
def epochIsNaturalNumber(epoch: Int): Validator
def filesExist(mappings: Seq[(File, String)]): Validator

Attributes

def nonEmptyMappings(mappings: Seq[(File, String)]): Validator

Basic validator to check if the resulting package will be empty or not.

Basic validator to check if the resulting package will be empty or not.

Value parameters

mappings

the mappings that should be validated

Attributes

Returns

a validator that checks if the mappins are empty