public function getArguments()

in src/workflow/ArcanistLintWorkflow.php [58:169]


  public function getArguments() {
    return array(
      'lintall' => array(
        'help' => pht(
          'Show all lint warnings, not just those on changed lines. When '.
          'paths are specified, this is the default behavior.'),
        'conflicts' => array(
          'only-changed' => true,
        ),
      ),
      'only-changed' => array(
        'help' => pht(
          'Show lint warnings just on changed lines. When no paths are '.
          'specified, this is the default. This differs from only-new '.
          'in cases where line modifications introduce lint on other '.
          'unmodified lines.'),
        'conflicts' => array(
          'lintall' => true,
        ),
      ),
      'rev' => array(
        'param' => 'revision',
        'help' => pht('Lint changes since a specific revision.'),
        'supports' => array(
          'git',
          'hg',
        ),
        'nosupport' => array(
          'svn' => pht('Lint does not currently support %s in SVN.', '--rev'),
        ),
      ),
      'output' => array(
        'param' => 'format',
        'help' => pht(
          "With 'summary', show lint warnings in a more compact format. ".
          "With 'json', show lint warnings in machine-readable JSON format. ".
          "With 'none', show no lint warnings. ".
          "With 'compiler', show lint warnings in suitable for your editor. ".
          "With 'xml', show lint warnings in the Checkstyle XML format."),
      ),
      'outfile' => array(
        'param' => 'path',
        'help' => pht(
          'Output the linter results to a file. Defaults to stdout.'),
      ),
      'only-new' => array(
        'param' => 'bool',
        'supports' => array('git', 'hg'), // TODO: svn
        'help' => pht(
          'Display only messages not present in the original code.'),
      ),
      'engine' => array(
        'param' => 'classname',
        'help' => pht('Override configured lint engine for this project.'),
      ),
      'apply-patches' => array(
        'help' => pht(
          'Apply patches suggested by lint to the working copy without '.
          'prompting.'),
        'conflicts' => array(
          'never-apply-patches' => true,
        ),
      ),
      'never-apply-patches' => array(
        'help' => pht('Never apply patches suggested by lint.'),
        'conflicts' => array(
          'apply-patches' => true,
        ),
      ),
      'amend-all' => array(
        'help' => pht(
          'When linting git repositories, amend HEAD with all patches '.
          'suggested by lint without prompting.'),
      ),
      'amend-autofixes' => array(
        'help' => pht(
          'When linting git repositories, amend HEAD with autofix '.
          'patches suggested by lint without prompting.'),
      ),
      'everything' => array(
        'help' => pht(
          'Lint all tracked files in the working copy. Ignored files and '.
          'untracked files will not be linted.'),
        'conflicts' => array(
          'cache' => pht('%s lints all files', '--everything'),
          'rev' => pht('%s lints all files', '--everything'),
        ),
      ),
      'severity' => array(
        'param' => 'string',
        'help' => pht(
          "Set minimum message severity. One of: %s. Defaults to '%s'.",
          sprintf(
            "'%s'",
            implode(
              "', '",
              array_keys(ArcanistLintSeverity::getLintSeverities()))),
          self::DEFAULT_SEVERITY),
      ),
      'cache' => array(
        'param' => 'bool',
        'help' => pht(
          "%d to disable cache, %d to enable. The default value is determined ".
          "by '%s' in configuration, which defaults to off. See notes in '%s'.",
          0,
          1,
          'arc.lint.cache',
          'arc.lint.cache'),
      ),
      '*' => 'paths',
    );
  }