package dunolint

  1. Overview
  2. Docs
A linter for build files in dune projects

Install

Dune Dependency

Authors

Maintainers

Sources

dunolint-0.0.20250310.tbz
sha256=b44119c96aeabb960e852711c2f20ae43f0011e796f05e012141ba980a5b58f6
sha512=5bf76732adc940db6cac0875e94c3eaff436288faba95388b9675c68b3f30f5362e01f289fc8a096325f7db812ace273773a1e051ab7d7ace3b8db4a57a0e070

doc/dunolint.dunolinter/Dunolinter/index.html

Module DunolinterSource

Sourcemodule Handler : sig ... end

A handler for evaluating and enforcing predicates.

Sourcemodule Linter : sig ... end
Sourcemodule Linters : sig ... end

A data structure to hold linters with a binary search lookup based on field name.

Sourcemodule Sexp_handler : sig ... end

A handler for fields found in a dune stanza (in files "dune", "dune-project", etc.)

Sourcemodule Stanza_linter : sig ... end
Sourcemodule Stanza : sig ... end
Sourcemodule type S = sig ... end

A linter for a file containing stanzas.

Returns the path of the file where the stanza was located when it was loaded.

Sourceval linter : _ Stanza.t -> Linter.t

Stanzas that do not have support for predicate enforcement shall be ignored when using this interface, they will be left untouched by dunolint.

Sourceval match_stanza : 'a Stanza.t -> 'a

If you are writing a custom rewriter perhaps perhaps you'll find it easier to use directly the stanza API provided by a linter library, in which case you'll need this accessor. In this use of the library, you perform side effects to 'a directly using the linter api, rather than going through the enforcement of configurable conditions.

Sourceval original_sexp : _ Stanza.t -> Base.Sexp.t

That is the sexp that correspond to the entire stanza held by this rewriter. These are the sexps found at the top level of dune files, for example (library ..) or (executable ..).

This accessor is provided if you desire to implement a low-level rewriter using Sexps_rewriter.

Sourceval sexps_rewriter : _ Stanza.t -> Sexps_rewriter.t

That is the Sexps_rewriter that was created to read the stanza held by this rewriter.

Sourcemodule Private : sig ... end
OCaml

Innovation. Community. Security.