| 1 |
Integration |
| 2 |
=========== |
| 3 |
|
| 4 |
``rstcheck`` can be integrated and used with other tools. |
| 5 |
|
| 6 |
|
| 7 |
Usage in Vim |
| 8 |
------------ |
| 9 |
|
| 10 |
|
| 11 |
Using with Syntastic_: |
| 12 |
~~~~~~~~~~~~~~~~~~~~~~ |
| 13 |
|
| 14 |
.. code:: vim |
| 15 |
|
| 16 |
let g:syntastic_rst_checkers = ['rstcheck'] |
| 17 |
|
| 18 |
|
| 19 |
Using with ALE_: |
| 20 |
~~~~~~~~~~~~~~~~ |
| 21 |
|
| 22 |
Just install ``rstcheck`` and make sure is on your path. |
| 23 |
|
| 24 |
|
| 25 |
Use as a pre-commit hook |
| 26 |
------------------------ |
| 27 |
|
| 28 |
Add this to your ``.pre-commit-config.yaml``: |
| 29 |
|
| 30 |
.. code:: yaml |
| 31 |
|
| 32 |
- repo: https://github.com/rstcheck/rstcheck |
| 33 |
rev: '' # Use the sha / tag you want to point at |
| 34 |
hooks: |
| 35 |
- id: rstcheck |
| 36 |
additional_dependencies: [] # can be omitted if empty |
| 37 |
|
| 38 |
You may want to specify a ``rstcheck-core`` version or range, if you depend on a feature which was |
| 39 |
added after the current minimal version of ``rstcheck-core``. |
| 40 |
Simply add e.g. ``"rstcheck-core==v1.0.0"`` to the list for ``additional_dependencies``. |
| 41 |
|
| 42 |
|
| 43 |
Use with Mega-Linter |
| 44 |
-------------------- |
| 45 |
|
| 46 |
Just install Mega-Linter_ in your repository, rstcheck_ is part of |
| 47 |
the 70 linters activated out of the box. |
| 48 |
|
| 49 |
|
| 50 |
.. _Syntastic: https://github.com/vim-syntastic/syntastic |
| 51 |
.. _ALE: https://github.com/dense-analysis/ale |
| 52 |
.. _Mega-Linter: https://oxsecurity.github.io/megalinter/latest/ |
| 53 |
.. _rstcheck: https://oxsecurity.github.io/megalinter/latest/descriptors/rst_rstcheck/ |