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
Unknown Object (File)
Wed, Apr 10, 8:15 PM
Unknown Object (File)
Fri, Mar 29, 1:30 AM
Unknown Object (File)
Feb 15 2024, 4:44 PM
Unknown Object (File)
Feb 8 2024, 5:09 PM
Unknown Object (File)
Jan 31 2024, 8:51 AM
Unknown Object (File)
Jan 29 2024, 11:12 PM
Unknown Object (File)
Jan 28 2024, 7:31 PM
Unknown Object (File)
Jan 28 2024, 4:20 PM

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