Closed mrcljx closed 4 years ago
I stumbled over this because of my long project path prefix:
[2020-01-06 12:35:50] EXCEPTION: (PhutilAggregateException) Some linters failed:
- Exception: Parameter ("[REDACTED]/SomeFile.js") passed to "setCode()" when constructing a lint message must be a scalar with a maximum string length of 128 bytes, but is 134 bytes in length. at [<arcanist>/src/lint/engine/ArcanistLintEngine.php:274]
The code isn't supposed to be the violating source code, but some "identifier" for the violation. Some examples are:
A common pattern seems to be to just pass
$this->getLinterName()
there's just no real code. Also done in thePrettierLinter
in this repo.