similo 1.0.3

Similo Generator Package #

This package must be used with similo_annotatios package. It provides generators for generating const constructors and copy with, scale functions in Dart. Check repo for more information.

Use this package as a library

1. Depend on it

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


dependencies:
  similo: ^1.0.3

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:similo/similo.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
2
Health:
Code health derived from static analysis. [more]
95
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
58
Overall:
Weighted score of the above. [more]
41
Learn more about scoring.

We analyzed this package on Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21

Platforms

Detected platforms: other

Primary library: package:similo/similo.dart with components: io, build, 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/parsers/code_parser.dart. (-1.49 points)

Analysis of lib/src/parsers/code_parser.dart reported 3 hints:

line 27 col 9: Use contains instead of indexOf

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

line 74 col 9: Use isEmpty instead of length

Fix lib/src/parsers/class_parser.dart. (-1 points)

Analysis of lib/src/parsers/class_parser.dart reported 2 hints:

line 56 col 17: 'InheritanceManager' is deprecated and shouldn't be used.

line 57 col 10: 'getMembersInheritedFromClasses' is deprecated and shouldn't be used.

Fix lib/src/parsers/variable_parser.dart. (-1 points)

Analysis of lib/src/parsers/variable_parser.dart reported 2 hints:

line 22 col 5: 'InheritanceManager' is deprecated and shouldn't be used.

line 22 col 41: 'getMembersInheritedFromClasses' is deprecated and shouldn't be used.

Fix additional 4 files with analysis or formatting issues. (-1 points)

Additional issues in the following files:

  • lib/src/class_generator.dart (1 hint)
  • lib/src/custom_modifier_generator.dart (1 hint)
  • lib/src/copy_with_generator.dart (Run dartfmt to format lib/src/copy_with_generator.dart.)
  • lib/src/scale_generator.dart (Run dartfmt to format lib/src/scale_generator.dart.)

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

The package description is too short. (-12 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.

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 similo.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.0.0 <3.0.0
analyzer ^0.38.2 0.38.5
build ^1.1.6 1.2.0
similo_annotations ^1.0.3 1.0.3
source_gen ^0.9.0 0.9.4+5
Transitive dependencies
args 1.5.2
async 2.4.0
charcode 1.1.2
collection 1.14.12
convert 2.1.1
crypto 2.1.3
csslib 0.16.1
dart_style 1.3.1
front_end 0.1.27
glob 1.2.0
html 0.14.0+3
js 0.6.1+1
kernel 0.3.27
logging 0.11.3+2
meta 1.1.7
node_interop 1.0.3
node_io 1.0.1+2
package_config 1.1.0
path 1.6.4
pedantic 1.8.0+1
pub_semver 1.4.2
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+12
yaml 2.2.0
Dev dependencies
build_runner ^1.0.0
build_test ^0.10.0
source_gen_test ^0.1.0
test ^1.0.0