Skip to content

Commit 41d9968

Browse files
authored
Escalate missing_return hints to warnings (flutter#8825)
Fixes: flutter/flutter-intellij#808
1 parent cf08b44 commit 41d9968

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.analysis_options

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ analyzer:
2626
errors:
2727
# treat missing required parameters as a warning (not a hint)
2828
missing_required_param: warning
29+
# treat missing returns as a warning (not a hint)
30+
missing_return: warning
2931
# allow overriding fields (if they use super, ideally...)
3032
strong_mode_invalid_field_override: ignore
3133
# allow type narrowing

.analysis_options_repo

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ analyzer:
2727
errors:
2828
# treat missing required parameters as a warning (not a hint)
2929
missing_required_param: warning
30+
# treat missing returns as a warning (not a hint)
31+
missing_return: warning
3032
# allow overriding fields (if they use super, ideally...)
3133
strong_mode_invalid_field_override: ignore
3234
# allow type narrowing

packages/flutter/lib/analysis_options_user.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ analyzer:
2727
errors:
2828
# treat missing required parameters as a warning (not a hint)
2929
missing_required_param: warning
30+
# treat missing returns as a warning (not a hint)
31+
missing_return: warning
3032
# allow overriding fields (if they use super, ideally...)
3133
strong_mode_invalid_field_override: ignore
3234
# allow type narrowing

0 commit comments

Comments
 (0)