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)
Wed, Nov 20, 4:43 AM
Unknown Object (File)
Tue, Nov 19, 12:42 PM
Unknown Object (File)
Sun, Nov 17, 12:20 AM
Unknown Object (File)
Oct 18 2024, 8:05 AM
Unknown Object (File)
Oct 17 2024, 5:01 PM
Unknown Object (File)
Oct 17 2024, 4:56 PM
Unknown Object (File)
Oct 17 2024, 4:55 PM
Unknown Object (File)
Oct 17 2024, 4:53 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 329
Build 329: [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).