Page MenuHomePhabricator

arc lint severity
Closed, ResolvedPublic

Asked by kylejao on Aug 5 2014, 3:06 PM.

Details

I'm trying to disable TXT3 type of check. My .arclint is as follows but it doesn't seem to work. Any tips? Thanks.

{
  "linters": {
    "general": {                                                                                                                                                                             
      "type": "text",
      "severity": {
        "TXT3": "disabled"
      }   
    }   
  }
}

Answers

OCram
Updated 3,094 Days Ago

If you take a look into ArcanistTextLinter.php it says:

ArcanistTextLinter.php
final class ArcanistTextLinter extends ArcanistLinter {

  const LINT_DOS_NEWLINE          = 1;
  const LINT_TAB_LITERAL          = 2;
  const LINT_LINE_WRAP            = 3;
  const LINT_EOF_NEWLINE          = 4;
  const LINT_BAD_CHARSET          = 5;
  const LINT_TRAILING_WHITESPACE  = 6;
  const LINT_BOF_WHITESPACE       = 8;
  const LINT_EOF_WHITESPACE       = 9;
  const LINT_EMPTY_FILE           = 10;

So for me it works using the const value instead of TXT1

{
  "linters": {
    "general": {                                                                                                                                                                             
      "type": "text",
      "severity": {
        "3": "disabled"
      }   
    }   
  }
}

New Answer

Answer

This question has been marked as closed, but you can still leave a new answer.