palace_validators 0.0.3 copy "palace_validators: ^0.0.3" to clipboard
palace_validators: ^0.0.3 copied to clipboard

outdated

validate classes with Annotations [part of queen_palace]

70/ 160
pub points
1
downloads

We analyzed this package 25 days ago, and awarded it 70 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Failed report section
Provide documentation
10 / 20trigger folding of the section

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

22 out of 97 API elements (22.7 %) have documentation comments.

Some symbols that are missing documentation: dto_validator, dto_validator.validateDto, palace_validators, palace_validators.Contains.Contains.new, palace_validators.Contains.defaultError.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

Passed report section
Platform support
20 / 20trigger folding of the section

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

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Android

Because:

  • package:palace_validators/palace_validators.dart that imports:
  • package:palace_validators/dto_validator.dart that imports:
  • dart:mirrors
Package not compatible with platform iOS

Because:

  • package:palace_validators/palace_validators.dart that imports:
  • package:palace_validators/dto_validator.dart that imports:
  • dart:mirrors
Package not compatible with platform Web

Because:

  • package:palace_validators/palace_validators.dart that imports:
  • package:palace_validators/dto_validator.dart that imports:
  • dart:mirrors
Failed report section
Pass static analysis
0 / 50trigger folding of the section

Failed check 0/50 points: code has no errors, warnings, lints, or formatting issues

ERROR: The name 'QueenValidationRule' isn't defined, so it can't be used in an 'is' expression.

lib/dto_validator.dart:22:52

   ╷
22 │         field.metadata.where((r) => r.reflectee is QueenValidationRule);
   │                                                    ^^^^^^^^^^^^^^^^^^^
   ╵

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

ERROR: The name 'QueenValidationRule' isn't a type, so it can't be used as a type argument.

lib/dto_validator.dart:26:15

   ╷
26 │         .cast<QueenValidationRule>();
   │               ^^^^^^^^^^^^^^^^^^^
   ╵

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

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
queen_validators ^0.2.2-beta 0.2.3 1.0.1
Transitive dependencies
Package Constraint Compatible Latest Notes
email_validator - 2.1.17 3.0.0
meta - 1.17.0 1.17.0

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

The constraint `^0.2.2-beta` on queen_validators does not support the stable version `1.0.0`.

Try running dart pub upgrade --major-versions queen_validators to update the constraint.

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

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 2 errors:

  • TYPE_TEST_WITH_UNDEFINED_NAME - lib/dto_validator.dart:22:52 - The name 'QueenValidationRule' isn't defined, so it can't be used in an 'is' expression.
  • NON_TYPE_AS_TYPE_ARGUMENT - lib/dto_validator.dart:26:15 - The name 'QueenValidationRule' isn't a type, so it can't be used as a type argument.

Run dart pub downgrade and then dart analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.23.3, Dart 3.10.4.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
3
likes
70
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

validate classes with Annotations [part of queen_palace]

Repository
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

queen_validators

More

Packages that depend on palace_validators