about_dependencies 0.0.1

  • Readme
  • Changelog
  • Installing
  • 43

about_dependencies #

Automatically generate dart file with informations about used dependencies in pubspec.yaml.

Usage #

To use this package add about_dependencies as a dependency in your pubspec.yaml file.

Import the generated file import 'path_to_file';.

import 'generated/dependencies.g.dart';

class ExampleDependencies {
  void use() {
    // Use the generated code like a normal list object
    print(dependencies);
  }
}

Code Generation #

To generate the dependencies run the command: flutter pub run about_dependencies:generate

Use flutter pub run about_dependencies:generate -h to get more build options

0.0.1 - 31-05-2020 #

  • Initial release

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  about_dependencies: ^0.0.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

Popularity:
Describes how popular the package is relative to other packages. [more]
1
Health:
Code health derived from static analysis. [more]
96
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
43
Learn more about scoring.

We analyzed this package on Jul 9, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.14

Analysis suggestions

Binary only

Cannot assign flutter SDK tag because it is binary only

Binary only

Cannot assign flutter platform tags, it is a binary only package

Health suggestions

Fix bin/src/dependencies_extractor.dart. (-2.48 points)

Analysis of bin/src/dependencies_extractor.dart reported 5 hints:

line 30 col 7: DO use curly braces for all flow control structures.

line 47 col 9: DO use curly braces for all flow control structures.

line 49 col 9: DO use curly braces for all flow control structures.

line 51 col 9: DO use curly braces for all flow control structures.

line 53 col 9: DO use curly braces for all flow control structures.

Fix bin/generate.dart. (-1.99 points)

Analysis of bin/generate.dart reported 4 hints:

line 13 col 5: DO use curly braces for all flow control structures.

line 15 col 5: DO use curly braces for all flow control structures.

line 15 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 28 col 7: DO use curly braces for all flow control structures.

Format bin/src/code_writer.dart.

Run dartfmt to format bin/src/code_writer.dart.

Format bin/src/description_getter.dart.

Run dartfmt to format bin/src/description_getter.dart.

Format bin/src/unknown_yaml_file_exception.dart.

Run dartfmt to format bin/src/unknown_yaml_file_exception.dart.

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

exitCode: 255 stdout: Documenting about_dependencies... Initialized dartdoc with 37 libraries in 31.3 seconds Validating docs... no issues found Documented 0 public libraries in 5.3 seconds stderr: Unhandled exception: dartdoc could not find any libraries to document #0 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:218:9)

Repository URL doesn't exist. (-10 points)

At the time of the analysis the repository field https://github.com/Supercaly/about_dependencies/tree/master/about_dependencies_generator was unreachable.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and about_dependencies.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
args ^1.5.2 1.6.0
code_builder ^3.3.0 3.4.0
dart_style ^1.3.6 1.3.6
dio ^3.0.9 3.0.9
path ^1.7.0 1.7.0
pubspec_parse ^0.1.5 0.1.5
Transitive dependencies
_fe_analyzer_shared 5.0.0
analyzer 0.39.12
async 2.4.2
built_collection 4.3.2
built_value 7.1.0
charcode 1.1.3
checked_yaml 1.0.2
collection 1.14.13 1.15.0-nullsafety
convert 2.1.1
crypto 2.1.5
csslib 0.16.1
fixnum 0.10.11
glob 1.2.0
html 0.14.0+3
http_parser 3.1.4
js 0.6.2
json_annotation 3.0.1
matcher 0.12.8
meta 1.2.2 1.3.0-nullsafety
node_interop 1.1.1
node_io 1.1.1
package_config 1.9.3
pedantic 1.9.2
pub_semver 1.4.4
quiver 2.1.3
source_span 1.7.0
stack_trace 1.9.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.2.0 1.3.0-nullsafety
watcher 0.9.7+15
yaml 2.2.1
Dev dependencies
test ^1.14.6