From 28cff80652f31d72807493487e92f32fe81648bd Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 29 Oct 2022 11:56:09 +0000 Subject: [PATCH] codespell: fix spelling errors picked out by `codespell` (#4343) --- ale_linters/awk/gawk.vim | 2 +- ale_linters/cpp/clangtidy.vim | 2 +- ale_linters/matlab/mlint.vim | 2 +- ale_linters/powershell/psscriptanalyzer.vim | 2 +- ale_linters/tex/lacheck.vim | 2 +- autoload/ale/code_action.vim | 2 +- autoload/ale/handlers/hdl_checker.vim | 2 +- autoload/ale/java.vim | 2 +- autoload/ale/list.vim | 4 ++-- autoload/ale/lsp_linter.vim | 2 +- doc/ale-java.txt | 2 +- doc/ale-python.txt | 2 +- doc/ale-typescript.txt | 2 +- doc/ale-verilog.txt | 2 +- doc/ale.txt | 4 ++-- test/fix/test_ale_fix.vader | 2 +- test/handler/test_ansible_lint_handler.vader | 2 +- test/handler/test_atools_handler.vader | 2 +- test/handler/test_checkmake_handler.vader | 2 +- test/handler/test_ghc_handler.vader | 6 +++--- test/handler/test_openscad_handler.vader | 2 +- test/handler/test_tfsec_handler.vader | 2 +- test/handler/test_tslint_handler.vader | 2 +- test/linter/test_c_flawfinder.vader | 2 +- test/linter/test_cpp_flawfinder.vader | 2 +- test/linter/test_cs_csc.vader | 4 ++-- test/linter/test_cs_mcsc.vader | 4 ++-- test/linter/test_htmlhint.vader | 2 +- test/linter/test_ocaml_ols.vader | 2 +- test/linter/test_pyright.vader | 2 +- test/linter/test_reason_ols.vader | 2 +- test/linter/test_rego_opacheck.vader | 2 +- test/linter/test_remark_lint.vader | 2 +- test/linter/test_rust_rls.vader | 2 +- test/linter/test_terraform_terraform.vader | 2 +- test/linter/test_texlab.vader | 2 +- test/test_autocmd_commands.vader | 4 ++-- test/test_format_command.vader | 2 +- test/test_highlight_placement.vader | 6 +++--- test/test_other_sources.vader | 2 +- test/test_wrap_comand.vader | 2 +- 41 files changed, 50 insertions(+), 50 deletions(-) diff --git a/ale_linters/awk/gawk.vim b/ale_linters/awk/gawk.vim index fe961ae3..0c3212fd 100644 --- a/ale_linters/awk/gawk.vim +++ b/ale_linters/awk/gawk.vim @@ -1,5 +1,5 @@ " Author: kmarc -" Description: This file adds support for using GNU awk with sripts. +" Description: This file adds support for using GNU awk with scripts. call ale#Set('awk_gawk_executable', 'gawk') call ale#Set('awk_gawk_options', '') diff --git a/ale_linters/cpp/clangtidy.vim b/ale_linters/cpp/clangtidy.vim index d6944aae..fa9f8e31 100644 --- a/ale_linters/cpp/clangtidy.vim +++ b/ale_linters/cpp/clangtidy.vim @@ -26,7 +26,7 @@ function! ale_linters#cpp#clangtidy#GetCommand(buffer, output) abort " Tell clang-tidy a .h header with a C++ filetype in Vim is a C++ file " only when compile-commands.json file is not there. Adding these - " flags makes clang-tidy completely ignore compile commmands. + " flags makes clang-tidy completely ignore compile commands. if expand('#' . a:buffer) =~# '\.h$' let l:options .= !empty(l:options) ? ' -x c++' : '-x c++' endif diff --git a/ale_linters/matlab/mlint.vim b/ale_linters/matlab/mlint.vim index f58f8b6d..e7daf37e 100644 --- a/ale_linters/matlab/mlint.vim +++ b/ale_linters/matlab/mlint.vim @@ -17,7 +17,7 @@ function! ale_linters#matlab#mlint#Handle(buffer, lines) abort let l:code = l:match[3] let l:text = l:match[4] - " Suppress erroneous waring about filename + " Suppress erroneous warning about filename " TODO: Enable this error when copying filename is supported if l:code is# 'FNDEF' continue diff --git a/ale_linters/powershell/psscriptanalyzer.vim b/ale_linters/powershell/psscriptanalyzer.vim index 4794d9d8..8a8b4b45 100644 --- a/ale_linters/powershell/psscriptanalyzer.vim +++ b/ale_linters/powershell/psscriptanalyzer.vim @@ -13,7 +13,7 @@ function! ale_linters#powershell#psscriptanalyzer#GetExecutable(buffer) abort return ale#Var(a:buffer, 'powershell_psscriptanalyzer_executable') endfunction -" Run Invoke-ScriptAnalyzer and output each linting message as 4 seperate lines +" Run Invoke-ScriptAnalyzer and output each linting message as 4 separate lines " for each parsing function! ale_linters#powershell#psscriptanalyzer#GetCommand(buffer) abort let l:exclude_option = ale#Var( diff --git a/ale_linters/tex/lacheck.vim b/ale_linters/tex/lacheck.vim index 19d69403..35aad083 100644 --- a/ale_linters/tex/lacheck.vim +++ b/ale_linters/tex/lacheck.vim @@ -13,7 +13,7 @@ function! ale_linters#tex#lacheck#Handle(buffer, lines) abort for l:match in ale#util#GetMatches(a:lines, l:pattern) " lacheck follows `\input{}` commands. If the cwd is not the same as the - " file in the buffer then it will fail to find the inputed items. We do not + " file in the buffer then it will fail to find the inputted items. We do not " want warnings from those items anyway if !empty(matchstr(l:match[3], '^Could not open ".\+"$')) continue diff --git a/autoload/ale/code_action.vim b/autoload/ale/code_action.vim index 60106a24..db31aad5 100644 --- a/autoload/ale/code_action.vim +++ b/autoload/ale/code_action.vim @@ -216,7 +216,7 @@ function! s:UpdateCursor(cursor, start, end, offset) abort " to the end of the changes let l:cur_line = l:end_line + l:line_offset let l:cur_column = l:end_column + l:column_offset - " else is not necesary, it means modifications are happening + " else is not necessary, it means modifications are happening " after the cursor so no cursor updates need to be done endif endif diff --git a/autoload/ale/handlers/hdl_checker.vim b/autoload/ale/handlers/hdl_checker.vim index e11c5377..e871b083 100644 --- a/autoload/ale/handlers/hdl_checker.vim +++ b/autoload/ale/handlers/hdl_checker.vim @@ -13,7 +13,7 @@ function! ale#handlers#hdl_checker#IsDotGit(path) abort return ! empty(a:path) && isdirectory(a:path) endfunction -" Sould return (in order of preference) +" Should return (in order of preference) " 1. Nearest config file " 2. Nearest .git directory " 3. The current path diff --git a/autoload/ale/java.vim b/autoload/ale/java.vim index e641ac6c..859d938d 100644 --- a/autoload/ale/java.vim +++ b/autoload/ale/java.vim @@ -1,7 +1,7 @@ " Author: Horacio Sanson https://github.com/hsanson " Description: Functions for integrating with Java tools -" Find the nearest dir contining a gradle or pom file and asume it +" Find the nearest dir contining a gradle or pom file and assume it " the root of a java app. function! ale#java#FindProjectRoot(buffer) abort let l:gradle_root = ale#gradle#FindProjectRoot(a:buffer) diff --git a/autoload/ale/list.vim b/autoload/ale/list.vim index f10d0910..8ce8597e 100644 --- a/autoload/ale/list.vim +++ b/autoload/ale/list.vim @@ -18,7 +18,7 @@ if !exists('s:timer_args') let s:timer_args = {} endif -" Return 1 if there is a buffer with buftype == 'quickfix' in bufffer list +" Return 1 if there is a buffer with buftype == 'quickfix' in buffer list function! ale#list#IsQuickfixOpen() abort let l:res = getqflist({ 'winid' : winnr() }) @@ -190,7 +190,7 @@ function! s:RestoreViewIfNeeded(buffer) abort return endif - " Check wether the cursor has moved since linting was actually requested. If + " Check whether the cursor has moved since linting was actually requested. If " the user has indeed moved lines, do nothing let l:current_view = winsaveview() diff --git a/autoload/ale/lsp_linter.vim b/autoload/ale/lsp_linter.vim index 1fb2e9b6..1c98d628 100644 --- a/autoload/ale/lsp_linter.vim +++ b/autoload/ale/lsp_linter.vim @@ -434,7 +434,7 @@ function! ale#lsp_linter#StartLSP(buffer, linter, Callback) abort if empty(l:root) && a:linter.lsp isnot# 'tsserver' " If there's no project root, then we can't check files with LSP, " unless we are using tsserver, which doesn't use project roots. - call ale#lsp_linter#AddErrorMessage(a:linter.name, "Failed to find project root, language server wont't start.") + call ale#lsp_linter#AddErrorMessage(a:linter.name, "Failed to find project root, language server won't start.") return 0 endif diff --git a/doc/ale-java.txt b/doc/ale-java.txt index fa38fd3a..d9e85d3b 100644 --- a/doc/ale-java.txt +++ b/doc/ale-java.txt @@ -173,7 +173,7 @@ g:ale_java_javalsp_config *g:ale_java_javalsp_config* Type: |Dictionary| Default: `{}` -The javalsp linter automatically detects external depenencies for Maven and +The javalsp linter automatically detects external dependencies for Maven and Gradle projects. In case the javalsp fails to detect some of them, you can specify them setting a dictionary to |g:ale_java_javalsp_config| variable. > diff --git a/doc/ale-python.txt b/doc/ale-python.txt index d5d01dc5..82188e4c 100644 --- a/doc/ale-python.txt +++ b/doc/ale-python.txt @@ -979,7 +979,7 @@ g:ale_python_pylsp_options *g:ale_python_pylsp_options let g:ale_python_pylsp_executable = 'python3' let g:ale_python_pylsp_options = '-m pylsp' - An example stragety for installing `pylsp`: + An example strategy for installing `pylsp`: `python3 -m pip install --user pylsp` diff --git a/doc/ale-typescript.txt b/doc/ale-typescript.txt index 788a7a5c..4a993793 100644 --- a/doc/ale-typescript.txt +++ b/doc/ale-typescript.txt @@ -29,7 +29,7 @@ g:ale_deno_lsp_project_root *g:ale_deno_lsp_project_root* executing the following steps in the given order: 1. Find an ancestor directory containing a tsconfig.json. - 2. Find an ancestory directory containing a .git folder. + 2. Find an ancestor directory containing a .git folder. 3. Use the directory of the current buffer (if the buffer was opened from a file). diff --git a/doc/ale-verilog.txt b/doc/ale-verilog.txt index 11e988bb..611ed2f9 100644 --- a/doc/ale-verilog.txt +++ b/doc/ale-verilog.txt @@ -134,7 +134,7 @@ g:ale_verilog_yosys_options *g:ale_verilog_yosys_options* Default: `'-Q -T -p ''read_verilog %s'''` This variable can be changed to modify the flags/options passed to 'yosys'. - By default, Yosys is an interative program. To obtain linting functionality, + By default, Yosys is an interactive program. To obtain linting functionality, the `'read_verilog'` command is used. diff --git a/doc/ale.txt b/doc/ale.txt index b17e2e42..10799fe2 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -4558,7 +4558,7 @@ ALEFixPost *ALEFixPost-autocmd* These |User| autocommands are triggered before and after every lint or fix cycle. They can be used to update statuslines, send notifications, etc. The autocmd commands are run with |:silent|, so |:unsilent| is required for - echoing messges. + echoing messages. For example to change the color of the statusline while the linter is running: @@ -4591,7 +4591,7 @@ ALEJobStarted *ALEJobStarted-autocmd* ALELSPStarted *ALELSPStarted-autocmd* *ALELSPStarted* - This |User| autocommand is trigged immediately after an LSP connection is + This |User| autocommand is triggered immediately after an LSP connection is successfully initialized. This provides a way to perform any additional initialization work, such as setting up buffer-level mappings. diff --git a/test/fix/test_ale_fix.vader b/test/fix/test_ale_fix.vader index 6529f6f9..429d1b2e 100644 --- a/test/fix/test_ale_fix.vader +++ b/test/fix/test_ale_fix.vader @@ -90,7 +90,7 @@ Before: return [{'lnum': 1, 'col': 1, 'text': 'xxx'}] endfunction - " echo will output a single blank line, and we should ingore it. + " echo will output a single blank line, and we should ignore it. function! IgnoredEmptyOutput(buffer, output) return {'command': has('win32') ? 'echo(' : 'echo'} endfunction diff --git a/test/handler/test_ansible_lint_handler.vader b/test/handler/test_ansible_lint_handler.vader index 28dbba30..e1a2ccbb 100644 --- a/test/handler/test_ansible_lint_handler.vader +++ b/test/handler/test_ansible_lint_handler.vader @@ -23,7 +23,7 @@ Execute(The ansible-lint handler for version group <5 should handle basic errors \ fnamemodify(tempname(), ':h') . '/test_playbook.yml:35: [EANSIBLE0002] Trailing whitespace', \ ]) -Execute(The ansible-lint handler for version group <5 should supress trailing whitespace output when the option is used): +Execute(The ansible-lint handler for version group <5 should suppress trailing whitespace output when the option is used): let b:ale_warn_about_trailing_whitespace = 0 AssertEqual diff --git a/test/handler/test_atools_handler.vader b/test/handler/test_atools_handler.vader index 1bb9ca00..3c226722 100644 --- a/test/handler/test_atools_handler.vader +++ b/test/handler/test_atools_handler.vader @@ -26,7 +26,7 @@ Execute(The atools handler should handle basic errors or warings): \ ]) " Regardless of the severity, if the certainty is [P]ossible and not [C]ertain -" or if regardless of the Certainity the Severity is not [I]mportant or [S]erious +" or if regardless of the Certainty the Severity is not [I]mportant or [S]erious " then it must be a [W]arning Execute(If we are not Certain or Importantly Serious, be a Warning): AssertEqual diff --git a/test/handler/test_checkmake_handler.vader b/test/handler/test_checkmake_handler.vader index e2e18425..f1efb23e 100644 --- a/test/handler/test_checkmake_handler.vader +++ b/test/handler/test_checkmake_handler.vader @@ -18,6 +18,6 @@ Execute(Parsing checkmake errors should work): \ } \ ], \ ale_linters#make#checkmake#Handle(42, [ - \ 'This shouldnt match', + \ "This shouldn't match", \ '1:woops:an error has occurred', \ ]) diff --git a/test/handler/test_ghc_handler.vader b/test/handler/test_ghc_handler.vader index 70246ed1..feaa51fc 100644 --- a/test/handler/test_ghc_handler.vader +++ b/test/handler/test_ghc_handler.vader @@ -7,16 +7,16 @@ Execute(The ghc handler should handle hdevtools output): \ 'lnum': 147, \ 'type': 'W', \ 'col': 62, - \ 'text': '• Couldnt match type ‘a -> T.Text’ with ‘T.Text’ Expected type: [T.Text]', + \ 'text': "• Couldn't match type ‘a -> T.Text’ with ‘T.Text’ Expected type: [T.Text]", \ 'detail': join([ - \ '• Couldnt match type ‘a -> T.Text’ with ‘T.Text’', + \ "• Couldn't match type ‘a -> T.Text’ with ‘T.Text’", \ ' Expected type: [T.Text]', \ ], "\n"), \ }, \ ], \ ale#handlers#haskell#HandleGHCFormat(bufnr(''), [ \ 'foo.hs:147:62: warning:', - \ '• Couldnt match type ‘a -> T.Text’ with ‘T.Text’', + \ "• Couldn't match type ‘a -> T.Text’ with ‘T.Text’", \ ' Expected type: [T.Text]', \ ]) diff --git a/test/handler/test_openscad_handler.vader b/test/handler/test_openscad_handler.vader index 36071cc7..aaecc588 100644 --- a/test/handler/test_openscad_handler.vader +++ b/test/handler/test_openscad_handler.vader @@ -63,7 +63,7 @@ Execute(The openscad handler should handle sca2d output): \ ' - * HASH', \ ' - * INTERSECTION_FOR', \ ' - ', - \ 'If you belive this is a bug in SCA2D please report it to us.', + \ 'If you believe this is a bug in SCA2D please report it to us.', \ '', \ '', \ 'SCA2D message summary', diff --git a/test/handler/test_tfsec_handler.vader b/test/handler/test_tfsec_handler.vader index bf64b8fb..f6566986 100644 --- a/test/handler/test_tfsec_handler.vader +++ b/test/handler/test_tfsec_handler.vader @@ -4,7 +4,7 @@ Before: After: call ale#linter#Reset() -Execute(The tfsec handler should handle empty outout): +Execute(The tfsec handler should handle empty output): AssertEqual \ [], \ ale_linters#terraform#tfsec#Handle(bufnr(''), ['{"results": null}']) diff --git a/test/handler/test_tslint_handler.vader b/test/handler/test_tslint_handler.vader index 32036edf..3653e776 100644 --- a/test/handler/test_tslint_handler.vader +++ b/test/handler/test_tslint_handler.vader @@ -285,7 +285,7 @@ Execute(The tslint handler should not report no-implicit-dependencies errors): \ }])]) Execute(The tslint handler should set filename keys for temporary files): - " The temporay filename below is hacked into being a relative path so we can + " The temporary filename below is hacked into being a relative path so we can " test that we resolve the temporary filename first. let b:relative_to_root = substitute(expand('%:p'), '\v[^/\\]*([/\\])[^/\\]*', '../', 'g') let b:tempname_suffix = substitute(tempname(), '^\v([A-Z]:)?[/\\]', '', '') diff --git a/test/linter/test_c_flawfinder.vader b/test/linter/test_c_flawfinder.vader index 38385e2b..6ef2a40d 100644 --- a/test/linter/test_c_flawfinder.vader +++ b/test/linter/test_c_flawfinder.vader @@ -18,7 +18,7 @@ Execute(Additional flawfinder options should be configurable): AssertLinter 'flawfinder', \ ale#Escape('flawfinder') . ' -CDQS --foobar --minlevel=1 %t' -Execute(The flawfinder exectable should be configurable): +Execute(The flawfinder executable should be configurable): let b:ale_c_flawfinder_executable = 'foo/bar' AssertLinter 'foo/bar', ale#Escape('foo/bar') . ' -CDQS --minlevel=1 %t' diff --git a/test/linter/test_cpp_flawfinder.vader b/test/linter/test_cpp_flawfinder.vader index 3f4067ea..69369536 100644 --- a/test/linter/test_cpp_flawfinder.vader +++ b/test/linter/test_cpp_flawfinder.vader @@ -20,7 +20,7 @@ Execute(Additional flawfinder options should be configurable): AssertLinter 'flawfinder', \ ale#Escape('flawfinder') . ' -CDQS --foobar --minlevel=1 %t' -Execute(The flawfinder exectable should be configurable): +Execute(The flawfinder executable should be configurable): let b:ale_cpp_flawfinder_executable = 'foo/bar' AssertLinter 'foo/bar', ale#Escape('foo/bar') . ' -CDQS --minlevel=1 %t' diff --git a/test/linter/test_cs_csc.vader b/test/linter/test_cs_csc.vader index 28d0304a..c01de7fd 100644 --- a/test/linter/test_cs_csc.vader +++ b/test/linter/test_cs_csc.vader @@ -13,13 +13,13 @@ Execute(The options should be be used in the command): AssertLinter 'csc', 'csc /unsafe /out:TEMP /t:module /recurse:' . ale#Escape('*.cs') -Execute(The souce path should be be used in the command): +Execute(The source path should be be used in the command): let g:ale_cs_csc_source = '../foo/bar' AssertLinterCwd '../foo/bar' AssertLinter 'csc', 'csc /unsafe /out:TEMP /t:module /recurse:' . ale#Escape('*.cs') -Execute(The list of search pathes for assemblies should be be used in the command if not empty): +Execute(The list of search paths for assemblies should be be used in the command if not empty): let g:ale_cs_csc_assembly_path = ['/usr/lib/mono', '../foo/bar'] AssertLinter 'csc', 'csc /unsafe' diff --git a/test/linter/test_cs_mcsc.vader b/test/linter/test_cs_mcsc.vader index e784cf15..8634a5f0 100644 --- a/test/linter/test_cs_mcsc.vader +++ b/test/linter/test_cs_mcsc.vader @@ -13,13 +13,13 @@ Execute(The options should be be used in the command): AssertLinter 'mcs', 'mcs -unsafe -pkg:dotnet -out:TEMP -t:module -recurse:' . ale#Escape('*.cs') -Execute(The souce path should be be used in the command): +Execute(The source path should be be used in the command): let g:ale_cs_mcsc_source = '../foo/bar' AssertLinterCwd '../foo/bar' AssertLinter 'mcs', 'mcs -unsafe -out:TEMP -t:module -recurse:' . ale#Escape('*.cs') -Execute(The list of search pathes for assemblies should be be used in the command if not empty): +Execute(The list of search paths for assemblies should be be used in the command if not empty): let g:ale_cs_mcsc_assembly_path = ['/usr/lib/mono', '../foo/bar'] AssertLinter 'mcs', 'mcs -unsafe' diff --git a/test/linter/test_htmlhint.vader b/test/linter/test_htmlhint.vader index df5797af..4475c1a7 100644 --- a/test/linter/test_htmlhint.vader +++ b/test/linter/test_htmlhint.vader @@ -19,7 +19,7 @@ Execute(The default command should be correct): AssertLinter g:node_executable, \ ale#Escape(g:node_executable) . ' --format=unix %t' -Execute(The global executable should be uesd if the option is set): +Execute(The global executable should be used if the option is set): let g:ale_html_htmlhint_executable = 'foo' let g:ale_html_htmlhint_use_global = 1 diff --git a/test/linter/test_ocaml_ols.vader b/test/linter/test_ocaml_ols.vader index 89734dce..ddab9958 100644 --- a/test/linter/test_ocaml_ols.vader +++ b/test/linter/test_ocaml_ols.vader @@ -27,7 +27,7 @@ Execute(The local executable should be used when available): AssertLinter ale#path#Simplify(g:dir . '/../test-files/ols/node_modules/.bin/ocaml-language-server'), \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ols/node_modules/.bin/ocaml-language-server')) . ' --stdio' -Execute(The gloabl executable should always be used when use_global is set): +Execute(The global executable should always be used when use_global is set): let g:ale_ocaml_ols_use_global = 1 call ale#test#SetFilename('../test-files/ols/file.ml') diff --git a/test/linter/test_pyright.vader b/test/linter/test_pyright.vader index 51510cf2..95dfd853 100644 --- a/test/linter/test_pyright.vader +++ b/test/linter/test_pyright.vader @@ -40,7 +40,7 @@ Execute(virtualenv paths should be set in configuration by default): \ }, \} -Execute(The pythonPath should be set based on whatever the ovveride for the venvPath is set to): +Execute(The pythonPath should be set based on whatever the override for the venvPath is set to): call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') " This overrides the default detection of the path. diff --git a/test/linter/test_reason_ols.vader b/test/linter/test_reason_ols.vader index fb90e36f..aab1285f 100644 --- a/test/linter/test_reason_ols.vader +++ b/test/linter/test_reason_ols.vader @@ -28,7 +28,7 @@ Execute(The local executable should be used when available): \ ale#path#Simplify(g:dir . '/../test-files/ols/node_modules/.bin/ocaml-language-server'), \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ols/node_modules/.bin/ocaml-language-server')) . ' --stdio' -Execute(The gloabl executable should always be used when use_global is set): +Execute(The global executable should always be used when use_global is set): let g:ale_reason_ols_use_global = 1 call ale#test#SetFilename('../test-files/ols/file.re') diff --git a/test/linter/test_rego_opacheck.vader b/test/linter/test_rego_opacheck.vader index 886a9339..3b672282 100644 --- a/test/linter/test_rego_opacheck.vader +++ b/test/linter/test_rego_opacheck.vader @@ -10,7 +10,7 @@ Execute(The default command should be correct): AssertLinter 'opa', \ ale#Escape('opa') . ' check %s --format json ' -Execute(The default command should be overriden): +Execute(The default command should be overridden): let b:ale_rego_opacheck_executable = '/bin/other/opa' AssertLinter '/bin/other/opa', \ ale#Escape('/bin/other/opa') . ' check %s --format json ' diff --git a/test/linter/test_remark_lint.vader b/test/linter/test_remark_lint.vader index a34f0a90..7f69008c 100644 --- a/test/linter/test_remark_lint.vader +++ b/test/linter/test_remark_lint.vader @@ -29,7 +29,7 @@ Execute(The local executable from .bin should be used if available): \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/remark_lint/with_bin_path/node_modules/.bin/remark')) \ . ' --no-stdout --no-color' -Execute(The global executable should be uesd if the option is set): +Execute(The global executable should be used if the option is set): let b:ale_markdown_remark_lint_use_global = 1 call ale#test#SetFilename('../test-files/remark_lint/with_bin_path/foo.md') diff --git a/test/linter/test_rust_rls.vader b/test/linter/test_rust_rls.vader index 62c90d61..d481e858 100644 --- a/test/linter/test_rust_rls.vader +++ b/test/linter/test_rust_rls.vader @@ -12,7 +12,7 @@ Execute(The toolchain should be configurable): AssertLinter 'rls', ale#Escape('rls') . ' +' . ale#Escape('stable') -Execute(The toolchain should be ommitted if not given): +Execute(The toolchain should be omitted if not given): let g:ale_rust_rls_toolchain = '' AssertLinter 'rls', ale#Escape('rls') diff --git a/test/linter/test_terraform_terraform.vader b/test/linter/test_terraform_terraform.vader index 25ca652a..697ffcda 100644 --- a/test/linter/test_terraform_terraform.vader +++ b/test/linter/test_terraform_terraform.vader @@ -9,7 +9,7 @@ Execute(The default command should be correct): AssertLinter 'terraform', \ ale#Escape('terraform') . ' validate -no-color -json ' -Execute(The default command should be overriden): +Execute(The default command should be overridden): let b:ale_terraform_terraform_executable = '/bin/other/terraform' AssertLinter '/bin/other/terraform', \ ale#Escape('/bin/other/terraform') . ' validate -no-color -json ' diff --git a/test/linter/test_texlab.vader b/test/linter/test_texlab.vader index 72b78745..b60b2083 100644 --- a/test/linter/test_texlab.vader +++ b/test/linter/test_texlab.vader @@ -29,7 +29,7 @@ Execute(The options should be configurable): AssertLinter 'texlab', ale#Escape('texlab') . ' ' . b:ale_tex_texlab_options -Execute(Should accpet configuration settings): +Execute(Should accept configuration settings): AssertLSPConfig {} let b:ale_tex_texlab_config = {'build':{'onSave':v:true}} AssertLSPConfig {'build':{'onSave':v:true}} diff --git a/test/test_autocmd_commands.vader b/test/test_autocmd_commands.vader index 2f0a893f..9f42eff1 100644 --- a/test/test_autocmd_commands.vader +++ b/test/test_autocmd_commands.vader @@ -51,7 +51,7 @@ Before: Save g:ale_pattern_options_enabled Save g:ale_hover_cursor - " Turn everything on by defaul for these tests. + " Turn everything on by default for these tests. let g:ale_completion_enabled = 1 let g:ale_echo_cursor = 1 let g:ale_enabled = 1 @@ -118,7 +118,7 @@ Execute (Only the required events should be bound even if various settings are o \ ], \ CheckAutocmd('ALEEvents') -Execute (The cursor hoever event should be enabled with g:ale_hover_cursor = 1): +Execute (The cursor hover event should be enabled with g:ale_hover_cursor = 1): let g:ale_enabled = 1 let g:ale_completion_enabled = 0 let g:ale_echo_cursor = 0 diff --git a/test/test_format_command.vader b/test/test_format_command.vader index b0440dcd..3b7ee98b 100644 --- a/test/test_format_command.vader +++ b/test/test_format_command.vader @@ -178,7 +178,7 @@ Execute(FormatCommand should apply regular cwd paths): \ 'cd ' . (has('unix') ? '' : '/d ') . ale#Escape('/foo /bar') . ' && abc', \ ale#command#FormatCommand(bufnr('%'), '', 'abc', 0, v:null, '/foo /bar', [])[1] \ -Execute(FormatCommand should apply cwd subsitution and formatting): +Execute(FormatCommand should apply cwd substitution and formatting): call ale#test#SetFilename('foo.txt') AssertEqual diff --git a/test/test_highlight_placement.vader b/test/test_highlight_placement.vader index 44ae369b..e8b7ac27 100644 --- a/test/test_highlight_placement.vader +++ b/test/test_highlight_placement.vader @@ -261,7 +261,7 @@ Execute(Only ALE highlights should be restored when buffers are restored): \ sort(GetMatchesWithoutIDs(), {m1, m2 -> m1.group < m2.group ? -1 : 1}) endif -Execute(Higlight end columns should set an appropriate size): +Execute(Highlight end columns should set an appropriate size): call ale#highlight#SetHighlights(bufnr('%'), [ \ {'bufnr': bufnr('%'), 'type': 'E', 'lnum': 3, 'col': 2, 'end_col': 5}, \ {'bufnr': bufnr('%'), 'type': 'W', 'lnum': 4, 'col': 1, 'end_col': 5}, @@ -274,7 +274,7 @@ Execute(Higlight end columns should set an appropriate size): \ ], \ GetMatchesWithoutIDs() -Execute(Higlight end columns should set an appropriate size): +Execute(Highlight end columns should set an appropriate size): call ale#highlight#SetHighlights(bufnr('%'), [ \ {'bufnr': bufnr('%') - 1, 'type': 'E', 'lnum': 1, 'col': 1}, \ {'bufnr': bufnr('%'), 'type': 'E', 'lnum': 1, 'col': 1}, @@ -424,7 +424,7 @@ Execute(Highlights should be cleared when ALE is disabled): Execute(Line highlights should be set when signs are disabled): " This will mess with your settings, but it needs to be tested. - " We need to match highlights case-insenstive when removing them. + " We need to match highlights case-insensitively when removing them. hi link aleerrorline spellbad let g:ale_set_signs = 0 diff --git a/test/test_other_sources.vader b/test/test_other_sources.vader index b397788d..45a7d306 100644 --- a/test/test_other_sources.vader +++ b/test/test_other_sources.vader @@ -55,7 +55,7 @@ Execute(StartChecking should mark a buffer as being actively checked): Assert ale#engine#IsCheckingBuffer(bufnr('')) -Execute(ShowResults sould make a buffer inactive): +Execute(ShowResults should make a buffer inactive): call ale#other_source#StartChecking(bufnr(''), 'other-source-linter') call ale#other_source#StartChecking(bufnr(''), 'second-other-source-linter') diff --git a/test/test_wrap_comand.vader b/test/test_wrap_comand.vader index 7ddb06a1..59c61516 100644 --- a/test/test_wrap_comand.vader +++ b/test/test_wrap_comand.vader @@ -28,7 +28,7 @@ Execute(The command wrapper should work with a nice command with an explicit mar call TestCommand('nice -n 5 foo bar', 'foo bar') -Execute(Wrappers with spread arguments in the middle should be suppported): +Execute(Wrappers with spread arguments in the middle should be supported): let b:ale_command_wrapper = 'wrap %* --' call TestCommand('wrap foo bar --', 'foo bar')