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
140/ 160
pub points
83%
popularity

We analyzed this package 13 hours ago, and awarded it 140 pub points (of a possible 160):

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

failed
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

0/0 points: WASM compatibility

Package not compatible with runtime wasm

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

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

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
40 / 40trigger 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.12.0 2.12.0
basic_utils - 3.9.4 5.7.0
collection - 1.19.0 1.19.0
convert - 3.1.2 3.1.2
http - 0.13.6 1.2.2
http_parser - 4.1.1 4.1.1
js - 0.7.1 0.7.1
json_annotation - 4.9.0 4.9.0
logging - 1.3.0 1.3.0
meta - 1.16.0 1.16.0
path - 1.9.1 1.9.1
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.4.0 1.4.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.4.0 1.4.0

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

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.13, Dart 3.5.3.

Check the analysis log for details.

7
likes
140
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