Skip to content

Tool versions used by the analyzer should be recorded as part of project results #10676

@sschuberth

Description

@sschuberth

This is the respective issue for the analyzer that has been fixed for the scanner here:

val toolVersions = mutableMapOf<String, String>()
info.managedFiles.keys.forEach { manager ->
if (manager is CommandLineTool) {
toolVersions[manager.descriptor.id] = manager.getVersion()
}
}
val run = AnalyzerRun(startTime, endTime, Environment(toolVersions = toolVersions), config, analyzerResult)

The above code does not work anymore as expected because PackageManagers do not implement CommandLineTool anymore, in favor of having command objects that implement CommandLineTool.

I'm not currently having a good idea how to fix this, so maybe @oss-review-toolkit/kotlin-devs have? Of course, we could extend PackageManager with somehting like a nullable getCommandLineTool() or so, but that doesn't seem to be very elegant...

Should we maybe stop tracking the analyzer tool version completely? After all, no one seems to have missed them while the above code was broken...

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyzerAbout the analyzer tool

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions