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)
Sat, Apr 20, 6:52 PM
Unknown Object (File)
Mon, Apr 1, 8:10 AM
Unknown Object (File)
Wed, Mar 27, 9:39 PM
Unknown Object (File)
Mar 22 2024, 6:42 PM
Unknown Object (File)
Mar 22 2024, 6:42 PM
Unknown Object (File)
Feb 16 2024, 8:49 PM
Unknown Object (File)
Feb 15 2024, 11:13 AM
Unknown Object (File)
Jan 6 2024, 12:37 AM
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
Lint
Lint Skipped
Unit
Tests Skipped

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).