Skip to main content

Getting Started with Dyzer

Dart code Linter - Dyzer is a tool that helps improve the quality and consistency of Dart code by identifying and reporting problems, such as bugs and code that doesn't follow best practices. It also collects analytical data on the code through calculating code metrics and can be configured to set thresholds for these metrics.

Installation

Installation To use Dyzer, add it as a dev dependency to your project:

 dart pub add --dev dyzer

Usage

CLI

You can run Dyzer analysis from the console using the following command:

dart  run dyzer analyze lib 

Dyzer also provides other commands such as check-unused-code and check-unused-files that can help you maintain the codebase. For more information on using Dyzer as a command-line tool, see the Command Line Interface documentation.

Analyzer plugin

Dyzer can be used as a plugin for the Dart analyzer, providing instant feedback on found issues directly in your integrated development environment (IDE). For more information on using Dyzer as an analyzer plugin, see the Analyzer Plugin documentation.

Library (additional option)

You can use Dyzer as a library directly in your code. See this example for more information. This might be useful if you have a separate package for linting config and want to run Dyzer from that package's executable.

Next Steps