Skip to content

DevArtel/devartel_analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

devartel_analysis

Usage

  1. Add this package to dev_dependencies
dev_dependencies:
  devartel_analysis:
    git:
      url: https://github.com/DevArtel/devartel_analysis.git
      ref: v3.0.0
  1. Create an analysis_options.yaml

Example analysis_options.yaml file:

include: package:devartel_analysis/analysis_options.yaml

Or imports lints only:

# This imports only lints
include: package:devartel_analysis/lints.yaml

analyzer:
  # Provide your analyzer configuration here

Enable/Disable individual rules

This package is customizable, you can change rules depending on project needs. To do so adjust your analysis_options.yaml.

include: package:devartel_analysis/analysis_options.yaml

linter:
  rules:
    # Disable individual rules
    always_put_required_named_parameters_first: false
    avoid_classes_with_only_static_members: false

    # Enable individual rules
    sort_constructors_first: true
    prefer_single_quotes: true

Using with analyzer plugins

include: package:devartel_analysis/analysis_options.yaml

analyzer:
  plugins:
    - dart_code_metrics
  exclude:
    - "lib/**/*.g.dart"
    - "lib/**/*.freezed.dart"

About

Flutter analysis options used in DevArtel projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published