Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 742 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 742 Bytes

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 analysis option in a large project with minimal existing documentation.