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]

3
likes
60/ 160
pub points
0%
popularity

We analyzed this package 3 days ago, and awarded it 60 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

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

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.

failed
Provide documentation
10 / 20trigger folding of the section

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

22 out of 83 API elements (26.5 %) have documentation comments.

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

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

OK
Platform support
20 / 20trigger folding of the section

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
Pass static analysis
0 / 50trigger folding of the section

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
Support up-to-date dependencies
10 / 40trigger folding of the section

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

Package Constraint Compatible Latest
queen_validators ^0.2.2-beta 0.2.3 1.0.1
Transitive dependencies
Package Constraint Compatible Latest
email_validator - 2.1.17 2.1.17
meta - 1.15.0 1.15.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.

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

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.22.6, Dart 3.4.3.

Check the analysis log for details.

3
likes
60
pub points
0%
popularity

Publisher

unverified uploader

validate classes with Annotations [part of queen_palace]

Repository

Documentation

API reference

License

MIT (LICENSE)

Dependencies

queen_validators

More

Packages that depend on palace_validators