Skip to content

Commit

Permalink
docs: Add configuration for integration with Arcanist
Browse files Browse the repository at this point in the history
  • Loading branch information
rexledesma authored Oct 24, 2020
1 parent cef0b48 commit 0f9dffd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/integration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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<line>\\d+):(?P<offset>\\d+) +(?P<severity>warning|error) +(?P<message>.*) +\\((?P<name>.*)\\)$/m",
"include": "(\\.(yml|yaml)$)"
}
}
}

0 comments on commit 0f9dffd

Please sign in to comment.