FormatCommand constructor

FormatCommand({
  1. List<String> excludeGlob = const [],
  2. int defaultLineLength = 80,
  3. bool formatGenerated = true,
})

Implementation

FormatCommand({
  List<String> excludeGlob = const [],
  this.defaultLineLength = 80,
  this.formatGenerated = true,
}) : excludeGlob = [
        ...excludeGlob,
        if (!formatGenerated) ..._generatedCodeFiles,
      ] {
  argParser.addOption(
    'package',
    abbr: 'p',
  );
  argParser.addFlag(
    'verify',
    help:
        'Only verifies that all code is formatted, does not actually format it',
  );
}