extra_pedantic 1.2.0

  • Readme
  • Changelog
  • Installing
  • 87

extra_pedantic #

Medium extra_pedantic on pub.dev Pub.dev Github Stars Twitter Follow GitHub Follow

How to get the most, most value from Dart static analysis.

This is an alternative to pedantic with many additional rules.

It does contain all pedantic rules and many more.

To use extra_pedantic add it as a dev_dependency:

dev_dependencies:
  extra_pedantic: 1.2.0

Add this line to your analysis_options.yaml file

include: package:extra_pedantic/analysis_options.yaml

or if you want to enforce sort_child_properties_last and disable always_put_required_named_parameters_first (for Flutter projects)

include: package:extra_pedantic/analysis_options_flutter.yaml

And you're done.

The static analyzer might show you thousands of warnings, but that's OK. Fix them on your terms and you'll drastically improve your code quality, reduce ambiguity and the number of bugs in your codebase.

Badge #

Feel free to add this badge to your README.

[![extra_pedantic on pub.dev](https://img.shields.io/badge/style-extra__pedantic-blue)](https://pub.dev/packages/extra_pedantic)

Note: #

extra_pedantic does not contain any dart code. If you want to use unawaited, you'll have to add pedantic as a normal dependency.

1.2.0 (2020-03-21) #

  • enabled strict inference
  • enabled strict raw types

1.1.1+3 (2019-11-3) #

  • Readme updated

1.1.1+2 (2019-10-25) #

  • Badges added

1.1.1+1 (2019-10-22) #

  • Longer description

1.1.1 (2019-10-19) #

  • Removed diagnostic_describe_all_properties

1.1.0 (2019-10-09) #

  • Separated into flutter and non flutter analysis_options.yaml
  • Made rules fully compatible with pedantic

1.0.0 (2019-08-16) #

  • Initial version

Use this package as a library

1. Depend on it

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


dependencies:
  extra_pedantic: ^1.2.0

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.

Popularity:
Describes how popular the package is relative to other packages. [more]
86
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
87
Learn more about scoring.

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

  • Dart: 2.7.1
  • pana: 0.13.6

Maintenance issues and suggestions

No valid SDK. (-20 points)

The analysis could not detect a valid SDK that can use this package.

Make sure dartdoc successfully runs on your package's source files. (-10 points)

exitCode: 255 stdout: parsing /dart-sdk/lib/async/async.dart... parsing /dart-sdk/lib/collection/collection.dart... parsing /dart-sdk/lib/internal/internal.dart... parsing /dart-sdk/lib/convert/convert.dart... parsing /dart-sdk/lib/typed_data/typed_data.dart... parsing /dart-sdk/lib/core/core.dart... parsing /dart-sdk/lib/math/math.dart... parsing /dart-sdk/lib/developer/developer.dart... parsing /dart-sdk/lib/isolate/isolate.dart... parsing /dart-sdk/lib/ffi/ffi.dart... parsing /dart-sdk/lib/html/dart2js/html_dart2js.dart... parsing /dart-sdk/lib/html/html_common/html_common_dart2js.dart... parsing /dart-sdk/lib/web_gl/dart2js/web_gl_dart2js.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/native_typed_data.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/interceptors.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/shared/embedded_names.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/js_helper.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/foreign_helper.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/js_names.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/rti.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/shared/recipe_syntax.dart... parsing /dart-sdk/lib/js_util/dart2js/js_util_dart2js.dart... parsing /dart-sdk/lib/html/html_common/metadata.dart... parsing /dart-sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart... parsing /dart-sdk/lib/svg/dart2js/svg_dart2js.dart... parsing /dart-sdk/lib/web_audio/dart2js/web_audio_dart2js.dart... parsing /dart-sdk/lib/web_sql/dart2js/web_sql_dart2js.dart... parsing /dart-sdk/lib/_http/http.dart... parsing /dart-sdk/lib/io/io.dart... parsing /dart-sdk/lib/js/dart2js/js_dart2js.dart... parsing /dart-sdk/lib/js/_js.dart... parsing /dart-sdk/lib/mirrors/mirrors.dart... parsing /dart-sdk/lib/html/dartium/nativewrappers.dart... parsing /dart-sdk/lib/cli/cli.dart... parsing /dart-sdk/lib/wasm/wasm.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/js_primitives.dart... parsing /dart-sdk/lib/_internal/js_runtime/lib/shared/async_await_error_codes.dart... Initialized dartdoc with 37 libraries in 28.8 seconds documenting extra_pedantic Validating docs... no issues found Documented 0 public libraries in 1.5 seconds stderr: Documenting extra_pedantic... Unhandled exception: dartdoc could not find any libraries to document #0 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:196:7)

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >2.2.2 <3.0.0