Skip to content

ignore avoid_type_to_string lint rule#184765

Merged
srawlins merged 2 commits intoflutter:masterfrom
srawlins:atts-dev
Apr 21, 2026
Merged

ignore avoid_type_to_string lint rule#184765
srawlins merged 2 commits intoflutter:masterfrom
srawlins:atts-dev

Conversation

@srawlins
Copy link
Copy Markdown
Contributor

@srawlins srawlins commented Apr 8, 2026

This change just ignores existing violations of avoid_type_to_string, which is enabled here, but hasn't been working. To get it working, for dart-lang/sdk#58377, we need to clean up these violations.

An alternative to this change would be to disable this rule in dev/bots/analysis_options.yaml

This change just ignores existing violations of avoid_type_to_string, which is enabled here, but hasn't been working. To get it working, for dart-lang/sdk#58377, we need to clean up these violations.

An alternative to this change would be to ignore this rule in dev/bots/analysis_options.yaml
@srawlins srawlins added the CICD Run CI/CD label Apr 8, 2026
Copy link
Copy Markdown
Contributor

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

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 adds lint suppression for avoid_type_to_string in the toString methods of PreparePackageException and UnpublishException. The review feedback suggests hardcoding the class names instead of ignoring the lint to ensure the output remains reliable after code minification.

Comment thread dev/bots/prepare_package/common.dart
Comment thread dev/bots/unpublish_package.dart
@Piinks
Copy link
Copy Markdown
Contributor

Piinks commented Apr 20, 2026

@srawlins would you prefer to land this? Or should I send a PR to migrate these?

@srawlins
Copy link
Copy Markdown
Contributor Author

I'd prefer to land this.

@srawlins srawlins enabled auto-merge April 20, 2026 21:50
@github-actions github-actions bot removed the CICD Run CI/CD label Apr 20, 2026
@srawlins srawlins added the CICD Run CI/CD label Apr 20, 2026
@Piinks Piinks added the framework flutter/packages/flutter repository. See also f: labels. label Apr 20, 2026
Copy link
Copy Markdown
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

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

SGTM.. and LGTM. Filed #185310 for us to follow up. I am about to go out of town so I'll probably pick it up when I get back, unless someone else does while I am out. :)

@srawlins srawlins added this pull request to the merge queue Apr 20, 2026
Merged via the queue into flutter:master with commit 9e0ea0a Apr 21, 2026
166 checks passed
@srawlins srawlins deleted the atts-dev branch April 21, 2026 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants