Skip to content

Implement component.group #64

@maennchen

Description

@maennchen

Purpose: Grouping related components for better organization.

Proposed:

defp determine_group(component) do
  case component.package_url.type do
    "otp" when is_erlang_stdlib(component.name) -> "erlang.otp"
    "github" when is_elixir_stdlib(component.name) -> "elixir.stdlib"
    _ -> nil
  end
end

Output:

{
  "name": "stdlib",
  "group": "erlang.otp",
  "type": "library"
},
{
  "name": "logger",
  "group": "elixir.stdlib",
  "type": "library"
}

Important

Question: ❓ Group naming convention:

  • Should Hex organizations map to groups?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions