swift_composer 0.2.0
swift_composer: ^0.2.0

Dart native js
Flutter Android iOS web

Extensible Object Manager with no boilerplate code using source_gen

0
likes
80 / 110
pub points
0 %
popularity

We analyzed this package on Nov 24, 2020, 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-dartdocKMGTYV/pkg/lib/swift_composer.dart:1:9)
  warning: swift_composer has no library level documentation comments, from swift_composer: (file:///tmp/pub-dartlang-dartdocKMGTYV/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-dartdocKMGTYV/pkg/lib/swift_generator.dart:1:9)
    conflicting with file already generated by swift_composer: (file:///tmp/pub-dartlang-dartdocKMGTYV/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.
  warning: dartdoc generated a broken link to: swift_composer/AnnotatedWith-class.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/AnnotatedWith/AnnotatedWith.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/AnnotatedWith/annotation.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/Compile-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/CompileFieldsOfType-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/CompilePart-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/Compose-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/ComposeSubtypes-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/Create-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/Factory-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/Inject-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/InjectClassName-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/InjectClassNames-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/InjectConfig-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/InjectInstances-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/InjectSubtypesNames-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/MethodPlugin-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/Pluggable-class.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/Pluggable/Pluggable.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/Pluggable/plugin.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/Require-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/SubtypeFactory-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/Template-constant.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/TypePlugin-class.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/TypePlugin/TypePlugin.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/TypePlugin/parent.html (from index.json)
  warning: dartdoc generated a broken link to: swift_composer/TypePlugin/sibling.html (from index.json)
found 29 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:32: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.170.41.0
build^1.2.21.5.11.5.1
build_config^0.4.1+10.4.30.4.3
path^1.6.41.7.01.7.0
source_gen^0.9.40.9.80.9.8
yaml^2.2.02.2.12.2.1
Transitive dependencies
PackageConstraintCompatibleLatest
_fe_analyzer_shared-7.0.013.0.0
args-1.6.01.6.0
async-2.4.22.4.2
charcode-1.1.31.1.3
checked_yaml-1.0.21.0.2
cli_util-0.2.00.2.0
collection-1.14.131.14.13
convert-2.1.12.1.1
crypto-2.1.52.1.5
csslib-0.16.20.16.2
dart_style-1.3.61.3.10
file-5.2.15.2.1
glob-1.2.01.2.0
html-0.14.0+40.14.0+4
intl-0.16.10.16.1
js-0.6.20.6.2
json_annotation-3.1.13.1.1
logging-0.11.40.11.4
meta-1.2.41.2.4
node_interop-1.2.11.2.1
node_io-1.2.01.2.0
package_config-1.9.31.9.3
pedantic-1.9.21.9.2
pub_semver-1.4.41.4.4
pubspec_parse-0.1.50.1.5
source_span-1.7.01.7.0
string_scanner-1.0.51.0.5
term_glyph-1.1.01.1.0
typed_data-1.2.01.2.0
watcher-0.9.7+150.9.7+15

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 latest published version `0.41.0`

pubspec.yaml:13:13

   ╷
13 │   analyzer: ^0.39.4
   │             ^^^^^^^
   ╵

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

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