1 |
commit: 8e24f889cd79bbd20b1a67364330380cd1c43f78 |
2 |
Author: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Wed Feb 23 08:23:35 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 23 15:45:07 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=8e24f889 |
7 |
|
8 |
README: add instructions for syntax checker |
9 |
|
10 |
Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
Closes: https://github.com/gentoo/gentoo-syntax/pull/45 |
12 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
13 |
|
14 |
README.rst | 18 ++++++++++++++++++ |
15 |
1 file changed, 18 insertions(+) |
16 |
|
17 |
diff --git a/README.rst b/README.rst |
18 |
index 1df3161..6617aa4 100644 |
19 |
--- a/README.rst |
20 |
+++ b/README.rst |
21 |
@@ -11,6 +11,24 @@ Installing |
22 |
* Gentoo users: ``emerge app-vim/gentoo-syntax`` |
23 |
* Everyone else: ``make PREFIX=~/.vim/ install`` |
24 |
|
25 |
+This plugin also provides a syntax checker for ebuilds and eclasses. To enable |
26 |
+it, you need to install Syntastic_ and pkgcheck_ first:: |
27 |
+ |
28 |
+ # emerge app-vim/syntastic dev-util/pkgcheck |
29 |
+ |
30 |
+Then you'll need to configure Syntastic (see ``:help syntastic-quickstart``) |
31 |
+and add the following line to your .vimrc file:: |
32 |
+ |
33 |
+ let g:syntastic_ebuild_checkers = ['pkgcheck'] |
34 |
+ |
35 |
+To find non-POSIX code in OpenRC services, install ``dev-util/checkbashisms`` |
36 |
+and enable it for filetype "sh":: |
37 |
+ |
38 |
+ let g:syntastic_sh_checkers = ['sh', 'checkbashisms'] |
39 |
+ |
40 |
+.. _Syntastic: https://github.com/vim-syntastic/syntastic |
41 |
+.. _pkgcheck: https://github.com/pkgcore/pkgcheck |
42 |
+ |
43 |
Bugs |
44 |
==== |