Skip to content

Commit

Permalink
refactor(stack): Use a shorter name for the dependencies variables
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <frank_viernau@epam.com>
  • Loading branch information
fviernau committed Jul 1, 2024
1 parent 46a3d76 commit 325c842
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plugins/package-managers/stack/src/main/kotlin/Stack.kt
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ class Stack(
val projectId = projectPackage.id.copy(type = managerName)

val allDependencies = mutableSetOf<Dependency>()
val externalDependencyList = listDependencies(workingDir, EXTERNAL_SCOPE_NAME).also { allDependencies += it }
val testDependencyList = listDependencies(workingDir, TEST_SCOPE_NAME).also { allDependencies += it }
val benchDependencyList = listDependencies(workingDir, BENCH_SCOPE_NAME).also { allDependencies += it }
val externalDependencies = listDependencies(workingDir, EXTERNAL_SCOPE_NAME).also { allDependencies += it }
val testDependencies = listDependencies(workingDir, TEST_SCOPE_NAME).also { allDependencies += it }
val benchDependencies = listDependencies(workingDir, BENCH_SCOPE_NAME).also { allDependencies += it }

val dependencyPackageMap = mutableMapOf<Dependency, Package>()

Expand All @@ -131,9 +131,9 @@ class Stack(
}

val scopes = setOf(
Scope(EXTERNAL_SCOPE_NAME, externalDependencyList.getProjectDependencies().toPackageReferences()),
Scope(TEST_SCOPE_NAME, testDependencyList.getProjectDependencies().toPackageReferences()),
Scope(BENCH_SCOPE_NAME, benchDependencyList.getProjectDependencies().toPackageReferences())
Scope(EXTERNAL_SCOPE_NAME, externalDependencies.getProjectDependencies().toPackageReferences()),
Scope(TEST_SCOPE_NAME, testDependencies.getProjectDependencies().toPackageReferences()),
Scope(BENCH_SCOPE_NAME, benchDependencies.getProjectDependencies().toPackageReferences())
)

val project = Project(
Expand Down

0 comments on commit 325c842

Please sign in to comment.