Skip to content

Latest commit

 

History

History
89 lines (66 loc) · 2.21 KB

tuneup-check-tool.md

File metadata and controls

89 lines (66 loc) · 2.21 KB

TuneupCheckTool

Statically analyzes the current project via the tuneup package.

Usage

This is intended to be used as a drop-in replacement to the AnalyzeTool to workaround an open issue with dartanalyzer and excluding files via analysis_options.yaml.

Add tuneup as a dev dependency to your project:

# pubspec.yaml
dev_dependencies:
  tuneup: ^0.3.6

Use it in your dart_dev config:

// tool/dart_dev/config.dart
import 'package:dart_dev/dart_dev.dart';

final config = {
  'analyze': TuneupCheckTool()
};

Default behavior

By default this tool will run dart run tuneup check which will analyze all dart files in the current project.

Ignoring info outputs

By default, dart run tuneup check will include "info"-level analysis messages in its output and fail if there are any. You can tell tuneup to ignore these:

// tool/dart_dev/config.dart
import 'package:dart_dev/dart_dev.dart';

final config = {
  'analyze': TuneupCheckTool()
    ..ignoreInfos = true,
};

Excluding files from analysis

The analysis_options.yaml configuration file supports excluding files.

Command-line options

$ ddev help analyze