pedantic_mono 1.4.1
pedantic_mono #
[mono edition] How to get the most value from Dart static analysis.
https://github.com/dart-lang/pedantic + https://github.com/flutter/samples
Usage #
Install #
dev_dependencies:
pedantic_mono: any
Locate the analysis_options.yaml #
- Copy analysis_options.yaml to project root.
- Add your rules if needed.
[1.4.1]
- Split out
analysis_options_flutter_samples.yaml
- It is also valid to specify
include: package:pedantic_mono/analysis_options_flutter_samples.yaml
- More loose rules
[1.4.0]
- missing_required_param: warning
- missing_return: warning
[1.3.0]
- Add many linter rules.
[1.2.0]
Add these rules.
- sort_constructors_first
- sort_unnamed_constructors_first
[1.1.0]
Add these rules.
- prefer_const_constructors
- prefer_const_constructors_in_immutables
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
[1.0.0]
- Fix metadata.
[0.0.1]
- First release.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies:
pedantic_mono: ^1.4.1
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';
Popularity:
Describes how popular the package is relative to other packages.
[more]
|
55
|
Health:
Code health derived from static analysis.
[more]
|
99
|
Maintenance:
Reflects how tidy and up-to-date the package is.
[more]
|
100
|
Overall:
Weighted score of the above.
[more]
|
77
|
We analyzed this package on Nov 20, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.6.1
- pana: 0.12.21
Platforms
Detected platforms: Flutter, web, other
No platform restriction found in primary library
package:pedantic_mono/pedantic_mono.dart
.
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/README.md
.
For more information see the pub package layout conventions.
Dependencies
Package | Constraint | Resolved | Available |
---|---|---|---|
Direct dependencies | |||
Dart SDK | >=2.1.0 <3.0.0 | ||
Dev dependencies | |||
pedantic | ^1.8.0 |