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:

  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';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

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

  • Dart: 2.7.0
  • pana: 0.13.4

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. Use InheritanceManager3 instead..

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. Use InheritanceManager3 instead..

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 (-20 points)

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

Support latest dependencies. (-10 points)

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

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/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
analyzer ^0.38.2 0.38.5 0.39.4
build ^1.1.6 1.2.2
similo_annotations ^1.0.3 1.0.3
source_gen ^0.9.0 0.9.4+6 0.9.4+7
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.4
csslib 0.16.1
dart_style 1.3.3
front_end 0.1.27 0.1.29
glob 1.2.0
html 0.14.0+3
js 0.6.1+1
kernel 0.3.27 0.3.29
logging 0.11.4
meta 1.1.8
node_interop 1.0.3
node_io 1.0.1+2
package_config 1.1.0
path 1.6.4
pedantic 1.9.0
pub_semver 1.4.2
source_span 1.6.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+13
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