fixer 0.1.0 copy "fixer: ^0.1.0" to clipboard
fixer: ^0.1.0 copied to clipboard

A framework to make large analysis options migrations easier

A framework to make large analysis options migrations easier

Why #

The dart fix --apply command can't fix everything, and fixing analysis issues by hand is a pain. The fixer package allows you to easily create your own fixers.

How #

Create and run a dart script containing your fixers:

import 'package:fixer/fixer.dart';

void main() {
  fix(
    {'public_member_api_docs': (_, line) => '/// TODO: Document this!\n$line'},
    workingDirectory: '../', // Optional
  );
}

This example adds placeholder doc comments to all public members. This would be useful if you just enabled the public_member_api_docs in a large project with minimal existing documentation.

3
likes
160
pub points
8%
popularity

Publisher

verified publisheriodesignteam.com

A framework to make large analysis options migrations easier

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, parselyzer

More

Packages that depend on fixer