diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f30e84d..5dc944a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,7 +28,7 @@ stages: - bash: pip3 install -r dev_requirements.txt displayName: "Install requirements" - - bash: $HOME/.local/bin/vint autoload/ plugin/ tests/ + - bash: $HOME/.local/bin/vint autoload/ compiler/ plugin/ tests/ displayName: "Run vint" - job: 'linux' diff --git a/compiler/vimspector_test.vim b/compiler/vimspector_test.vim index 18ef9ae..8ccd734 100644 --- a/compiler/vimspector_test.vim +++ b/compiler/vimspector_test.vim @@ -13,12 +13,14 @@ " See the License for the specific language governing permissions and " limitations under the License. +scriptencoding utf-8 + " Compiler plugin to help running vimspector tests -if exists("current_compiler") +if exists('current_compiler') finish endif -let current_compiler = "vimspector_test" +let current_compiler = 'vimspector_test' setlocal errorformat= \Found\ errors\ in\ %f:%.%#: @@ -80,7 +82,7 @@ function! s:RunTestUnderCursor() let l:test_func_name = s:GetCurrentFunction() if l:test_func_name ==# '' - echo "No test method found" + echo 'No test method found' return endif diff --git a/tests/breakpoints.test.vim b/tests/breakpoints.test.vim index 0d2fa6c..689ed4b 100644 --- a/tests/breakpoints.test.vim +++ b/tests/breakpoints.test.vim @@ -458,7 +458,7 @@ function! s:CheckQuickFixEntries( entries ) let i = 0 for entry in a:entries if i >= len( qf ) - call assert_report( "Expected more quickfix entries" ) + call assert_report( 'Expected more quickfix entries' ) endif for key in keys( entry ) call assert_equal( entry[ key ], diff --git a/tests/lib/run_test.vim b/tests/lib/run_test.vim index e03a1d4..fca26a6 100644 --- a/tests/lib/run_test.vim +++ b/tests/lib/run_test.vim @@ -46,13 +46,16 @@ call ch_logfile( 'debuglog', 'w' ) " For consistency run all tests with 'nocompatible' set. " This also enables use of line continuation. +" vint: Workaround for https://github.com/Vimjas/vint/issues/363 " vint: -ProhibitSetNoCompatible set nocompatible " vint: +ProhibitSetNoCompatible " Use utf-8 by default, instead of whatever the system default happens to be. " Individual tests can overrule this at the top of the file. +" vint: -ProhibitEncodingOptionAfterScriptEncoding set encoding=utf-8 +" vint: +ProhibitEncodingOptionAfterScriptEncoding " Avoid stopping at the "hit enter" prompt set nomore