dart-lint icon indicating copy to clipboard operation
dart-lint copied to clipboard

An opinionated, community-driven set of lint rules for Dart and Flutter projects. Like pedantic but stricter

Results 18 dart-lint issues
Sort by recently updated
recently updated
newest added

This rule is also enabled in the official lints package as part of the recommended rule set: https://github.com/dart-lang/lints/blob/main/lib/recommended.yaml

Enables `unawaited_futures`. Where Futures are intentionally not awaited, users can disable this lint with `fireAndForget` which exists as top-level function and extension. It is identical to [`unawaited`](https://github.com/google/pedantic/blob/master/lib/pedantic.dart) from pedantic. ```dart...

You can see the lint works above the test method but inside isn't ![image](https://user-images.githubusercontent.com/13632735/129249645-9bbf29c8-2e39-40a8-ac91-da383d5eabdd.png)

Please have a look at https://github.com/dart-lang/linter/issues/3286 to see why it is wrong. So, shall we disable it?

When using lint 1.5.1 In the following switch statement there are two cases that both check if char = ' '. The lint incorrectly marks the second test as invariant_booleans...

I think these 2 errors contradict each other lint: ^1.6.0 ``` abstract class IContent { final String? name; IContent({ this.name, }); } class Content extends IContent { // 2 conflicting...

I got massive errors from the analyzer includes: - `argument_type_not_assignable ` - `field_initializer_not_assignable ` Most of them are from the `Map json` parsing to a model class. I tried to...

Hey! I just set up lint on my project (Relatively late because I just found out about it now) and I get the error "Inspect 'Annotator' options" in a lot...

# Too many false positives. # Using the pedantic package for the unawaited function doesn't make code better readable # # pedantic: enabled # https://dart-lang.github.io/linter/lints/unawaited_futures.html # - unawaited_futures As above...