2015-05-24 1 views

ответ

0

Вы можете увеличить длину линии, добавив что-то вроде этого "text.max-line-length": 120 в файл .arclint. Наш .arclint файл выглядит так, чтобы 120 символов:

{ 
    "linters": { 
     "text": { 
      "type": "text", 
      "include": "(.md|.php$)", 
      "exclude": "(vendor)", 
      "text.max-line-length": 120 
     }, 
     "spelling": { 
      "type": "spelling", 
      "include": "(.*)", 
      "exclude": "(vendor)" 
     }, 
     "phpcs": { 
      "type": "phpcs", 
      "include": "(\\.php$)", 
      "bin": ["vendor/bin/phpcs", "phpcs"], 
      "flags" : ["--standard=PSR1","--tab-width=2"], 
      "severity.rules" : { 
       "(^PHPCS\\.E\\.PSR1\\.Classes\\.ClassDeclaration\\.MissingNamespace)": "disabled" 
      } 
     }, 
     "generated" : { 
      "type" : "generated", 
      "include" : "(.*)" 
     } 
    } 
} 

Кроме того, если вы уверены в изменении кода за Phabricator, вы можете сделать аналогичные изменения в коде: https://secure.phabricator.com/book/phabricator/article/arcanist_extending_lint/