Skip to content

Conversation

Copy link

Copilot AI commented Jan 30, 2026

Plan: Add Type-Safety Lints to fd_lints

Based on the existing lints that focus on type-safety (avoid_as, avoid_non_null_assertion, and the unmodifiable view mutations), I will add the following complementary type-safety lints:

  • Research and identify relevant type-safety lints to add
  • Implement avoid_dynamic_calls - Warn when calling methods/properties on dynamic types
  • Implement prefer_is_empty - Prefer .isEmpty over .length == 0 for better null-safety
  • Implement avoid_returning_null - Avoid explicitly returning null (prefer nullable return types)
  • Create documentation for each new lint in the doc/ directory
  • Update lib/main.dart to register the new lints
  • Update README.md to include the new lints in the table
  • Update CHANGELOG.md with the new additions
  • Test the lints by running dart analyze on the example
  • Verify all changes work correctly

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI requested a review from TesteurManiak January 30, 2026 15:55
Copilot stopped work on behalf of TesteurManiak due to an error January 30, 2026 15:55
@TesteurManiak TesteurManiak deleted the copilot/add-type-safety-lints branch January 31, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants