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
|
||||
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'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 ],
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue