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.
2 call ale#test#SetDirectory('/testplugin/test')
3 runtime ale_linters/kotlin/kotlinc.vim
6 call ale#test#RestoreDirectory()
7 call ale#linter#Reset()
9 Execute(Should return directory for 'gradlew' if found in parent directory):
10 call ale#test#SetFilename('test-files/gradle/wrapped-project/src/main/kotlin/dummy.kt')
13 \ ale#path#Simplify(g:dir . '/test-files/gradle/wrapped-project'),
14 \ ale#gradle#FindProjectRoot(bufnr(''))
16 Execute(Should return directory for 'settings.gradle' if found in parent directory):
17 call ale#test#SetFilename('test-files/gradle/settings-gradle-project/src/main/kotlin/dummy.kt')
20 \ ale#path#Simplify(g:dir . '/test-files/gradle/settings-gradle-project'),
21 \ ale#gradle#FindProjectRoot(bufnr(''))
23 Execute(Should return directory for 'build.gradle' if found in parent directory):
24 call ale#test#SetFilename('test-files/gradle/build-gradle-project/src/main/kotlin/dummy.kt')
27 \ ale#path#Simplify(g:dir . '/test-files/gradle/build-gradle-project'),
28 \ ale#gradle#FindProjectRoot(bufnr(''))
30 Execute(Should return empty string if gradle files are not found in parent directory):
31 call ale#test#SetFilename('test-files/gradle/non-gradle-project/src/main/kotlin/dummy.kt')
35 \ ale#gradle#FindProjectRoot(bufnr(''))