Skip to content

Commit c65e113

Browse files
authored
List canonical topics in alphabetical order. (#8445)
1 parent 2b0608e commit c65e113

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

app/test/service/topics/topics_test.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ void main() {
7777
fail('The alias "$alias" is listed in "aliases" for two topics!');
7878
}
7979
}
80+
81+
// Check if names are in alphabetical order
82+
final orderedNames = topics.map((e) => e.topic).toList()..sort();
83+
if (orderedNames.join(',') != topics.map((e) => e.topic).join(',')) {
84+
fail('Topic entries are not in alpahbetical order.');
85+
}
8086
});
8187

8288
test('topics are canonicalized', () {

doc/topics.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,14 @@
5858
# The editorial guidelines are intended to evolve as we gain more experience
5959
# merging/managing topics.
6060
topics:
61-
- topic: widget
62-
description: Packages that contain Flutter widgets.
61+
- topic: form
62+
description: Packages that facilitate form display or processing.
6363
aliases:
64-
- widgets
64+
- forms
65+
- topic: i18n
66+
description: Packages that facilitate internationalization.
67+
aliases:
68+
- internationalization
6569
- topic: logging
6670
description: Packages for writing log messages.
6771
aliases:
@@ -72,11 +76,7 @@ topics:
7276
description: Packages that facilitate testing.
7377
aliases:
7478
- test
75-
- topic: i18n
76-
description: Packages that facilitate internationalization.
77-
aliases:
78-
- internationalization
79-
- topic: form
80-
description: Packages that facilitate form display or processing.
79+
- topic: widget
80+
description: Packages that contain Flutter widgets.
8181
aliases:
82-
- forms
82+
- widgets

0 commit comments

Comments
 (0)