dart-lint
dart-lint copied to clipboard
An opinionated, community-driven set of lint rules for Dart and Flutter projects. Like pedantic but stricter
I applied it in my project, but I haven' t find some way to quick fix the code.
In my bloc I have following code: ``` @override Stream mapEventToState(VerificationEvent event) async* { yield* event.when( loginRetry: (phoneNumber) => _loginRetry( phoneNumber ), verify: (phoneNumber, code) => _verify(phoneNumber, code), ); }...
I am not able to find a lint rule which can analyse and tell me if the variable or method can be private.
Hi, I freshly installed your linter package. I'm using bloc and bloc_test and get tons of issues because of "return_of_invalid_type_from_closure". ``` blocTest( 'emits [ScannerLoadingState, ScannerNotValidState, ScannerInitState] if token is valid',...
If I forgot to return value from method complier shows warning instead of error! why it's a default behavior?
`cancel_subscriptions` is disabled in pedantic because it has false positives when you use a utility method or class to call `cancel`. A similar lint rule `close_sinks` is also disabled following...
I wanted to ask if there is any rule that enforces documentation in Flutter code ? Like any rule that check if methods and attributes of a class are properly...