go_router_linter 0.4.0 copy "go_router_linter: ^0.4.0" to clipboard
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_handler to warn when GoRouter is constructed without an errorBuilder or errorPageBuilder.
  • Extended avoid_hardcoded_routes to report hardcoded initialLocation strings in GoRouter constructors.

0.3.0 - 2026-05-23 #

Added #

  • Added avoid_navigator_named_routes_with_go_router to discourage Navigator.*Named APIs when the analyzed project depends on go_router.
  • Added behavior tests for strengthened and new go_router lint rules.

Changed #

  • Expanded use_context_directly_for_go_router to cover current GoRouterHelper methods such as namedLocation, canPop, and pop, while ignoring unrelated GoRouter.of(context) access.
  • Updated avoid_hardcoded_routes to 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 #

Changed #

  • Breaking: Upgraded minimum Dart SDK to ^3.9.0
  • Updated analyzer dependency to ^8.4.0
  • Updated custom_lint_builder dependency to ^0.8.1
  • Configured workspace resolution for monorepo support

Fixed #

  • Suppressed discarded_futures lint warning

0.1.9 - 2025-01-10 #

Changed #

  • update dependencies for go_router_linter and melos
  • remove overridden dependencies

0.1.8 - 2024-12-24 #

Changed #

  • fix: ๐Ÿ“Œ force upgrade the version of analyzer by adding a dependency_overrides section

0.1.7 - 2024-12-24 #

Changed #

  • fix: โฌ†๏ธ upgrade dart pub dependencies

0.1.6 - 2024-12-18 #

Added #

  • test: ๐Ÿงช add an extension method test case
  • docs: ๐Ÿ“ update HTML documents generated with dart doc

Changed #

  • refactor: โ™ป๏ธ change folder structure and adding document comments

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

0.1.4 - 2024-12-03 #

Added #

  • added new linter: declare name attribute when using GoRoute

0.1.3+1 - 2024-11-21 #

Added #

  • add example application

Fixed #

  • fixed tests

0.1.2+1 - 2024-11-21 #

Added #

  • add documentation and format source codes

0.1.0+1 - 2024-11-19 #

Added #

  • add GoRouter.of(context) usage restriction lint
9
likes
150
points
65
downloads

Documentation

API reference

Publisher

verified publisherdonminzzi.kr

Weekly Downloads

A custom linting package designed to enhance code quality and consistency when using the `go_router` package

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

analyzer, custom_lint_builder

More

Packages that depend on go_router_linter