Class Bazel

  • All Implemented Interfaces:

    
    public final class Bazel
    extends PackageManager
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class Bazel.Factory
    • Constructor Summary

      Constructors 
      Constructor Description
      Bazel(String name, File analysisRoot, AnalyzerConfiguration analyzerConfig, RepositoryConfiguration repoConfig)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      List<File> mapDefinitionFiles(List<File> definitionFiles) To avoid processing the module files in a local registry as definition files, ignore them if they are aside a source.json file and under a directory with a metadata.json file.
      List<ProjectAnalyzerResult> resolveDependencies(File definitionFile, Map<String, String> labels)
      • Methods inherited from class org.ossreviewtoolkit.analyzer.PackageManager

        findPackageManagerDependencies, getAnalysisRoot, getAnalyzerConfig, getExcludes, getManagerName, getProjectType, getRepoConfig, resolveDependencies
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Bazel

        Bazel(String name, File analysisRoot, AnalyzerConfiguration analyzerConfig, RepositoryConfiguration repoConfig)
    • Method Detail

      • mapDefinitionFiles

         List<File> mapDefinitionFiles(List<File> definitionFiles)

        To avoid processing the module files in a local registry as definition files, ignore them if they are aside a source.json file and under a directory with a metadata.json file. This simple metric avoids parsing the .bazelrc in the top directory of the project to find out if a MODULE.bazel file is part of a local registry or not.