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

A CLI tool for verifying presence of ValueKey elements and test dependencies in Flutter projects.

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.

1.0.4 - 2025-01-03 #

๐Ÿ”ง Platform Support #

  • Added explicit platform constraints in pubspec.yaml (Linux, macOS, Windows)
  • Clarified that this CLI tool is not compatible with Web/WASM by design (uses dart:io)
  • Improved pub.flutter-io.cn platform support scoring

1.0.3 - 2025-01-03 #

๐Ÿ“š Documentation #

  • Added comprehensive dartdoc comments for better API documentation
  • Created example/ directory with sample usage
  • Added example Flutter app with ValueKey usage
  • Improved pub.flutter-io.cn score compliance

1.0.2 - 2025-01-03 #

๐Ÿ› Bug Fixes #

  • Fixed dependency version conflict: downgraded lints from ^5.0.0 to ^3.0.0 for Dart 3.2.0 compatibility
  • Fixed GitHub Actions workflow paths and YAML syntax

1.0.1 - 2025-01-03 #

๐Ÿ› Bug Fixes

  • Fixed release date in changelog from placeholder to actual date

1.0.0 - 2025-01-03 #

๐ŸŽ‰ Initial Release #

โœจ Features

  • Key Validation Engine: Comprehensive Flutter key detection and validation

    • Support for ValueKey and Key declarations
    • Support for find.byValueKey, find.bySemanticsLabel, find.byTooltip finders
    • Regex-based pattern matching for accurate key detection
  • Project Dependency Validation

    • Automatic detection of integration_test dependency
    • Automatic detection of appium_flutter_server dependency
    • Validation of proper integration test setup
  • CLI Interface

    • --keys flag for specifying YAML key definitions
    • --path flag for custom project paths
    • --strict mode for catching extra keys
    • --verbose flag for detailed output
  • YAML Configuration Support

    • Simple key list format
    • Support for dynamic keys with placeholders
    • Comments and organization support
  • Beautiful Console Output

    • Colorful ANSI output with emojis
    • Structured sections for different validation types
    • Clear success/failure indicators
    • File path reporting for found keys

๐Ÿ› ๏ธ Technical Features

  • Cross-platform compatibility (Windows, macOS, Linux)
  • Recursive directory scanning
  • Efficient regex-based key detection
  • Comprehensive error handling
  • Unit test coverage

๐Ÿ“ฆ Package Structure

  • Clean library API with KeyChecker class
  • Separated CLI and core functionality
  • Example project with integration tests
  • Comprehensive documentation

๐Ÿงช Testing & Quality

  • Unit tests for core functionality
  • Integration test examples
  • Linting with package:lints
  • Code coverage reporting

๐Ÿš€ Getting Started #

dart pub global activate flutter_keycheck
flutter_keycheck --keys expected_keys.yaml

๐Ÿ“‹ Requirements #

  • Dart SDK >= 3.2.0
  • Flutter project with integration tests (for full validation)

Future Roadmap #

๐Ÿ”ฎ Planned Features (v1.1.0+) #

  • โŒ Auto-generation of expected_keys.yaml from existing code
  • โŒ Support for additional finder methods (find.text, find.byIcon)
  • โŒ HTML/Markdown report generation
  • โŒ Monorepo support with multiple pubspec.yaml files
  • โŒ Auto-fix capabilities for missing keys
  • โŒ Plugin architecture for custom checkers
  • โŒ Integration with popular CI/CD platforms

๐Ÿ’ก Ideas Under Consideration #

  • JSON configuration format support
  • Key usage analytics and statistics
  • Integration with Flutter Inspector
  • VS Code extension for real-time validation
  • GitHub App for automated PR checks

For the complete list of changes, see the commit history.

0
likes
0
points
77
downloads

Publisher

unverified uploader

Weekly Downloads

A CLI tool for verifying presence of ValueKey elements and test dependencies in Flutter projects.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ansicolor, args, cli_util, glob, path, yaml

More

Packages that depend on flutter_keycheck