Statically analyzes the current project via the tuneup
package.
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()
};
By default this tool will run dart run tuneup check
which will analyze all dart
files in the current project.
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,
};
The analysis_options.yaml
configuration file
supports excluding files.
$ ddev help analyze