throws_lints 1.0.0 copy "throws_lints: ^1.0.0" to clipboard
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 @throws annotation for documenting exception-throwing behavior
  • Implemented three complementary lint rules:
    • missing_throws_annotation - Ensures functions that throw exceptions directly are annotated with @throws
    • throwing_function_calls_require_throws - Ensures functions calling other @throws functions are also annotated
    • unnecessary_throws_annotation - Prevents using @throws on 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
1
likes
150
points
47
downloads

Publisher

verified publishernetwriper.com

Weekly Downloads

Lint rules that ensure functions throwing exceptions are properly documented with @throws annotations.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analysis_server_plugin, analyzer

More

Packages that depend on throws_lints