File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
src/main/scala/codacy/dockerApi/utils Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ libraryDependencies ++= Seq(
20
20
" com.typesafe.play" %% " play-json" % " 2.4.8" ,
21
21
" org.scalatest" %% " scalatest" % " 2.2.4" % " test" ,
22
22
" com.codacy" %% " codacy-plugins-api" % " 1.0.8" withSources(),
23
- " com.github.pathikrit" %% " better-files" % " 2.14.0 " withSources()
23
+ " com.github.pathikrit" %% " better-files" % " 2.17.1 " withSources()
24
24
)
25
25
26
26
organizationName := " Codacy"
Original file line number Diff line number Diff line change @@ -36,4 +36,15 @@ object FileHelper {
36
36
(these ++ these.filter(_.isDirectory).flatMap(recursiveListFiles)).toList
37
37
}
38
38
39
+ def findConfigurationFile (candidates : Set [String ], path : Path ): Option [Path ] = {
40
+ candidates.flatMap { nativeConfigFileName =>
41
+ better.files.File (path).listRecursively
42
+ .filter(f => f.name == nativeConfigFileName)
43
+ .map(_.path)
44
+ }
45
+ .to[List ]
46
+ .sortBy(_.toString.length)
47
+ .headOption
48
+ }
49
+
39
50
}
You can’t perform that action at this time.
0 commit comments