pedantic_mono 1.8.0

pedantic_mono #

[mono edition] How to get the most value from Dart static analysis. +

Usage #

Install #

  pedantic_mono: any

Locate the analysis_options.yaml #

  1. Copy analysis_options.yaml to project root.
  2. Add your rules if needed.


  • Disable avoid_types_on_closure_parameters


  • Add prefer_final_in_for_each



  • Update pedantic to 1.9.0


  • Split out analysis_options_flutter_samples.yaml
  • It is also valid to specifyinclude: package:pedantic_mono/analysis_options_flutter_samples.yaml
    • More loose rules


  • missing_required_param: warning
  • missing_return: warning


  • Add many linter rules.


Add these rules.

  • sort_constructors_first
  • sort_unnamed_constructors_first


Add these rules.

  • prefer_const_constructors
  • prefer_const_constructors_in_immutables
  • prefer_const_declarations
  • prefer_const_literals_to_create_immutables


  • Fix metadata.


  • First release.

Use this package as a library

1. Depend on it

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

  pedantic_mono: ^1.8.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:

import 'package:pedantic_mono/pedantic_mono.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 Feb 10, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5

Health issues and suggestions

Document public APIs. (-1 points)

1 out of 1 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.

Maintenance suggestions

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 pedantic_mono.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.1.0 <3.0.0
Dev dependencies
pedantic ^1.9.0