Page MenuHomePhabricator

Further modernize lint documentation
ClosedPublic

Authored by epriestley on May 12 2014, 1:37 AM.
Tags
None
Referenced Files
F13194136: D9061.diff
Sun, May 12, 9:20 PM
F13177209: D9061.diff
Wed, May 8, 7:32 PM
Unknown Object (File)
Mon, Apr 29, 2:00 PM
Unknown Object (File)
Wed, Apr 24, 9:54 PM
Unknown Object (File)
Sun, Apr 21, 4:11 PM
Unknown Object (File)
Fri, Apr 19, 3:30 PM
Unknown Object (File)
Wed, Apr 17, 3:16 PM
Unknown Object (File)
Apr 6 2024, 3:44 AM
Subscribers

Details

Reviewers
joshuaspence
btrahan
avive
Maniphest Tasks
Restricted Maniphest Task
Commits
Restricted Diffusion Commit
rP94772689cd31: Further modernize lint documentation
Summary

Ref T2039. Contains a small amount of wishful thinking, I'll note it inline.

Test Plan

Generated and read documentation.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Further modernize lint documentation.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a task: Restricted Maniphest Task.
src/docs/user/userguide/arcanist_lint.diviner
58–59

This document is not very helpful for writing bindings, but we don't currently have a better one.

245–247

This is wishful thinking, but I'll make it happen shortly.

277–279

I'll actually create this shortly.

joshuaspence edited edge metadata.

Just a few minor inlines.

src/docs/user/userguide/arcanist_lint.diviner
104

The name of the linter ("sample") doesn't really matter, at least for now. Maybe specify this so that it is clear ("The linter name doesn't matter, so choose something that makes sense to you".)

112

Not related to this specifically, but why do the regular expressions need to be surrounded by parentheses?

This revision now requires changes to proceed.May 12 2014, 1:46 AM
src/docs/user/userguide/arcanist_lint.diviner
112

They need to be full regular expressions with flags. You can use "/", but then you have to escape all the slashes in paths. So these are equivalent:

"/path\\/to\\/stuff/i"
"(path/to/stuff)i"

The latter is just easier to read. I'll note this explicitly, though.

epriestley edited edge metadata.
  • Be more clear that keys are human-readable.
  • Be more clear about regexp formats.
  • Mention that "most" (not "all") linters support "severity".
  • Specify arc linters --verbose as the way to get full options (see D9062).
This revision is now accepted and ready to land.May 12 2014, 2:47 AM
epriestley updated this revision to Diff 21542.

Closed by commit rP94772689cd31 (authored by @epriestley).