swift_composer 0.2.0
swift_composer: ^0.2.0 copied to clipboard

Dart native js
Flutter Android iOS Linux macOS web Windows

Extensible Object Manager with no boilerplate code using source_gen

0
likes
80 / 110
pub points
0 %
popularity

We analyzed this package on Mar 4, 2021, and awarded it 80 pub points (of a possible 110):

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
10 / 20

10/10 points: Package has an example

  • Found example at: example/main.dart

0/10 points: Failed to run dartdoc

  • Running dartdoc failed with the following output:
  warning: swift_composer has no library level documentation comments, from swift_composer: (file:///tmp/pub-dartlang-dartdocCBNNGG/pkg/lib/swift_composer.dart:1:9)
  warning: swift_composer has no library level documentation comments, from swift_composer: (file:///tmp/pub-dartlang-dartdocCBNNGG/pkg/lib/swift_generator.dart:1:9)
  error: failed to write file at: swift_composer/swift_composer-library.html
    for symbol swift_composer: (file:///tmp/pub-dartlang-dartdocCBNNGG/pkg/lib/swift_generator.dart:1:9)
    conflicting with file already generated by swift_composer: (file:///tmp/pub-dartlang-dartdocCBNNGG/pkg/lib/swift_composer.dart:1:9)
            Dartdoc generates a path and filename to write to for each symbol.
            swift_composer conflicts with another symbol in the generated path, and
            therefore can not be written out.  Changing the name, library name, or
            class name (if appropriate) of one of the conflicting items can resolve
            the conflict.   Alternatively, use the @nodoc tag in one symbol's
            documentation comments to hide it.
found 2 warnings and 1 error
Unhandled exception:
dartdoc encountered 1 errors while processing.
#0      Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:231:9)
<asynchronous suspension>
#1      main (file:///project/pkg/pub_dartdoc/bin/pub_dartdoc.dart:21:33)
<asynchronous suspension>
#2      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#3      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
Support multiple platforms
20 / 20

20/20 points: Supports 2 of 2 possible platforms (native, js)

Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 47 issues. Showing the first 2:

INFO: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

lib/swift_generator.dart:46:21

   ╷
46 │     fullName = type.name;
   │                     ^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/swift_generator.dart

INFO: 'instantiate' is deprecated and shouldn't be used. Use ClassElement.instantiate().

lib/swift_generator.dart:55:41

   ╷
55 │             DartType instantiated = def.instantiate(type.typeArguments);
   │                                         ^^^^^^^^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/swift_generator.dart

Support up-to-date dependencies
10 / 20

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

PackageConstraintCompatibleLatest
analyzer^0.39.40.39.171.1.0
build^1.2.21.6.21.6.3
build_config^0.4.1+10.4.60.4.6
path^1.6.41.8.01.8.0
source_gen^0.9.40.9.10+20.9.10+3
yaml^2.2.02.2.13.1.0
Transitive dependencies
PackageConstraintCompatibleLatest
_fe_analyzer_shared-7.0.017.0.0
args-1.6.02.0.0
async-2.5.02.5.0
charcode-1.2.01.2.0
checked_yaml-1.0.42.0.1
cli_util-0.2.00.3.0
clock-1.1.01.1.0
collection-1.15.01.15.0
convert-2.1.13.0.0
crypto-2.1.53.0.0
csslib-0.16.20.17.0
dart_style-1.3.61.3.14
file-5.2.16.1.0
glob-1.2.02.0.0
html-0.14.0+40.15.0
intl-0.17.00.17.0
js-0.6.30.6.3
json_annotation-4.0.04.0.0
logging-1.0.01.0.0
meta-1.3.01.3.0
node_interop-1.2.11.2.1
node_io-1.2.01.2.0
package_config-1.9.32.0.0
pedantic-1.11.01.11.0
pub_semver-1.4.42.0.0
pubspec_parse-0.1.81.0.0
source_span-1.8.11.8.1
string_scanner-1.1.01.1.0
term_glyph-1.2.01.2.0
typed_data-1.3.01.3.0
watcher-0.9.7+151.0.0

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

The constraint `^0.39.4` on analyzer does not support the stable version `0.40.0`.

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

The constraint `^2.2.0` on yaml does not support the stable version `3.0.0`, that was published 26 days ago.

When yaml is 30 days old, this package will no longer be awarded points in this category.

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

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

Analysed with Pana 0.15.2, Dart 2.12.0.

0
likes
80
pub points
0%
popularity

Publisher

swift.shop

Extensible Object Manager with no boilerplate code using source_gen

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

analyzer, build, build_config, path, source_gen, yaml

More

Packages that depend on swift_composer