我的电弧棉绒响应中充满了这种警告几乎疯狂:
Warning (TXT3) Line Too Long
This line is 94 characters long, but the convention is 80 characters.
答案 0 :(得分:0)
您可以通过在.arclint文件中添加类似"text.max-line-length": 120
的内容来扩展行长度。我们的.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/