Page MenuHomePhabricator

Provide `arc linters --verbose` to list all available options
ClosedPublic

Authored by epriestley on May 12 2014, 2:33 AM.
Tags
None
Referenced Files
F18111419: D9062.id.diff
Tue, Aug 12, 11:01 AM
F18090117: D9062.id21526.diff
Wed, Aug 6, 2:08 PM
F17975302: D9062.id21530.diff
Aug 1 2025, 5:00 PM
F17887229: D9062.id.diff
Jul 29 2025, 1:34 AM
F17858754: D9062.diff
Jul 27 2025, 7:59 PM
Unknown Object (File)
Jun 19 2025, 2:54 AM
Unknown Object (File)
Jun 18 2025, 1:32 PM
Unknown Object (File)
Jun 16 2025, 7:07 PM
Subscribers

Details

Summary

Ref T2039. I'll update the corresponding documentation.

It feels a little awkward that this is disconnected from getLinterConfigurationOptions(), but I dislike returning weird ad-hoc structures more than I dislike having two methods. Most linters don't implement either of these anyway.

Test Plan

Ran arc linters and arc linters --verbose.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Provide `arc linters --verbose` to list all available options.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: joshuaspence, btrahan.
epriestley added a task: Restricted Maniphest Task.
joshuaspence edited edge metadata.

I disagree with you, I think amending getLinterConfigurationOptions to return something like:

public function getLinterConfigurationOptions() {
  ...

  return array(
    'severity' => array(
      'type' => 'optional map<string|int, string>',
      'info' => pht(
        'Provide a map from lint codes to adjusted severity levels: error, '.
        'warning, advice, autofix or disabled.')
    'severity.rules' => array(
      'type' => 'optional map<string, string>',
      'info' => pht(
        'Provide a map of regular expressions to severity levels. All '.
        'matching codes have their severity adjusted.')
  );
}
This revision now requires changes to proceed.May 12 2014, 2:53 AM
epriestley edited edge metadata.
  • Return option specifications instead of spreading this across two methods.
  • Get rid of the nonsensical, badly named getInfoOptions().
joshuaspence edited edge metadata.

Much better :D

This revision is now accepted and ready to land.May 12 2014, 3:08 AM
epriestley updated this revision to Diff 21530.

Closed by commit rARC54c377448db8 (authored by @epriestley).