typedef_for_fn_generator 1.0.0

## 1.0.0
- First publish

Use this package as a library

1. Depend on it

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


dependencies:
  typedef_for_fn_generator: ^1.0.0

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.

3. Import it

Now in your Dart code, you can use:


import 'package:typedef_for_fn_generator/builder.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
21
Health:
Code health derived from static analysis. [more]
90
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
23
Overall:
Weighted score of the above. [more]
42
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

Package not compatible with SDK flutter

Because it is not compatible with any of the supported runtimes: flutter-native, flutter-web

Package not compatible with runtime flutter-native on android

Because:

  • package:typedef_for_fn_generator/builder.dart that imports:
  • package:typedef_for_fn_generator/src/TypedefForFnGenerator.dart that imports:
  • package:source_gen/source_gen.dart that imports:
  • package:source_gen/src/type_checker.dart that imports:
  • dart:mirrors

Package not compatible with runtime flutter-native on ios

Because:

  • package:typedef_for_fn_generator/builder.dart that imports:
  • package:typedef_for_fn_generator/src/TypedefForFnGenerator.dart that imports:
  • package:source_gen/source_gen.dart that imports:
  • package:source_gen/src/type_checker.dart that imports:
  • dart:mirrors

Package not compatible with runtime flutter-native on linux

Because:

  • package:typedef_for_fn_generator/builder.dart that imports:
  • package:typedef_for_fn_generator/src/TypedefForFnGenerator.dart that imports:
  • package:source_gen/source_gen.dart that imports:
  • package:source_gen/src/type_checker.dart that imports:
  • dart:mirrors

Package not compatible with runtime flutter-native on macos

Because:

  • package:typedef_for_fn_generator/builder.dart that imports:
  • package:typedef_for_fn_generator/src/TypedefForFnGenerator.dart that imports:
  • package:source_gen/source_gen.dart that imports:
  • package:source_gen/src/type_checker.dart that imports:
  • dart:mirrors

Package not compatible with runtime flutter-native on windows

Because:

  • package:typedef_for_fn_generator/builder.dart that imports:
  • package:typedef_for_fn_generator/src/TypedefForFnGenerator.dart that imports:
  • package:source_gen/source_gen.dart that imports:
  • package:source_gen/src/type_checker.dart that imports:
  • dart:mirrors

Package not compatible with runtime flutter-web on web

Because:

  • package:typedef_for_fn_generator/builder.dart that imports:
  • package:typedef_for_fn_generator/src/TypedefForFnGenerator.dart that imports:
  • package:source_gen/source_gen.dart that imports:
  • package:source_gen/src/utils.dart that imports:
  • package:build/build.dart that imports:
  • package:build/src/generate/run_post_process_builder.dart that imports:
  • package:build/src/builder/post_process_builder.dart that imports:
  • package:build/src/builder/builder.dart that imports:
  • package:build/src/builder/build_step.dart that imports:
  • package:build/src/asset/reader.dart that imports:
  • package:glob/glob.dart that imports:
  • package:glob/src/list_tree.dart that imports:
  • package:glob/src/io.dart that imports:
  • package:glob/src/io_export.dart that imports:
  • dart:io

Package not compatible with runtime js

Because:

  • package:typedef_for_fn_generator/builder.dart that imports:
  • package:typedef_for_fn_generator/src/TypedefForFnGenerator.dart that imports:
  • package:source_gen/source_gen.dart that imports:
  • package:source_gen/src/utils.dart that imports:
  • package:build/build.dart that imports:
  • package:build/src/generate/run_post_process_builder.dart that imports:
  • package:build/src/builder/post_process_builder.dart that imports:
  • package:build/src/builder/builder.dart that imports:
  • package:build/src/builder/build_step.dart that imports:
  • package:build/src/asset/reader.dart that imports:
  • package:glob/glob.dart that imports:
  • package:glob/src/list_tree.dart that imports:
  • package:glob/src/io.dart that imports:
  • package:glob/src/io_export.dart that imports:
  • dart:io

Package not compatible with runtime native-aot

Because:

  • package:typedef_for_fn_generator/builder.dart that imports:
  • package:typedef_for_fn_generator/src/TypedefForFnGenerator.dart that imports:
  • package:source_gen/source_gen.dart that imports:
  • package:source_gen/src/type_checker.dart that imports:
  • dart:mirrors

Health issues and suggestions

Document public APIs. (-1 points)

2 out of 2 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/src/createTypeDef.dart. (-5.84 points)

Analysis of lib/src/createTypeDef.dart reported 12 hints, including:

line 43 col 32: Use contains instead of indexOf

line 52 col 7: Use isEmpty instead of length

line 60 col 70: This function has a return type of 'String', but doesn't end with a return statement.

line 73 col 70: This function has a return type of 'String', but doesn't end with a return statement.

line 76 col 7: Use isEmpty instead of length

Fix lib/src/TypedefForFnGenerator.dart. (-1.49 points)

Analysis of lib/src/TypedefForFnGenerator.dart reported 3 hints:

line 107 col 12: Don't explicitly initialize variables to null.

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

line 111 col 18: Don't explicitly initialize variables to null.

Fix lib/src/helpers/regexH.dart. (-1 points)

Analysis of lib/src/helpers/regexH.dart reported 2 hints:

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

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

Fix lib/src/helpers/stringH.dart. (-1 points)

Analysis of lib/src/helpers/stringH.dart reported 2 hints:

line 125 col 7: Use isEmpty instead of length

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

Format lib/builder.dart.

Run dartfmt to format lib/builder.dart.

Maintenance issues and suggestions

Provide a file named README.md. (-30 points)

The README.md file should inform others about your project, what it does, and how they can use it. See the example generated by stagehand.

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://github.com/atreeon/typedef_for_fn was unreachable.

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (dartz).

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

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

For more information see the pub package layout conventions.

The package description is too short. (-7 points)

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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
analyzer >=0.35.4 <0.40.0 0.39.12
build ^1.1.1 1.3.0
dartz ^0.8.3 0.8.9 0.9.1
quiver ^2.0.1 2.1.3
source_gen ^0.9.4+7 0.9.5
typedef_for_fn ^1.0.0 1.0.0
Transitive dependencies
_fe_analyzer_shared 5.0.0
args 1.6.0
async 2.4.2
charcode 1.1.3
collection 1.14.13 1.15.0-nnbd
convert 2.1.1
crypto 2.1.5
csslib 0.16.1
dart_style 1.3.6
glob 1.2.0
html 0.14.0+3
js 0.6.2
logging 0.11.4
matcher 0.12.8
meta 1.2.1
node_interop 1.1.1
node_io 1.1.1
package_config 1.9.3
path 1.7.0
pedantic 1.9.1
pub_semver 1.4.4
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-nnbd
watcher 0.9.7+15
yaml 2.2.1
Dev dependencies
build_runner ^1.2.8
test ^1.0.0