innim_lint 0.5.0+1 copy "innim_lint: ^0.5.0+1" to clipboard
innim_lint: ^0.5.0+1 copied to clipboard

The Dart analyzer settings and linter rules used at Innim for Dart and Flutter projects. Stricter than pedantic.

innim_lint #

pub package Analyze & Test

This package contains analysis settings for Flutter/Dart projects and packages by Innim team.

It's stricter than pedantic.

See Customizing static analysis.

Usage #

To use the lints add a dev dependency in your pubspec.yaml:

dev_dependencies:
  innim_lint: ^0.5.0

then, add an include in your analysis_options.yaml:

include: package:innim_lint/analysis_options.yaml

Unawaited #

Not all futures need to be awaited. By default "unawaited futures" lint enabled which enforces that potential futures in asynchronous functions are handled somehow. If a particular future value doesn't need to be awaited, you can call unawaited(...) with it, which will avoid the lint, simply because the expression no longer has type Future.

Function unawaited appeared in dart:async since 2.15.

Disable some rules #

You can disable some rules in your project. Add in your analysis_options.yaml:

linter:
  rules:
    prefer_single_quotes: false

Exclude from analysis #

You can exclude some files from analysis - see Excluding code from analysis.

By default all generated code (files with .g.dart suffix) will be excluded with this analysis settings.

4
likes
130
pub points
51%
popularity

Publisher

verified publisherinnim.ru

The Dart analyzer settings and linter rules used at Innim for Dart and Flutter projects. Stricter than pedantic.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on innim_lint