package dunolint

  1. Overview
  2. Docs
On This Page
  1. Getters
A linter for build files in dune projects

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dunolint-0.0.20260306.tbz
sha256=d92e0d705b661ea12b22dcc9bdd83815c507218c1de085d75140fd47bea0c5ec
sha512=fdf4fbb4906aba4aeab766dfa5202b64950c71c988b1b84363319dd05edb93b34142355f968a5687057977e40defdced20a2a17ee0614565096eb123655621f3

doc/dunolint.dunolint_engine/Dunolint_engine/Dune_project_context/index.html

Module Dunolint_engine.Dune_project_contextSource

Context associated with a dune-project file.

When performing linting it may be useful to refer to context from the enclosing dune-project file. This type is used to hold the information we wish to access.

Sourcetype t

Each value of type t refers to context found in exactly one file. This type is non mutable.

create ~path ~original_contents parses information needed from a "dune-project" file, and extracts from it an immutable context required for linting.

Getters

A valid dune-project file will necessarily start with a valid lang dune stanza, however if the file is not valid, this may return None.

Sourcemodule Invalid_dune_project : sig ... end