team_guard 1.0.4 copy "team_guard: ^1.0.4" to clipboard
team_guard: ^1.0.4 copied to clipboard

A powerful custom lint plugin for Dart and Flutter that prevents the use of forbidden widgets in your team projects. Configure which widgets are not allowed and get real-time feedback.

example/team_guard_example.dart

/// Team Guard setup example.
///
/// 1) Add dependencies:
///
/// ```yaml
/// dev_dependencies:
///   team_guard: ^1.0.3
///   custom_lint: ^0.8.1
/// ```
///
/// 2) Install packages:
///
/// ```bash
/// flutter pub get
/// # or
/// dart pub get
/// ```
///
/// 3) Initialize Team Guard:
///
/// ```bash
/// dart run team_guard:init
/// ```
///
/// 4) Example `team_guard.yaml`:
///
/// ```yaml
/// widgets:
///   Text:
///     replacement: CustomText
///     import: package:your_app/widgets/custom_text.dart
///     severity: warning
///
///   GestureDetector:
///     replacement: AppGestureDetector
///     severity: error
///
/// classes:
///   Colors:
///     replacement: AppColors
///     import: package:your_app/theme/app_colors.dart
///     severity: warning
/// ```
///
/// 5) Run lint:
///
/// ```bash
/// dart run custom_lint
/// ```
///
/// Notes:
/// - In `team_guard.yaml`, `import` value is a package path only.
/// - Do not write: `import 'package:...';`
void main() {}
6
likes
0
points
266
downloads

Publisher

unverified uploader

Weekly Downloads

A powerful custom lint plugin for Dart and Flutter that prevents the use of forbidden widgets in your team projects. Configure which widgets are not allowed and get real-time feedback.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, custom_lint_builder, yaml

More

Packages that depend on team_guard