Skip to content

SuaMusica/sm_linter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sua Música Linter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages