Skip to content

Commit 26fc976

Browse files
gnpricechrisbobbe
authored andcommitted
lint: Enable always_declare_return_types
Otherwise the syntax for a function declaration looks a lot like that for a function call.
1 parent 0dba166 commit 26fc976

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ linter:
2121
# For a list of all available lints, with docs, see:
2222
# https://dart-lang.github.io/linter/lints/index.html.
2323
rules:
24+
always_declare_return_types: true
2425
no_literal_bool_comparisons: true
2526
prefer_relative_imports: true
2627
unnecessary_statements: true

0 commit comments

Comments
 (0)