Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.09 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.09 KB

sm_linter

sm_linter logo

Purpose

This package provides a set of lint rules for Dart and Flutter projects from Sua Música; providing a standard for code style, quality and consistent rules between internal and external projects.

Rules

All rules can be found in the Linter rules section from Dart documentation; in this case, we use a part of them.

Usage

Add this package to your dev_dependencies in your pubspec.yaml:

dev_dependencies:
  sm_linter: ^1.0.0

Or run the following command:

# flutter
flutter pub add --dev sm_linter

# dart
dart pub add --dev sm_linter

And the following to your analysis_options.yaml:

  include: package:sm_linter/analysis_options.yaml

Suppress

To suppress a rule, add the following comment to the line you want to suppress:

// ignore: rule_name - to suppress a single line
// ignore_for_file: rule_name - to suppress a whole file