From 0f9dffde237bbbc01fc36692c7c45ed8cdaadbc4 Mon Sep 17 00:00:00 2001 From: Rex Ledesma Date: Sat, 24 Oct 2020 04:24:55 -0700 Subject: [PATCH] docs: Add configuration for integration with Arcanist --- docs/integration.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/integration.rst b/docs/integration.rst index b094edc..75a1f0c 100644 --- a/docs/integration.rst +++ b/docs/integration.rst @@ -51,3 +51,22 @@ An example workflow using GitHub Actions: - name: Lint YAML files run: yamllint . + +Integration with Arcanist +------------------------- + +You can configure yamllint to run on ``arc lint``. Here is an example +``.arclint`` file that makes use of this configuration. + +.. code:: json + + { + "linters": { + "yamllint": { + "type": "script-and-regex", + "script-and-regex.script": "yamllint", + "script-and-regex.regex": "/^(?P\\d+):(?P\\d+) +(?Pwarning|error) +(?P.*) +\\((?P.*)\\)$/m", + "include": "(\\.(yml|yaml)$)" + } + } + }