Coder Social home page Coder Social logo

luckey-elijah / dependency_validator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from workiva/dependency_validator

0.0 1.0 0.0 283 KB

A tool to help you find missing, under-promoted, over-promoted, and unused dependencies.

License: Other

Dart 99.86% Dockerfile 0.14%

dependency_validator's Introduction

Dependency Validator

A tool to help you find missing, under-promoted, over-promoted, and unused dependencies.

Installation

Add the following to your pubspec.yaml:

dev_dependencies:
  dependency_validator: ^3.0.0

Usage

pub run dependency_validator

This will report any missing, under-promoted, over-promoted, and unused dependencies. Any package that either provides an executable or a builder that will be auto-applied via the dart build system will be considered used even if it isn't imported.

  • Missing: When a dependency is used in the package but not declared in the pubspec.yaml
  • Under-promoted: When a dependency is used within lib/ but only declared as a dev_dependency.
  • Over-promoted: When a dependency is only used outside lib/ but declared as a dependency.
  • Unused: When a dependency is not used in the package but declared in the pubspec.yaml.

Configuration

There may be packages that are intentionally depended on but not used, or there may be directories that need to be ignored. You can statically configure these things in a dart_dependency_validator.yaml file in the root of your package:

# dart_dependency_validator.yaml

# Set true if you allow pinned packages in your project.
allow_pins: true
# Exclude one or more paths from being scanned. Supports glob syntax.
exclude:
  - "app/**"
# Ignore one or more packages.
ignore:
  - analyzer

Note: Previously this configuration lived in the pubspec.yaml, but that option was deprecated because pub publish warns about unrecognized keys.

dependency_validator's People

Contributors

aaronstgeorge-wf avatar anrock avatar corwinsheahan-wf avatar evanweible-wf avatar greglittlefield-wf avatar ivk1800 avatar jacehensley-wf avatar jayudey-wf avatar joebingham-wk avatar josephswanson-wf avatar kealjones-wk avatar kimlarson-wk avatar mairaemperley-wf avatar olesiathoms-wk avatar rm-astro-wf avatar rmconsole-readonly-wk avatar rmconsole-wf avatar rmconsole2-wf avatar rmconsole3-wf avatar rmconsole4-wk avatar rmconsole5-wk avatar rmconsole6-wk avatar rmconsole7-wk avatar robbecker-wf avatar tnorbury avatar todbachman-wf avatar toddbeckman-wf avatar ugolova avatar wesleybalvanz-wf avatar

Watchers

 avatar

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.