Make the grammar a little better for the g:ale_type_map option
This commit is contained in:
parent
63e8946fc8
commit
e235e5a6a5
12
doc/ale.txt
12
doc/ale.txt
@ -1039,10 +1039,10 @@ g:ale_type_map *g:ale_type_map*
|
|||||||
Type: |Dictionary|
|
Type: |Dictionary|
|
||||||
Default: `{}`
|
Default: `{}`
|
||||||
|
|
||||||
This option can be set re-map problem types for linters. Each key in
|
This option can be set re-map problem types for linters. Each key in the
|
||||||
the |Dictionary| should be the name of a linter, and each value must be
|
|Dictionary| should be the name of a linter, and each value must be a
|
||||||
a |Dictionary| mapping error types from one type to another. The
|
|Dictionary| mapping problem types from one type to another. The following
|
||||||
following types are supported:
|
types are supported:
|
||||||
|
|
||||||
`'E'` - `{'type': 'E'}`
|
`'E'` - `{'type': 'E'}`
|
||||||
`'ES'` - `{'type': 'E', 'sub_type': 'style'}`
|
`'ES'` - `{'type': 'E', 'sub_type': 'style'}`
|
||||||
@ -1050,13 +1050,13 @@ g:ale_type_map *g:ale_type_map*
|
|||||||
`'WS'` - `{'type': 'W', 'sub_type': 'style'}`
|
`'WS'` - `{'type': 'W', 'sub_type': 'style'}`
|
||||||
`'I'` - `{'type': 'I'}`
|
`'I'` - `{'type': 'I'}`
|
||||||
|
|
||||||
For example, if you want to turn flake8 errors into warnings, you can do
|
For example, if you want to turn flake8 errors into warnings, you can write
|
||||||
the following: >
|
the following: >
|
||||||
|
|
||||||
let g:ale_type_map = {'flake8': {'ES': 'WS', 'E': 'W'}}
|
let g:ale_type_map = {'flake8': {'ES': 'WS', 'E': 'W'}}
|
||||||
<
|
<
|
||||||
If you wanted to turn style errors and warnings into regular errors and
|
If you wanted to turn style errors and warnings into regular errors and
|
||||||
warnings, you can use the following: >
|
warnings, you can write the following: >
|
||||||
|
|
||||||
let g:ale_type_map = {'flake8': {'ES': 'E', 'WS': 'W'}}
|
let g:ale_type_map = {'flake8': {'ES': 'E', 'WS': 'W'}}
|
||||||
<
|
<
|
||||||
|
Loading…
Reference in New Issue
Block a user