go_router_linter 0.4.0
go_router_linter: ^0.4.0 copied to clipboard
A custom linting package designed to enhance code quality and consistency when using the `go_router` package
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.4.0 - 2026-05-23 #
Added #
- Added
missing_go_router_error_handlerto warn whenGoRouteris constructed without anerrorBuilderorerrorPageBuilder. - Extended
avoid_hardcoded_routesto report hardcodedinitialLocationstrings inGoRouterconstructors.
0.3.0 - 2026-05-23 #
Added #
- Added
avoid_navigator_named_routes_with_go_routerto discourageNavigator.*NamedAPIs when the analyzed project depends ongo_router. - Added behavior tests for strengthened and new go_router lint rules.
Changed #
- Expanded
use_context_directly_for_go_routerto cover current GoRouterHelper methods such asnamedLocation,canPop, andpop, while ignoring unrelatedGoRouter.of(context)access. - Updated
avoid_hardcoded_routesto check route identifier arguments only and to report hardcoded redirect callback return strings. - Updated README, examples, and package docs for the current rule set.
0.2.0 - 2026-02-09 #
0.1.9 - 2025-01-10 #
Changed #
- update dependencies for
go_router_linterandmelos - remove overridden dependencies
0.1.8 - 2024-12-24 #
Changed #
- fix: ๐ force upgrade the version of
analyzerby adding adependency_overridessection
0.1.6 - 2024-12-18 #
0.1.5 - 2024-12-11 #
Added #
- added a rule to prevent hardcoded strings from being used as URLs in go_router
Fixed #
- ๐ updating documentation for new lint rules
Changed #
- upgrade example flutter project dependencies
- upgrade test package
- separate directories for dart files by purpose
- โก๏ธ modify rule to prevent hardcoded URLs from being used even when using GoRouter
- โก๏ธ added string helper methods to support other routing functions