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