Skip to content

Commit 3c4ee10

Browse files
authored
Allow-list sh as a code-snippet type. (#152196)
Otherwise I get the following failure on CI: ```txt packages/flutter_driver/lib/src/native/android.dart:123: Found "```" in code but it did not match RegExp: pattern=^ */// *```dart$ flags= so something is wrong. Line was: " /// ```sh" Found 1 snippet code errors. See the documentation at the top of dev/bots/analyze_snippet_code.dart for details. ``` It seems reasonable to put a reference to a shell command in a Dartdoc comment.
1 parent 7912e6d commit 3c4ee10

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dev/bots/analyze_snippet_code.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,8 @@ class _SnippetChecker {
677677
line.contains('```swift') ||
678678
line.contains('```glsl') ||
679679
line.contains('```json') ||
680-
line.contains('```csv')) {
680+
line.contains('```csv') ||
681+
line.contains('```sh')) {
681682
inOtherBlock = true;
682683
} else if (line.startsWith(_uncheckedCodeBlockStartRegex)) {
683684
// this is an intentionally-unchecked block that doesn't appear in the API docs.

0 commit comments

Comments
 (0)