ripplearc_flutter_lint 0.2.3
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_unwrappingrule 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.dartsuffix) - 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)
- Test files (e.g., files under
- 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 usingFakeinstead ofMockfor test doublesforbid_forced_unwrapping: Forbids forced unwrapping (!) in production codeno_optional_operators_in_tests: Forbids optional operators (?.,??) in test files