CheckCommand constructor

CheckCommand()

Implementation

CheckCommand() {
  argParser
    ..addFlag(
      'strict',
      negatable: false,
      help: 'Promote warnings to errors (CI mode).',
    )
    ..addFlag(
      'strict-length',
      negatable: false,
      help:
          'Also promote length-ratio warnings to errors. Independent of '
          '--strict because length-ratio is noisier than other heuristics.',
    )
    ..addFlag(
      'fix',
      negatable: false,
      help:
          'Normalize ARB files in place: sort keys, hoist @@locale, place '
          'each @key block after its key, strip descriptive metadata from '
          'translations (keeping locked + source_hash), stamp source_hash '
          'provenance onto unlocked translations, drop orphan @key blocks.',
    )
    ..addOption(
      'ack',
      help:
          'Acknowledge a soft-mode warning so it stops surfacing: '
          '--ack <rule>:<locale>:<key> (e.g. '
          'source_equality:vi:settingsEmailLabel). Writes '
          '.dialect/state.json; re-fires if the source/translation changes.',
      valueHelp: 'rule:locale:key',
    )
    ..addOption(
      'note',
      help: 'Optional justification stored alongside --ack.',
    );
}