Skip to content
pubscout

team_guard

1.0.19, released 4 weeks ago by an unverified publisher

Custom lint plugin to block forbidden Flutter widgets and enforce team architectural rules.

$ flutter pub add team_guard
Source repository

What it does

Team Guard is a custom lint plugin that restricts forbidden widgets, classes, and functions across Flutter projects. It guides developers toward approved design system replacements using IDE Quick Fixes, automated migrations, and terminal audit commands.

AI-written summary of version 1.0.19, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to enforce design system rules and prevent usage of raw widgets like Text or Colors.
  • You need automated project-wide codebase migration for forbidden widgets.
  • You want to run terminal audits and CI/CD checks for unauthorized code patterns.

Skip it when

  • Your project does not use custom lint plugins or static analyzer extensions.
  • You prefer manual code reviews over automated lint enforcement for architectural rules.

Strengths

  • Provides automated bulk codebase migration via CLI.
  • Offers one-click IDE Quick Fixes and batch fixing for files.
  • Avoids false positives with PDF libraries and local variables through semantic analysis.

Weaknesses

  • Requires proper setup of the external custom_lint analyzer plugin in your IDE and analysis options.
  • Limited to rule definitions configured in team_guard.yaml.

Setup

Kind
Pure Dart
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
5

Add team_guard to dev_dependencies, run dart run team_guard:setup to generate team_guard.yaml and configure analysis_options.yaml, and ensure the Custom Lint extension is installed in your IDE.

widgets:
  Text:
    replacement: CustomText
    severity: error
    reason: Always use CustomText to enforce typography scale and localization.

Alternatives

Packages that do the same job and could replace team_guard.

  • flame_lint

    A strict and satisfying lint package for Flame, Flutter, or Dart projects.

  • lints

    Official Dart team lint rules for core and recommended static analysis settings.

  • flint

    Stricter analyzer lint rules used in Forus Labs' Dart & Flutter projects.

  • jaspr_lints

    A collection of lints and code assists for Jaspr projects.

Works with

Packages commonly used together with team_guard: ones it builds on, ones built on it, and its own family.