Page MenuHomePhabricator

text linter: Allow disabling UNIX newline check
Needs RevisionPublic

Authored by ite-klass on Dec 12 2014, 4:21 PM.
Tags
None
Referenced Files
F14021191: D10980.diff
Wed, Nov 6, 6:07 AM
F14002872: D10980.diff
Fri, Oct 25, 11:22 PM
F13967189: D10980.diff
Wed, Oct 16, 12:12 PM
Unknown Object (File)
Sep 12 2024, 6:33 AM
Unknown Object (File)
Sep 12 2024, 6:33 AM
Unknown Object (File)
Sep 5 2024, 10:36 AM
Unknown Object (File)
Sep 4 2024, 5:35 PM
Unknown Object (File)
Aug 27 2024, 7:24 AM

Details

Reviewers
joshuaspence
Group Reviewers
Blessed Reviewers
Summary
  • Add CR as allowed character when checking for charset.
    • The text linter can now be used for windows-CRLF-style files

by disabling the newline check.

Test Plan

Ran arc lint on a local project with windows java files.
Verified that it caused newline errors when not disabled. Verified
that it stops posting charset errors upon adding CR as allowed character.

Diff Detail

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

Event Timeline

ite-klass retitled this revision from to text linter: Allow disabling UNIX newline check.
ite-klass updated this object.
ite-klass edited the test plan for this revision. (Show Details)
ite-klass edited edge metadata.

Adjust charset error message to match new rules (having added CR as allowed character).

joshuaspence added a reviewer: joshuaspence.

See D11458 for the more comprehensive solution. In the mean time, you should be able to disable the newline checks via the arclint file:

.arclint
{
  "linters": {
    "text": {
      "severity": {
        "1": "disabled"
      }
    }
  }
}
This revision now requires changes to proceed.Mar 1 2015, 9:28 PM