-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelinter-lint-proposallinter-status-pendingtype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
avoid_mixing_comment_identifiers
Description
It is possible to accidentally mix dartdoc comments and normal comments. This is especially true when you have a long chunk of documentation. Ideally the lint will be able to identify such erroneous usage of //s in the middle of ///s.
/// Applies a theme to descendant widgets.
///
/// A theme configures the colors and typographic choices of Forui widgets. The actual configuration is stored in
/// a [FThemeData]. Descendant widgets obtain the current theme's [FThemeData] via either [ThemeBuildContext.theme],
/// or [FTheme.of]. When a widget uses either, it is automatically rebuilt if the theme later changes.
///
/// ```dart
/// class Parent extends StatelessWidget {
/// @override
/// Widget build(BuildContext context) => FTheme(
/// data: FThemes.zinc.light,
/// child: Child(),
/// );
/// }
///
// class Child extends StatelessWidget { // <-- This line will not be included in the generated Dartdocs.
/// @override
/// Widget build(BuildContext context) {
/// final FThemeData theme = context.theme;
/// final FThemeData sameTheme = FTheme.of(context);
/// return const Placeholder();
/// }
/// }
/// ```Details
Give a detailed description that should provide context and motivation. Ideally this could be used directly in the rule's documentation.
Kind
- Guard against errors
Bad Examples
Add a few examples that demonstrate where this lint should fire.
Good Examples
Add a few examples that demonstrate a “good” adoption of this lint’s principle.
Discussion
Add any other motivation or useful context here.
srawlins
Metadata
Metadata
Assignees
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelinter-lint-proposallinter-status-pendingtype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug