2017-07-16 23:17:59 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('cpp', 'cpplint')
|
2017-07-16 23:17:59 +00:00
|
|
|
|
|
|
|
After:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-07-16 23:17:59 +00:00
|
|
|
|
|
|
|
Execute(The executable should be configurable):
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'cpplint', ale#Escape('cpplint') . ' %s'
|
2017-07-16 23:17:59 +00:00
|
|
|
|
|
|
|
let b:ale_cpp_cpplint_executable = 'foobar'
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'foobar', ale#Escape('foobar') . ' %s'
|
2017-07-16 23:17:59 +00:00
|
|
|
|
|
|
|
Execute(The options should be configurable):
|
|
|
|
let b:ale_cpp_cpplint_options = '--something'
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'cpplint', ale#Escape('cpplint') . ' --something %s'
|