Skip to content

This project uses a brick template to generate custom lints with mason.

Notifications You must be signed in to change notification settings

marcotrumpet/my_custom_lints

Repository files navigation

mason_custom_lint

Powered by Mason

This project uses a brick template to generate custom lints with mason.

Check this brick out on brickHub

bloc_demo

Generated code is built on top of custom_lint.

Generate 💻

Take a look at how to initialize mason and then you can do mason make custom_lint_brick into a terminal.

CLI will ask you what kind of file name and corresponding classes you want to match.

E.g. if you have a file called authentication_service.dart and you want to have inside it a class called AuthenticationService and not only Authentication you can write service when CLI will ask you.

The same with bloc, model and so on.

mason_custom_lints folder contains a generated package that checks for _service and _bloc files.

Usage 🔨

Mason will generate a flutter package based on custom_lint package so the only thing you need to do to use it in your project is to add it to pubpsec and change the analysis_options file.

In your App add this to your pubspec.yaml:

dev_dependencies:
  custom_lint: ^0.0.15
  mason_custom_lints:
    path: ../mason_custom_lints

And in your analysis_options.yaml add:

analyzer:
  plugins:
    - custom_lint

About

This project uses a brick template to generate custom lints with mason.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages