throws_lints 1.0.0
throws_lints: ^1.0.0 copied to clipboard
Lint rules that ensure functions throwing exceptions are properly documented with @throws annotations.
1.0.0 #
Initial Release #
Features:
- Added
@throwsannotation for documenting exception-throwing behavior - Implemented three complementary lint rules:
missing_throws_annotation- Ensures functions that throw exceptions directly are annotated with@throwsthrowing_function_calls_require_throws- Ensures functions calling other@throwsfunctions are also annotatedunnecessary_throws_annotation- Prevents using@throwson functions that don't actually throw
- Smart try-catch analysis to avoid false positives when exceptions are properly caught
- Support for direct throws, rethrows, and transitive throwing through function calls
- Comprehensive test suite with 65+ test cases covering various edge cases
- Full documentation and examples