mirror of https://github.com/dense-analysis/ale
Fix typos
This commit is contained in:
parent
e0bd490ed9
commit
753592ca66
|
@ -2,7 +2,7 @@
|
|||
" Description: This file adds support for using the shellcheck linter with
|
||||
" shell scripts.
|
||||
|
||||
" This global variable can be set with a string of comma-seperated error
|
||||
" This global variable can be set with a string of comma-separated error
|
||||
" codes to exclude from shellcheck. For example:
|
||||
"
|
||||
" let g:ale_sh_shellcheck_exclusions = 'SC2002,SC2004'
|
||||
|
|
|
@ -28,7 +28,7 @@ function! ale#command#FormatCommand(buffer, command, pipe_file_if_needed) abort
|
|||
" with an ugly string.
|
||||
let l:command = substitute(l:command, '%%', '<<PERCENTS>>', 'g')
|
||||
|
||||
" Replace all %s occurences in the string with the name of the current
|
||||
" Replace all %s occurrences in the string with the name of the current
|
||||
" file.
|
||||
if l:command =~# '%s'
|
||||
let l:filename = fnamemodify(bufname(a:buffer), ':p')
|
||||
|
|
|
@ -573,7 +573,7 @@ function! ale#engine#ProcessChain(buffer, linter, chain_index, input) abort
|
|||
|
||||
if has_key(a:linter, 'command_chain')
|
||||
while l:chain_index < len(a:linter.command_chain)
|
||||
" Run a chain of commands, one asychronous command after the other,
|
||||
" Run a chain of commands, one asynchronous command after the other,
|
||||
" so that many programs can be run in a sequence.
|
||||
let l:chain_item = a:linter.command_chain[l:chain_index]
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
" Author: w0rp <devw0rp@gmail.com>
|
||||
" Deciption: APIs for working with Asynchronous jobs, with an API normalised
|
||||
" Description: APIs for working with Asynchronous jobs, with an API normalised
|
||||
" between Vim 8 and NeoVim.
|
||||
"
|
||||
" Important functions are described below. They are:
|
||||
|
|
|
@ -305,7 +305,7 @@ endfunction
|
|||
function! ale#linter#Get(original_filetypes) abort
|
||||
let l:possibly_duplicated_linters = []
|
||||
|
||||
" Handle dot-seperated filetypes.
|
||||
" Handle dot-separated filetypes.
|
||||
for l:original_filetype in split(a:original_filetypes, '\.')
|
||||
let l:filetype = ale#linter#ResolveFiletype(l:original_filetype)
|
||||
let l:linter_names = s:GetLinterNames(l:original_filetype)
|
||||
|
|
|
@ -5,7 +5,7 @@ ALE CMake Integration *ale-cmake-options*
|
|||
===============================================================================
|
||||
cmakelint *ale-cmake-cmakelint*
|
||||
|
||||
g:ale_cmake_cmakelint_exectuable *g:ale_cmake_cmakelint_executable*
|
||||
g:ale_cmake_cmakelint_executable *g:ale_cmake_cmakelint_executable*
|
||||
*b:ale_cmake_cmakelint_executable*
|
||||
Type: |String|
|
||||
Default: `'cmakelint'`
|
||||
|
|
|
@ -20,7 +20,7 @@ Integration Information
|
|||
while you type.
|
||||
3. rls -- If you have `rls` installed, you might prefer using this linter
|
||||
over cargo. rls implements the Language Server Protocol for incremental
|
||||
compliation of Rust code, and can check Rust files while you type. `rls`
|
||||
compilation of Rust code, and can check Rust files while you type. `rls`
|
||||
requires Rust files to contained in Cargo projects.
|
||||
|
||||
Only cargo is enabled by default. To switch to using rustc instead of cargo,
|
||||
|
|
10
doc/ale.txt
10
doc/ale.txt
|
@ -608,7 +608,7 @@ g:ale_fixers *g:ale_fixers*
|
|||
A mapping from filetypes to |List| values for functions for fixing errors.
|
||||
See |ale-fix| for more information.
|
||||
|
||||
This variable can be overriden with variables in each buffer.
|
||||
This variable can be overridden with variables in each buffer.
|
||||
|
||||
|
||||
g:ale_fix_on_save *g:ale_fix_on_save*
|
||||
|
@ -1508,7 +1508,7 @@ ale#linter#Define(filetype, linter) *ale#linter#Define()*
|
|||
the end of the file will be moved to the end.
|
||||
`col` - The column number is optional and will
|
||||
default to `0`. Any strings will be automatically
|
||||
coverted to number using `str2nr()`.
|
||||
converted to number using `str2nr()`.
|
||||
`end_col` - An optional end column number.
|
||||
This key can be set to specify the column problems
|
||||
end on, for improved highlighting.
|
||||
|
@ -1659,7 +1659,7 @@ ale#linter#Define(filetype, linter) *ale#linter#Define()*
|
|||
`project_callback` and `language_callback` arguments
|
||||
must also be defined.
|
||||
|
||||
LSP linters handle diagonstics automatically, so
|
||||
LSP linters handle diagnostics automatically, so
|
||||
the `callback` argument must not be defined.
|
||||
|
||||
`project_callback` A |String| or |Funcref| for a callback function
|
||||
|
@ -1748,12 +1748,12 @@ ale#linter#Get(filetype) *ale#linter#Get()*
|
|||
Return all of linters configured for a given filetype as a |List| of
|
||||
|Dictionary| values in the format specified by |ale#linter#Define()|.
|
||||
|
||||
Filetypes may be dot-seperated to invoke linters for multiple filetypes:
|
||||
Filetypes may be dot-separated to invoke linters for multiple filetypes:
|
||||
for instance, the filetype `javascript.jsx` will return linters for both the
|
||||
`javascript` and `jsx` filetype.
|
||||
|
||||
Aliases may be defined in as described in |g:ale_linter_aliases|. Aliases
|
||||
are applied after dot-seperated filetypes are broken up into their
|
||||
are applied after dot-separated filetypes are broken up into their
|
||||
components.
|
||||
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ Execute (The local alias option shouldn't completely replace the global one):
|
|||
call ale#linter#Define('testft1', g:testlinter1)
|
||||
call ale#linter#Define('testft2', g:testlinter2)
|
||||
let g:ale_linter_aliases = {'testft1': ['testft1', 'testft2']}
|
||||
" This is a key set for a differnt filetype.
|
||||
" This is a key set for a different filetype.
|
||||
" We should look for a key in this Dictionary first, and then check the
|
||||
" global Dictionary.
|
||||
let b:ale_linter_aliases = {'testft3': ['testft1']}
|
||||
|
|
|
@ -88,7 +88,7 @@ Execute (Count should be match the loclist):
|
|||
\ 'total': 15,
|
||||
\}, ale#statusline#Count(bufnr(''))
|
||||
|
||||
Execute (Output should be empty for non-existant buffer):
|
||||
Execute (Output should be empty for non-existent buffer):
|
||||
AssertEqual Counts({}), ale#statusline#Count(9001)
|
||||
|
||||
Execute (Status() should return just errors for the old format):
|
||||
|
|
Loading…
Reference in New Issue