All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
7 call ale#test#SetDirectory('/testplugin/test')
8 runtime ale_linters/kotlin/kotlinc.vim
10 let g:command_tail = ' -I ' . ale#Escape(ale#gradle#GetInitPath())
11 \ . ' -q printClasspath'
13 let g:gradle_init_path = ale#path#Simplify(g:dir . '../../autoload/ale/gradle/init.gradle')
18 unlet! g:gradle_init_path
21 call ale#test#RestoreDirectory()
22 call ale#linter#Reset()
24 Execute(Should return 'gradlew' command if project includes gradle wapper):
25 call ale#test#SetFilename('test-files/gradle/wrapped-project/src/main/kotlin/dummy.kt')
29 \ ale#path#Simplify(g:dir . '/test-files/gradle/wrapped-project'),
30 \ ale#Escape(ale#path#Simplify(g:dir . '/test-files/gradle/wrapped-project/gradlew'))
33 \ ale#gradle#BuildClasspathCommand(bufnr(''))
35 Execute(Should return 'gradle' command if project does not include gradle wapper):
36 call ale#test#SetFilename('test-files/gradle/unwrapped-project/src/main/kotlin/dummy.kt')
37 let $PATH .= (has('win32') ? ';' : ':')
38 \ . ale#path#Simplify(g:dir . '/test-files/gradle')
42 \ ale#path#Simplify(g:dir . '/test-files/gradle/unwrapped-project'),
43 \ ale#Escape('gradle') . g:command_tail
45 \ ale#gradle#BuildClasspathCommand(bufnr(''))
47 Execute(Should return empty string if gradle cannot be executed):
48 call ale#test#SetFilename('test-files/gradle/non-gradle-project/src/main/kotlin/dummy.kt')
52 \ ale#gradle#BuildClasspathCommand(bufnr(''))