This package adds new custom lints to your project. These lints are agreed upon by the appnormal team and used to enforce agreements made in internal architecture meetings.
dont_import_ui_files_in_dataerror
Used to indicate that the UI layer and DATA layer cannot interact with eachother. All logic needs to go through the domain layer.
dont_import_data_files_in_uierror
Used to indicate that the UI layer and DATA layer cannot interact with eachother. All logic needs to go through the domain layer.
only_use_l10n_in_ui_lintwarning
Indicates that L10n strings (translations) can only be used in the UI layer
Follow these instructions to add apn_lints to a new or existing project
- Add these 2
devdependencies to your pubspec.yaml
custom_lint: ^0.0.9
apn_lints: ^0.0.1
- Add the
custom_lintplugin to youranalysis_options.yaml(just below the line that saysanalyzer:)
analyzer:
plugins: <-- add
- custom_lint <-- add
- Restart analyser (or restart IDE) for the plugin to be loaded correctly