Page MenuHomePhabricator

D16462.diff
No OneTemporary

D16462.diff

diff --git a/src/docs/user/userguide/arcanist_lint.diviner b/src/docs/user/userguide/arcanist_lint.diviner
--- a/src/docs/user/userguide/arcanist_lint.diviner
+++ b/src/docs/user/userguide/arcanist_lint.diviner
@@ -204,10 +204,30 @@
}
```
-Here, the lint message "E221" (which is "multiple spaces before operator") is
-disabled, so it won't be shown. The message "E401" (which is "multiple imports
+Here, the lint message `E221` (which is "multiple spaces before operator") is
+disabled, so it won't be shown. The message `E401` (which is "multiple imports
on one line") is set to "warning" severity.
+For linters that extend `ArcanistLinter`, such as the [[
+https://secure.phabricator.com/diffusion/ARC/browse/master/src/lint/linter/
+ArcanistTextLinter.php | text ]] linter, the severity map keys coorespond to
+the numerical values at the top of the file instead of the names of the error.
+
+```lang=js
+{
+ "linters": {
+ "sample": {
+ "type": "text",
+ "severity": {
+ "3": "disabled"
+ }
+ }
+ }
+}
+```
+
+Here, the lint message `TXT3` (which is line too long) is disabled.
+
If you want to remap a large number of messages, you can use `severity.rules`
and specify regular expressions:

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 22, 6:13 PM (18 h, 17 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6775544
Default Alt Text
D16462.diff (1 KB)

Event Timeline