Fix up vint errors
This commit is contained in:
parent
58a95402c4
commit
5f11fe4e6e
4 changed files with 10 additions and 5 deletions
|
|
@ -28,7 +28,7 @@ stages:
|
||||||
- bash: pip3 install -r dev_requirements.txt
|
- bash: pip3 install -r dev_requirements.txt
|
||||||
displayName: "Install requirements"
|
displayName: "Install requirements"
|
||||||
|
|
||||||
- bash: $HOME/.local/bin/vint autoload/ plugin/ tests/
|
- bash: $HOME/.local/bin/vint autoload/ compiler/ plugin/ tests/
|
||||||
displayName: "Run vint"
|
displayName: "Run vint"
|
||||||
|
|
||||||
- job: 'linux'
|
- job: 'linux'
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,14 @@
|
||||||
" See the License for the specific language governing permissions and
|
" See the License for the specific language governing permissions and
|
||||||
" limitations under the License.
|
" limitations under the License.
|
||||||
|
|
||||||
|
scriptencoding utf-8
|
||||||
|
|
||||||
" Compiler plugin to help running vimspector tests
|
" Compiler plugin to help running vimspector tests
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists('current_compiler')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let current_compiler = "vimspector_test"
|
let current_compiler = 'vimspector_test'
|
||||||
|
|
||||||
setlocal errorformat=
|
setlocal errorformat=
|
||||||
\Found\ errors\ in\ %f:%.%#:
|
\Found\ errors\ in\ %f:%.%#:
|
||||||
|
|
@ -80,7 +82,7 @@ function! s:RunTestUnderCursor()
|
||||||
let l:test_func_name = s:GetCurrentFunction()
|
let l:test_func_name = s:GetCurrentFunction()
|
||||||
|
|
||||||
if l:test_func_name ==# ''
|
if l:test_func_name ==# ''
|
||||||
echo "No test method found"
|
echo 'No test method found'
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -458,7 +458,7 @@ function! s:CheckQuickFixEntries( entries )
|
||||||
let i = 0
|
let i = 0
|
||||||
for entry in a:entries
|
for entry in a:entries
|
||||||
if i >= len( qf )
|
if i >= len( qf )
|
||||||
call assert_report( "Expected more quickfix entries" )
|
call assert_report( 'Expected more quickfix entries' )
|
||||||
endif
|
endif
|
||||||
for key in keys( entry )
|
for key in keys( entry )
|
||||||
call assert_equal( entry[ key ],
|
call assert_equal( entry[ key ],
|
||||||
|
|
|
||||||
|
|
@ -46,13 +46,16 @@ call ch_logfile( 'debuglog', 'w' )
|
||||||
|
|
||||||
" For consistency run all tests with 'nocompatible' set.
|
" For consistency run all tests with 'nocompatible' set.
|
||||||
" This also enables use of line continuation.
|
" This also enables use of line continuation.
|
||||||
|
" vint: Workaround for https://github.com/Vimjas/vint/issues/363
|
||||||
" vint: -ProhibitSetNoCompatible
|
" vint: -ProhibitSetNoCompatible
|
||||||
set nocompatible
|
set nocompatible
|
||||||
" vint: +ProhibitSetNoCompatible
|
" vint: +ProhibitSetNoCompatible
|
||||||
|
|
||||||
" Use utf-8 by default, instead of whatever the system default happens to be.
|
" 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.
|
" Individual tests can overrule this at the top of the file.
|
||||||
|
" vint: -ProhibitEncodingOptionAfterScriptEncoding
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
|
" vint: +ProhibitEncodingOptionAfterScriptEncoding
|
||||||
|
|
||||||
" Avoid stopping at the "hit enter" prompt
|
" Avoid stopping at the "hit enter" prompt
|
||||||
set nomore
|
set nomore
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue