Add custom lint rules #170

Open
opened 2023-04-07 12:28:49 +00:00 by hugo · 1 comment
Owner
- Add them in wyatt_analysis ? Or maybe create new package wyatt_lint ? - Use https://github.com/invertase/dart_custom_lint - Need to discuss about team rules
hugo added the
package
proposal
config
proposal
labels 2023-04-07 12:28:49 +00:00
Author
Owner

Rules proposition:

  • equatable
  • avoid_hardcoded_strings
  • naming convention ?
    • foo_repository / FooRepository for BaseRepository extends
    • foo_data_source / FooDataSource for Base[Remote/Local]DataSource extends
    • foo_[scope/type_]repository_impl for repository implementation
    • foo_[scope/type_]data_source_impl for data source implementation
    • foo_[consumer/provider_]screen for state management files
  • import ?
    • do not import data layer in domain
    • do not import data layer in presentation
      ...
Rules proposition: - equatable - always_call_super_props_when_overriding_equatable_props - missing_field_in_equatable_props - https://pub.dev/packages/equatable_lint - avoid_hardcoded_strings - naming convention ? - foo_repository / FooRepository for BaseRepository extends - foo_data_source / FooDataSource for Base[Remote/Local]DataSource extends - foo_[scope/type_]repository_impl for repository implementation - foo_[scope/type_]data_source_impl for data source implementation - foo_[consumer/provider_]screen for state management files - import ? - do not import data layer in domain - do not import data layer in presentation ...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Wyatt-FOSS/wyatt-packages#170
No description provided.