Changeset View
Changeset View
Standalone View
Standalone View
src/docs/user/userguide/arcanist_lint_script_and_regex.diviner
| Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | The regex should capture these named patterns with `(?P<name>...)`: | ||||
| - `severity` (optional) The word "error", "warning", "autofix", "advice", | - `severity` (optional) The word "error", "warning", "autofix", "advice", | ||||
| or "disabled", in any combination of upper and lower case. Instead, you | or "disabled", in any combination of upper and lower case. Instead, you | ||||
| may match groups called `error`, `warning`, `advice`, `autofix`, or | may match groups called `error`, `warning`, `advice`, `autofix`, or | ||||
| `disabled`. These allow you to match output formats like "E123" and | `disabled`. These allow you to match output formats like "E123" and | ||||
| "W123" to indicate errors and warnings, even though the word "error" is | "W123" to indicate errors and warnings, even though the word "error" is | ||||
| not present in the output. If no severity capturing group is present, | not present in the output. If no severity capturing group is present, | ||||
| messages are raised with "error" severity. If multiple severity capturing | messages are raised with "error" severity. If multiple severity capturing | ||||
| groups are present, messages are raised with the highest captured | groups are present, messages are raised with the highest captured | ||||
| serverity. Capturing groups like `error` supersede the `severity` | severity. Capturing groups like `error` supersede the `severity` | ||||
| capturing group. | capturing group. | ||||
| - `error` (optional) Match some nonempty substring to indicate that this | - `error` (optional) Match some nonempty substring to indicate that this | ||||
| message has "error" severity. | message has "error" severity. | ||||
| - `warning` (optional) Match some nonempty substring to indicate that this | - `warning` (optional) Match some nonempty substring to indicate that this | ||||
| message has "warning" severity. | message has "warning" severity. | ||||
| - `advice` (optional) Match some nonempty substring to indicate that this | - `advice` (optional) Match some nonempty substring to indicate that this | ||||
| message has "advice" severity. | message has "advice" severity. | ||||
| - `autofix` (optional) Match some nonempty substring to indicate that this | - `autofix` (optional) Match some nonempty substring to indicate that this | ||||
| ▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines | |||||