sfin_contract 0.0.162 copy "sfin_contract: ^0.0.162" to clipboard
sfin_contract: ^0.0.162 copied to clipboard

This is dio contract library

60/ 160
pub points
495
downloads

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

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

Failed check 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 50 to 180 characters to describe the package, what it does, and its target use case.

Homepage URL doesn't exist.

At the time of the analysis https://github.com/sfin-io/contract.git was unreachable. Make sure that the website is reachable via HEAD requests.

Repository URL doesn't exist.

At the time of the analysis https://github.com/sfin-io/contract.git was unreachable. Make sure that the website is reachable via HEAD requests.

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

4186 out of 7725 API elements (54.2 %) have documentation comments.

Some symbols that are missing documentation: sfin_contract, sfin_contract.Account, sfin_contract.Account.listFromJson, sfin_contract.Account.mapFromJson, sfin_contract.Account.mapListFromJson.

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 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:sfin_contract/api.dart that imports:
  • dart:io
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

Found 323 issues. Showing the first 2:

ERROR: The argument type 'String?' can't be assigned to the parameter type 'String'.

lib/api/support_api.dart:937:42

    ╷
937 │       .replaceAll('{emailSubscription}', emailSubscription);
    │                                          ^^^^^^^^^^^^^^^^^
    ╵

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

ERROR: The argument type 'Object' can't be assigned to the parameter type 'ImportedFileContractTaxStatusEnum'.

lib/model/imported_file_contract.dart:250:20

    ╷
250 │         taxStatus: ImportedFileContractTaxStatusEnum.fromJson(json[r'taxStatus']) ?? 'TAX_EXCLUSIVE',
    │                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/model/imported_file_contract.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
collection ^1.17.0 1.19.1 1.19.1
http >=0.13.0 <0.14.0 0.13.6 1.6.0
intl any 0.20.2 0.20.2
meta ^1.1.8 1.17.0 1.17.0
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.0 2.13.0
clock - 1.1.2 1.1.2
http_parser - 4.1.2 4.1.2
path - 1.9.1 1.9.1
source_span - 1.10.1 1.10.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0

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

The constraint `>=0.13.0 <0.14.0` on http does not support the stable version `1.0.0`.

Try running dart pub upgrade --major-versions http 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 5 errors:

  • ARGUMENT_TYPE_NOT_ASSIGNABLE - lib/api/support_api.dart:937:42 - The argument type 'String?' can't be assigned to the parameter type 'String'.
  • ARGUMENT_TYPE_NOT_ASSIGNABLE - lib/model/imported_file_contract.dart:250:20 - The argument type 'Object' can't be assigned to the parameter type 'ImportedFileContractTaxStatusEnum'.
  • UNDEFINED_METHOD - lib/model/sfin_scan_data_contract.dart:207:24 - The method 'fromJson' isn't defined for the type 'DateTime'.

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:
1
likes
60
points
495
downloads

Publisher

verified publishersfin.io

Weekly Downloads

This is dio contract library

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

collection, http, intl, meta

More

Packages that depend on sfin_contract