Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 4606098

Browse files
committed
Updated description and details as per Style Guide discussion.
See: dart-archive/www.dartlang.org#1239
1 parent 433b21d commit 4606098

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/src/rules/unnecessary_brace_in_string_interp.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ import 'package:dart_lint/src/linter.dart';
1010

1111
final RegExp alphaNumeric = new RegExp(r'^[a-zA-Z0-9]');
1212

13-
const desc = 'AVOID bracketed interpolation of simple identifiers';
13+
const desc = 'AVOID using braces in interpolation when not needed.';
1414

1515
const details = r'''
16-
AVOID bracketed interpolation of simple identifiers.
16+
**AVOID** using braces in interpolation when not needed.
17+
18+
If you're just interpolating a simple identifier, and it's not immediately
19+
followed by more alphanumeric text, the ``{}`` can and should be omitted.
1720
1821
**GOOD:**
1922
```dart

0 commit comments

Comments
 (0)