codespell: fix spelling errors picked out by codespell (#4343)

This commit is contained in:
Ben Boeckel
2022-10-29 11:56:09 +00:00
committed by GitHub
parent e4b2054408
commit 28cff80652
41 changed files with 50 additions and 50 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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',
\ ])

View File

@@ -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]',
\ ])

View File

@@ -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',

View File

@@ -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}'])

View File

@@ -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]:)?[/\\]', '', '')

View File

@@ -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'

View File

@@ -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'

View File

@@ -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'

View File

@@ -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'

View File

@@ -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

View File

@@ -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')

View File

@@ -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.

View File

@@ -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')

View File

@@ -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 '

View File

@@ -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')

View File

@@ -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')

View File

@@ -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 '

View File

@@ -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}}

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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')

View File

@@ -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')