lintme_presets 1.0.1 copy "lintme_presets: ^1.0.1" to clipboard
lintme_presets: ^1.0.1 copied to clipboard

Predefined presets for Lintme.

Pub Version License package publisher

Lintme Presets #

Lintme is a static analysis tool that helps you analyse and improve your code quality. You can find all available lint rules here.

This repository contains a list of predefined presets for Lintme:

  • All: contains all available lint rules for Dart and Flutter.
  • Dart: contains all lint rules applicable to any Dart app.
  • Flutter: contains all lint rules applicable to any Flutter app.

How to use a preset #

Take these steps to enable a preset:

  1. Install this package as a dev dependency:

    dart pub add --dev lintme_presets
    

    or:

    flutter pub add --dev lintme_presets
    
  2. For Lintme configuration add the extents entry:

    lintme:
      extends:
        - package:lintme_presets/all.yaml
    

Disabling or reconfiguring a rule from the preset #

To disable a rule, simply set its value to false:

lintme:
  extends:
    - package:lintme_presets/all.yaml
  rules:
    - avoid-banned-imports: false

To reconfigure a rule, that is included into a preset:

lintme:
  extends:
    - package:lintme_presets/all.yaml
  rules:
    - arguments-ordering:
        child-last: true

Defining a custom preset #

Any other preset can be passed to the extends entry. To create a custom preset create a yaml file with the same structure as for regular Lintme configuration.

0
likes
140
points
49
downloads

Publisher

unverified uploader

Weekly Downloads

Predefined presets for Lintme.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on lintme_presets