Skip to content

新增特性#7

Open
lizy-coding wants to merge 13 commits into
mainfrom
develop
Open

新增特性#7
lizy-coding wants to merge 13 commits into
mainfrom
develop

Conversation

@lizy-coding

Copy link
Copy Markdown
Owner

No description provided.

lizy-coding and others added 13 commits May 31, 2026 20:44
支持 window 插件运行
… README, CHANGELOG, fix fixture Flutter imports
Adds ProjectResolver class that walks up directories to find project root
by detecting flutterguard.yaml, pubspec.yaml, or lib/ directory.
Also provides config path resolution with CWD/project-relative fallback.
Adds 5 new rule implementations for IoT Flutter analysis:
- device_lifecycle: init/teardown pair checks (initState↔dispose, etc.)
- mqtt_connection: connect/disconnect pairing, subscribe/unsubscribe, hardcoded broker URLs
- ble_scanning: startScan/stopScan pairing, connect/disconnect, scan timeout
- iot_security: hardcoded secrets, cleartext MQTT/HTTP, insecure BLE
- pubspec_security: unbounded deps, deprecated packages, outdated IoT versions
- config_loader: add typed config typedefs for 5 new IoT rules
- scanner: import and invoke all 5 new rules in analysis pipeline
- flutterguard.dart: support positional path, --no-color flag, version 0.2.0
- report_generator: add --no-color ANSI suppression
- flutterguard_cli.dart: export new rule classes and utilities
- pubspec.yaml: bump version to 0.2.0
Adds 6 new test cases:
- iot_security: hardcoded secrets, cleartext MQTT/HTTP, insecure BLE
- device_lifecycle: init/teardown pair detection
- mqtt_connection: connect without disconnect, hardcoded broker URL
- ble_scanning: startScan without stopScan
- pubspec_security: outdated deps, deprecated packages, unbounded deps
- IoT rules respect disabled config
Adds CI/CD infrastructure:
- .github/workflows/flutterguard.yml: matrix CI (ubuntu/macos/windows)
- scripts/compile.sh / compile.ps1: cross-platform native binary compilation
- scripts/scan_ci.sh / scan_ci.ps1: local CI gate scripts
Updates all documentation for the v0.2.0 release with IoT rules:
- AGENTS.md files: reflect 11 rule classes / 13 rule IDs, new file inventory
- CHANGELOG.md: add v0.2.0 entry with all new features
- README.md / README.zh.md: comprehensive rewrite with IoT rules, CI integration,
  scoring, CLI reference, and developer setup instructions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant