validator library

A bundle of all validation for checking pubspec file

All rules of the validation is followed by official documentation.

Functions

hasEnoughLengthDescription(String description, {bool privatePackage = false}) bool
Check the description is has enough charather
hasValidatedName(String name) bool
Check name is meet requirment of pubspec naming
hasValidatedVersioning(String version, {bool dependency = true}) bool
Check this version string is a valid format from
hasValidateGitUri(String site) bool
Check site is valid Git URL
hasValidateHttpFormat(String site) bool
Check site is a valid HTTP or HTTPS format