validators2 3.0.0 copy "validators2: ^3.0.0" to clipboard
validators2: ^3.0.0 copied to clipboard

String validation and sanitization for Dart. This implementation is a place holder until the project authors have time to release an nnbd version.

7
likes
120/ 140
pub points
83%
popularity

We analyzed this package 4 days ago, and awarded it 120 pub points (of a possible 140):

failed
Follow Dart file conventions
20 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

Failed to verify repository URL.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: validators2,
    • contains a version property, and,
    • does not contain a publish_to property.

Repository has no matching pubspec.yaml with name: validators2.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

50 out of 53 API elements (94.3 %) have documentation comments.

Some symbols that are missing documentation: sanitizers, validators, validators.isPostalCode.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:validators2/sanitizers.dart that imports:
  • package:validators2/validators.dart that imports:
  • package:vin_decoder/vin_decoder.dart that imports:
  • package:vin_decoder/src/vin_decoder_base.dart that imports:
  • package:vin_decoder/src/nhtsa_model.dart that imports:
  • package:basic_utils/basic_utils.dart that imports:
  • package:basic_utils/src/X509Utils.dart that imports:
  • dart:io
partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

Found 22 issues. Showing the first 2:

INFO: The variable name '_default_normalize_email_options' isn't a lowerCamelCase identifier.

lib/sanitizers.dart:5:5

  ╷
5 │ Map _default_normalize_email_options = {'lowercase': true};
  │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/sanitizers.dart

INFO: Use 'isEmpty' instead of 'length' to test whether the collection is empty.

lib/sanitizers.dart:9:42

  ╷
9 │   if (input == null || (input is List && input.length == 0)) {
  │                                          ^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/sanitizers.dart

OK
Support up-to-date dependencies
20 / 20trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
vin_decoder ^0.2.0-0 0.2.1-nullsafety 0.2.1-nullsafety
Transitive dependencies
Package Constraint Compatible Latest
async - 2.11.0 2.11.0
basic_utils - 3.9.4 5.7.0
collection - 1.18.0 1.18.0
convert - 3.1.1 3.1.1
http - 0.13.6 1.2.1
http_parser - 4.0.2 4.0.2
js - 0.7.1 0.7.1
json_annotation - 4.9.0 4.9.0
logging - 1.2.0 1.2.0
meta - 1.15.0 1.15.0
path - 1.9.0 1.9.0
pointycastle - 3.9.1 3.9.1
random_string - 2.3.1 2.3.1
source_span - 1.10.0 1.10.0
string_scanner - 1.2.0 1.2.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.3.2 1.3.2

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

Analyzed with Pana 0.22.3, Dart 3.4.0.

Check the analysis log for details.

7
likes
120
pub points
83%
popularity

Publisher

verified publisheronepub.dev

String validation and sanitization for Dart. This implementation is a place holder until the project authors have time to release an nnbd version.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

vin_decoder

More

Packages that depend on validators2