This package serves three purposes:
Note that everything here fits within the guidelines set out in Effective Dart. You could think of that document as the design and this package as one possible partial implementation.
Here is how static analysis is used internally at Google:
TODOhint is a permanent exception.
The currently enabled lints can be found in the sample analysis_options.yaml.
To use those lints you can add a dev dependency in your
dev_dependencies: pedantic: '1.1.0'
and add an include in your
The following lints have been considered and will not be enforced:
violates Effective Dart "DO format your code using dartfmt". See note about
Flutter SDK style below.
violates Effective Dart "AVOID type annotating initialized local variables"
and others. See note about Flutter SDK style below.
does not reflect standard usage. See note about Flutter SDK style below.
is superfluous, enforcing use of
dartfmt is sufficient to make empty
is obsolete in Dart 2; bool is required in asserts.
does not reflect standard usage.
Note on Flutter SDK Style: some lints were created specifically to support Flutter SDK development. Flutter app developers should instead use standard Dart style as described in Effective Dart, and should not use these lints.
Please file feature requests and bugs at the issue tracker.
libso you can import it directly from your own
unawaitedmethod for silencing the
Add this to your package's pubspec.yaml file:
dependencies: pedantic: ^1.1.0
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|1.1.0||Sep 5, 2018|
|1.0.0||Aug 23, 2018|
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]
We analyzed this package on Sep 18, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter, web, other
No platform restriction found in primary library
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Maintain an example.
Create a short demo in the
example/ directory to show how to use this package. Common file name patterns include:
example.dart or you could also use
|Dart SDK||>=2.0.0 <3.0.0|