use of com.synopsys.integration.detectable.detectables.cargo.CargoDetectable in project synopsys-detect by blackducksoftware.
the class DetectableFactory method createCargoDetectable.
public CargoDetectable createCargoDetectable(DetectableEnvironment environment) {
CargoTomlParser cargoTomlParser = new CargoTomlParser();
CargoDependencyLineParser cargoDependencyLineParser = new CargoDependencyLineParser();
CargoLockPackageDataTransformer cargoLockPackageDataTransformer = new CargoLockPackageDataTransformer(cargoDependencyLineParser);
CargoLockPackageTransformer cargoLockPackageTransformer = new CargoLockPackageTransformer();
CargoExtractor cargoExtractor = new CargoExtractor(cargoTomlParser, cargoLockPackageDataTransformer, cargoLockPackageTransformer);
return new CargoDetectable(environment, fileFinder, cargoExtractor);
}
Aggregations