arc lint --lintall
{ "linters": { "MyLinter": { "type": "script", "include": "(\.php$)", "severity": "warning" } } }
arc lint --trace
检查你的 linter 代码,确保它足够快。如果它正在做大量的磁盘 I/O 或从网络中获取太多的信息,它就会变慢。您可以尝试加快处理速度,例如,只检查部分代码,或者使用应用程序缓存。
如果你使用的是 Phabricator,你可以使用 Arcanist 的 client-side cache 来加速一些操作。您可以检查是否启用了缓存,或者添加 --conduit-token-file 参数来指定 token 缓存文件的路径。例如:
arc diff --conduit-token-file=/path/to/token/file