From 753592ca6605c8b8f45c5cd08604b514ec644cc3 Mon Sep 17 00:00:00 2001 From: rhysd Date: Tue, 3 Oct 2017 01:11:54 +0900 Subject: [PATCH] Fix typos --- ale_linters/sh/shellcheck.vim | 2 +- autoload/ale/command.vim | 2 +- autoload/ale/engine.vim | 2 +- autoload/ale/job.vim | 2 +- autoload/ale/linter.vim | 2 +- doc/ale-cmake.txt | 2 +- doc/ale-rust.txt | 2 +- doc/ale.txt | 10 +++++----- test/test_linter_retrieval.vader | 2 +- test/test_statusline.vader | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/ale_linters/sh/shellcheck.vim b/ale_linters/sh/shellcheck.vim index 004656b..b47ba19 100644 --- a/ale_linters/sh/shellcheck.vim +++ b/ale_linters/sh/shellcheck.vim @@ -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' diff --git a/autoload/ale/command.vim b/autoload/ale/command.vim index f8d04ff..558fe23 100644 --- a/autoload/ale/command.vim +++ b/autoload/ale/command.vim @@ -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, '%%', '<>', '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') diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim index 839218b..29cb44f 100644 --- a/autoload/ale/engine.vim +++ b/autoload/ale/engine.vim @@ -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] diff --git a/autoload/ale/job.vim b/autoload/ale/job.vim index 1d8b676..254f4ee 100644 --- a/autoload/ale/job.vim +++ b/autoload/ale/job.vim @@ -1,5 +1,5 @@ " Author: w0rp -" 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: diff --git a/autoload/ale/linter.vim b/autoload/ale/linter.vim index 2cd773f..269b092 100644 --- a/autoload/ale/linter.vim +++ b/autoload/ale/linter.vim @@ -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) diff --git a/doc/ale-cmake.txt b/doc/ale-cmake.txt index c1356c9..fb46336 100644 --- a/doc/ale-cmake.txt +++ b/doc/ale-cmake.txt @@ -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'` diff --git a/doc/ale-rust.txt b/doc/ale-rust.txt index d03ab07..52dc3d6 100644 --- a/doc/ale-rust.txt +++ b/doc/ale-rust.txt @@ -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, diff --git a/doc/ale.txt b/doc/ale.txt index fae9100..afdc918 100644 --- a/doc/ale.txt +++ b/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. diff --git a/test/test_linter_retrieval.vader b/test/test_linter_retrieval.vader index afb540d..1a1e258 100644 --- a/test/test_linter_retrieval.vader +++ b/test/test_linter_retrieval.vader @@ -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']} diff --git a/test/test_statusline.vader b/test/test_statusline.vader index 7978a50..0ce1d36 100644 --- a/test/test_statusline.vader +++ b/test/test_statusline.vader @@ -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):