VGVentures / nitpicky

Provides VGV style lints, similar to package:pedantic.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nitpicky

This package contains the analysis_options.yaml file to configure the Dart analyzer for VGV Dart/Flutter style.

It enables more lints than pedantic, and can be used alongside it. See that package for more information.

Usage

  • Add a dev dependency in your pubspec.yaml:
dev_dependencies:
  nitpicky: 
    git:
      url: https://github.com/VGVentures/nitpicky
      ref: 1.0.0    # specify a tag or branch
  • Put the following in your project's analysis_options.yaml:
include: package:nitpicky/analysis_options.yaml

# or use an older version
# include: package:nitpicky/analysis_options.1.0.0.yaml

Hacking

As we evolve these rules over time, we should version them by copying the yaml file with a new suffix and matching git tag, and updating the main analysis_options file to point to the latest. See pedantic.

Retaining the old rules will allow clients to pin a specific version. Otherwise, CI will fail until their code is updated.

About

Provides VGV style lints, similar to package:pedantic.

License:MIT License


Languages

Language:Shell 100.0%