null_safety_percentage 0.1.0 copy "null_safety_percentage: ^0.1.0" to clipboard
null_safety_percentage: ^0.1.0 copied to clipboard

Command-line tool to provide null-safety percentage info of a project. Track your migration progress on mixed-version programs that execute with unsound null safety.

null_safety_percentage #

Command-line tool to provide null-safety percentage info of a project. Track your migration progress on mixed-version programs that execute with unsound null safety.

Continuous Integration codecov null_safety_percentage Published by dartside.dev GitHub Stars Count

Motivation #

Usage #

Install the null_safety_percentage command-line tool either globally or as a dev dependency.

null_safety_percentage command-line tool #

Keep in mind that how you invoke the null_safety_percentage depends on how you installed it and whether you are using it from a Flutter or Dart project.

Global installation

If you install null_safety_percentage globally, you can execute it simply by typing null_safety_percentage lib test.

dart pub global activate null_safety_percentage # or: flutter pub global activate null_safety_percentage

null_safety_percentage --help
null_safety_percentage --version

null_safety_percentage lib
null_safety_percentage lib test
null_safety_percentage --output-format json lib test
null_safety_percentage --output-format=json lib test
null_safety_percentage --output-format human --verbose lib

As dev dependency

You can run Dart scripts from your dependencies using the dart run or flutter run command.

  1. Add null_safety_percentage to your dev_dependencies: dart pub add -d null_safety_percentage or flutter pub add -d null_safety_percentage.
  2. Run the script dart run null_safety_percentage lib test or flutter run null_safety_percentage lib test. See more example scripts above.

example #

Don't forget the project's example folder for a project where you can test the command-line tool.

3
likes
130
pub points
43%
popularity

Publisher

verified publisherdartside.dev

Command-line tool to provide null-safety percentage info of a project. Track your migration progress on mixed-version programs that execute with unsound null safety.

Repository
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

args

More

Packages that depend on null_safety_percentage