# `VulnCheck.Entrypoints.OtpApp`
[🔗](https://github.com/Voskan/vulncheck/blob/v1.0.1/lib/vulncheck/entrypoints/otp_app.ex#L1)

Computes which OTP applications start at boot and their application
callback modules, from the `.app` resource files of the build.

Starting from the project's root applications, `applications` and
`included_applications` are followed transitively. Optional applications
only count when they are actually present in the build.

# `result`

```elixir
@type result() :: %{
  started: [String.t()],
  app_modules: %{required(String.t()) =&gt; String.t()},
  root_has_mod: boolean(),
  root_files_known: boolean(),
  boot_tree_known: boolean(),
  missing_packages: [{String.t(), String.t()}],
  notes: [String.t()]
}
```

# `analyze`

```elixir
@spec analyze(VulnCheck.Types.Workspace.t()) :: result()
```

Walks the application tree of a workspace.

`app_modules` maps every started application with a `mod` entry to its
callback module.

# `packages_by_app`

```elixir
@spec packages_by_app(VulnCheck.Types.Workspace.t()) :: %{
  required(String.t()) =&gt; VulnCheck.Types.Package.t()
}
```

Maps OTP application names to workspace packages.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
