Class: Dependabot::Nuget::FileParser

Inherits:
FileParsers::Base
  • Object
show all
Defined in:
lib/dependabot/nuget/file_parser.rb,
lib/dependabot/nuget/file_parser/global_json_parser.rb,
lib/dependabot/nuget/file_parser/project_file_parser.rb,
lib/dependabot/nuget/file_parser/property_value_finder.rb,
lib/dependabot/nuget/file_parser/packages_config_parser.rb

Defined Under Namespace

Classes: GlobalJsonParser, PackagesConfigParser, ProjectFileParser, PropertyValueFinder

Constant Summary collapse

PACKAGE_CONF_DEPENDENCY_SELECTOR =
"packages > packages"

Instance Method Summary collapse

Instance Method Details

#parseObject


21
22
23
24
25
26
27
# File 'lib/dependabot/nuget/file_parser.rb', line 21

def parse
  dependency_set = DependencySet.new
  dependency_set += project_file_dependencies
  dependency_set += packages_config_dependencies
  dependency_set += global_json_dependencies if global_json
  dependency_set.dependencies
end