@@ -5,14 +5,15 @@ ALE Proto Integration *ale-proto-options
5
5
===============================================================================
6
6
Integration Information
7
7
8
- Linting of `.proto` files requires that the `protoc` binary is installed in the
9
- system path and that the `protoc- gen- lint` plugin for the `protoc` binary is also
10
- installed.
11
-
12
8
To enable `.proto` file linting, update | g:ale_linters | as appropriate:
13
9
>
14
10
" Enable linter for .proto files
15
- let g:ale_linters = {'proto': ['protoc-gen-lint']}
11
+ let g:ale_linters = {'proto': ['protoc-gen-lint', 'protolint']}
12
+
13
+ To enable `.proto` file fixing, update | g:ale_fixers | as appropriate:
14
+ >
15
+ " Enable linter for .proto files
16
+ let b:ale_fixers = {'proto': ['protolint']}
16
17
<
17
18
===============================================================================
18
19
protoc-gen-lint *ale-proto-protoc-gen-lint*
@@ -29,5 +30,31 @@ g:ale_proto_protoc_gen_lint_options *g:ale_proto_protoc_gen_lint_options*
29
30
directory of the linted file is always passed as an include path with '-I'
30
31
before any user-supplied options.
31
32
33
+ ===============================================================================
34
+ protolint *ale-proto-protolint*
35
+
36
+ The linter is a pluggable tool that doesn't depend on the `protoc` binary.
37
+ This supports both linting and fixing.
38
+ Make sure the binary is available in the system path, or set
39
+ ale_proto_protolint_executable.
40
+ Note that the binary with v0.22.0 or above is supported.
41
+
42
+ g:ale_proto_protolint_executable *g:ale_proto_protolint_executable*
43
+
44
+ Type: | String |
45
+ Default: 'protolint'
46
+
47
+ This variable can be changed to modify the executable used for protolint.
48
+
49
+ g:ale_proto_protolint_config *g:ale_proto_protolint_config*
50
+
51
+ Type: | String |
52
+ Default: `' ' `
53
+
54
+ A path to a protolint configuration file.
55
+
56
+ The path to the configuration file can be an absolute path or a relative
57
+ path. ALE will search for the relative path in parent directories.
58
+
32
59
===============================================================================
33
60
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
0 commit comments