Page MenuHomePhabricator

Allow .arclint to configure max line length of text linter
ClosedPublic

Authored by bitglue on May 9 2014, 6:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 10:34 PM
Unknown Object (File)
Wed, Dec 18, 1:11 AM
Unknown Object (File)
Tue, Dec 17, 6:21 AM
Unknown Object (File)
Mon, Dec 16, 7:47 AM
Unknown Object (File)
Sun, Dec 8, 9:45 PM
Unknown Object (File)
Sun, Dec 8, 1:02 PM
Unknown Object (File)
Wed, Dec 4, 7:29 PM
Unknown Object (File)
Tue, Dec 3, 1:08 PM
Subscribers

Details

Test Plan

Verified manually. Something like this in .arclint:

"linters" : {
  "text" : {
    "type" : "text",
    "include" : "(\\.(txt|py|html?)$)",
    "text.max-line-length": 200
  }

changes the line length. Something other than an integer there raises an error.

Diff Detail

Repository
rARC Arcanist
Branch
text_line_length
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 328
Build 328: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

bitglue retitled this revision from to Allow .arclint to configure max line length of text linter.
bitglue updated this object.
bitglue edited the test plan for this revision. (Show Details)
bitglue added a reviewer: Arcanist.
epriestley added a reviewer: epriestley.

I'll accept this if you rename the option to text.max-line-length, to namespace it for the linter and keep it consistent with other available options.

This revision now requires changes to proceed.May 9 2014, 6:25 PM
bitglue edited edge metadata.
  • make option name consistent with other options
bitglue edited edge metadata.
This revision is now accepted and ready to land.May 9 2014, 6:31 PM
epriestley updated this revision to Diff 21446.

Closed by commit rARC88bb9909b956 (authored by @bitglue, committed by @epriestley).