Robot framework rflint support (#3715)

* Create rflint.vim

support for robot framework by creating ale definition for rflint syntax linter

* robot framework - rflint support
This commit is contained in:
Samuel Branisa
2021-09-11 02:19:17 +02:00
committed by GitHub
parent bf29f6ea92
commit 19437e25d0
7 changed files with 121 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
Before:
call ale#assert#SetUpLinterTest('robot', 'rflint')
let b:rflint_format = ' --format'
\ . ' "{filename}:{severity}:{linenumber}:{char}:{rulename}:{message}" %s'
After:
call ale#assert#TearDownLinterTest()
unlet! b:rflint_format
Execute(The rflint command callback should return default string):
AssertLinter 'rflint',
\ 'rflint'
\ . b:rflint_format
Execute(The rflint executable should be configurable):
let g:ale_robot_rflint_executable = '~/.local/bin/rflint'
AssertLinter '~/.local/bin/rflint',
\ '~/.local/bin/rflint'
\ . b:rflint_format