Skip to content

Commit da502f8

Browse files
pqcommit-bot@chromium.org
authored andcommitted
add assist association for curly_braces_in_flow_control_structures
See: https://github.com/dart-lang/linter/issues/1374 Change-Id: I151170ee2374a726dc6be037b25e1c7a54729bec Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/115266 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Phil Quitslund <[email protected]>
1 parent 0a27240 commit da502f8

File tree

1 file changed

+5
-2
lines changed
  • pkg/analysis_server/lib/src/services/correction

1 file changed

+5
-2
lines changed

pkg/analysis_server/lib/src/services/correction/assist.dart

+5-2
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ class DartAssistKind {
232232
'dart.assist.surround.tryFinally', 29, "Surround with 'try-finally'");
233233
static const SURROUND_WITH_WHILE = const AssistKind(
234234
'dart.assist.surround.while', 24, "Surround with 'while'");
235-
static const USE_CURLY_BRACES =
236-
const AssistKind('USE_CURLY_BRACES', 30, "Use curly braces");
235+
static const USE_CURLY_BRACES = const AssistKind(
236+
'USE_CURLY_BRACES', 30, "Use curly braces",
237+
associatedErrorCodes: <String>[
238+
'curly_braces_in_flow_control_structures',
239+
]);
237240
}

0 commit comments

Comments
 (0)