diff options
author | Ben Boeckel <mathstuf@users.noreply.github.com> | 2022-10-29 11:56:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-29 20:56:09 +0900 |
commit | 28cff80652f31d72807493487e92f32fe81648bd (patch) | |
tree | 2714193a64bd5e075c2f2ea0d11c1f655a144bd4 /test | |
parent | e4b20544082ba019d8095cbc24ffab43b15e8fc0 (diff) | |
download | ale-28cff80652f31d72807493487e92f32fe81648bd.zip |
codespell: fix spelling errors picked out by `codespell` (#4343)
Diffstat (limited to 'test')
26 files changed, 33 insertions, 33 deletions
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') |