Git Product home page Git Product logo

lint_maker's Introduction

Dart lint maker

Custom linting maker. Creates analysis_options.yaml files to your liking. This package is useful if you want to either create your own linting package or just add a custom analysis_options.yaml file to your project.

Setup:

Add lint_maker to your dev dependencies and create a lint_maker.yaml file in the root of your project. The config can look something like:

name: # internal name of the config
  output: "analysis_options.yaml" # output file
  preset: # The base analyzer config
    analyzer:
      language:
        strict-casts: true
        strict-inference: true
        strict-raw-types: true
      exclude:
        - "**.g.dart"
    linter:
      rules:
        always_specify_types: false
        avoid_annotating_with_dynamic: false
        avoid_as: false
        avoid_print: false
        diagnostic_describe_all_properties: false
        prefer_double_quotes: false
        prefer_relative_imports: false
        unnecessary_final: false
        prefer_final_parameters: false
        prefer_expression_function_bodies: false
        avoid_catches_without_on_clauses: false

You can specify multiple such configs in the same file.

Update rules:

To update the rules you need to update the execute lint_maker.dart by running:

dart pub run lint_maker

lint_maker's People

Contributors

leptopoda avatar provokateurin avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

provokateurin

lint_maker's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.