Skip to content

[analysis] Migrate issue and repository link syntax rules to flutter_analyzer_plugin - #191127

Open
bkonyi wants to merge 7 commits into
flutter:masterfrom
bkonyi:migrate_link_syntax_rules
Open

[analysis] Migrate issue and repository link syntax rules to flutter_analyzer_plugin#191127
bkonyi wants to merge 7 commits into
flutter:masterfrom
bkonyi:migrate_link_syntax_rules

Conversation

@bkonyi

@bkonyi bkonyi commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Migrates verifyIssueLinks and verifyRepositoryLinks from dev/bots/analyze.dart to AST-based AnalysisRules in dev/flutter_analyzer_plugin.

Changes

  • Implements IssueLinkSyntax in dev/flutter_analyzer_plugin/lib/src/rules/issue_link_syntax.dart.
  • Implements RepositoryLinkSyntax in dev/flutter_analyzer_plugin/lib/src/rules/repository_link_syntax.dart.
  • Adds unit tests in dev/flutter_analyzer_plugin/test/issue_link_syntax_test.dart and dev/flutter_analyzer_plugin/test/repository_link_syntax_test.dart.
  • Registers both rules in dev/flutter_analyzer_plugin/lib/main.dart.
  • Removes verifyIssueLinks, verifyRepositoryLinks, 'issue-links', and 'repository-links' from dev/bots/analyze.dart and dev/bots/test/analyze_test.dart.

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Aug 14, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates the issue link and repository link validation checks from the legacy analyze.dart script into the flutter_analyzer_plugin as two new analyzer rules: IssueLinkSyntax and RepositoryLinkSyntax. The review feedback suggests preventing IssueLinkSyntax from self-triggering on its own source file, and adding support for analyzing adjacent string literals in both rules to ensure split links are correctly validated without double-reporting.

Comment thread dev/flutter_analyzer_plugin/lib/src/rules/issue_link_syntax.dart Outdated
Comment thread dev/flutter_analyzer_plugin/lib/src/rules/issue_link_syntax.dart
Comment thread dev/flutter_analyzer_plugin/lib/src/rules/issue_link_syntax.dart
Comment thread dev/flutter_analyzer_plugin/lib/src/rules/issue_link_syntax.dart
@github-actions github-actions Bot added framework flutter/packages/flutter repository. See also f: labels. f: scrolling Viewports, list views, slivers, etc. labels Aug 14, 2026
@bkonyi
bkonyi requested a review from srawlins August 15, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant