must_be_handled 0.1.4
must_be_handled: ^0.1.4 copied to clipboard
A Dart analyzer plugin that enforces explicit error-handling contracts at compile time using the @mustBeHandled annotation.
Changelog #
0.1.4 #
- Updated to
custom_lint ^0.8.1andanalyzer ^8.4.0 - Added explicit
analyzer_plugin ^0.13.10dependency for stability - Fixed annotation detection for both const variable and constructor forms
- Improved Future type detection for async function handling
0.1.3 #
- Fixed API compatibility issues with analyzer 8.x element model
- Corrected
PropertyAccessorElement.variableandConstructorElement.enclosingElementusage - Fixed
InterfaceType.elementaccess for Future type checking
0.1.2 #
- Migrated to
custom_lintpackage for better IDE integration - Fixed compatibility with analyzer 8.x
- Improved error messages and correction hints
- Added CLI support via
dart run custom_lint
0.1.0 #
- Initial release
@mustBeHandledannotation for marking functions requiring error handling- Support for sync functions (requires try/catch)
- Support for async functions (requires await + try/catch)
- Three distinct lint codes for different violation types