ripplearc_flutter_lint 0.2.3 copy "ripplearc_flutter_lint: ^0.2.3" to clipboard
ripplearc_flutter_lint: ^0.2.3 copied to clipboard

A custom lint library following best engineering practice

Changelog #

0.2.3 #

  • Add package to ripplearc.com publisher

0.2.2 #

  • Bug fixes and improvements

0.2.1 #

  • The forbid_forced_unwrapping rule now includes exceptions for certain files and directories. Forced unwrapping (!) is not flagged in the following cases:
    • Test files (e.g., files under test/ or with _test.dart suffix)
    • Files in /testing/ directories that include "fake" in their path
    • Files generated by freezed (ending with .freezed.dart)
    • Files generated by json_serializable (ending with .g.dart)
  • This allows necessary or safe forced unwrapping in test and generated code, while still enforcing safety in production code.

0.2.0 #

  • Added five new lint rules:
    • todo_with_story_links (warning): Ensures TODO comments include YouTrack story links for proper project management and technical debt tracking.
    • no_internal_method_docs (warning): Forbids documentation on private methods to reduce documentation noise.
    • no_direct_instantiation (error): Enforces dependency injection by forbidding direct class instantiation, except for Factory/Module classes or inside Module classes.
    • document_fake_parameters (error): Enforces documentation on Fake classes and their non-private members for better test maintainability.
    • document_interface (error): Enforces documentation on abstract classes and their public methods for clear API contracts.

0.1.0 #

  • Initial release with three lint rules:
    • prefer_fake_over_mock: Recommends using Fake instead of Mock for test doubles
    • forbid_forced_unwrapping: Forbids forced unwrapping (!) in production code
    • no_optional_operators_in_tests: Forbids optional operators (?., ??) in test files
0
likes
40
points
24
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A custom lint library following best engineering practice

License

MIT (license)

Dependencies

analyzer, analyzer_plugin, custom_lint_builder, source_span

More

Packages that depend on ripplearc_flutter_lint