Skip to content

Commit

Permalink
Fix test and lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
iurysza committed Mar 29, 2024
1 parent 327280c commit 1d078f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ open class ModuleGraphPlugin : Plugin<Project> {
task.orientation.set(extension.orientation)
task.linkText.set(extension.linkText)
task.showFullPath.set(extension.showFullPath)

task.dependencies.set(project.parseProjectStructure(
extension.excludeConfigurationNames.getOrElse(emptyList()))
task.excludeConfigurationNames.set(extension.excludeConfigurationNames)
task.dependencies.set(
project.parseProjectStructure(extension.excludeConfigurationNames.getOrElse(emptyList()))
)
task.outputFile.set(project.layout.projectDirectory.file(extension.readmePath))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal fun Project.parseProjectStructure(excludeConfigurationNames: List<Strin
config.dependencies.withType(ProjectDependency::class.java)
.map { it.dependencyProject }
.forEach { targetProject ->
if(!excludeConfigurationNames.contains(config.name)) {
if (!excludeConfigurationNames.contains(config.name)) {
dependencies[sourceProject.path] =
dependencies.getOrDefault(sourceProject.path, emptyList())
.plus(Dependency(targetProject.path, config.name))
Expand Down

0 comments on commit 1d078f8

Please sign in to comment.