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
descriptionis has enough charather -
hasValidatedName(
String name) → bool -
Check
nameis meet requirment of pubspec naming -
hasValidatedVersioning(
String version, {bool dependency = true}) → bool -
Check this
versionstring is a valid format from -
hasValidateGitUri(
String site) → bool -
Check
siteis valid Git URL -
hasValidateHttpFormat(
String site) → bool -
Check
siteis a valid HTTP or HTTPS format