package dunolint

  1. Overview
  2. Docs
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_cli/Dunolint_cli/Private/Common_helpers/index.html

Module Private.Common_helpersSource

For use in the rest of the files in this directory.

Sourceval sexpable_param : (module Base.Sexpable.S with type t = 'a) -> 'a Cmdlang.Command.Param.t

Restrict the scope of a command to a subdirectory only. "Below this path". Accepts both relative and absolute paths.

A list of defaults directories to skip.

Sourceval default_skip_paths_config : Base.unit -> Dunolint.Config.t

Create a default config with only skip_paths for common directories.

Create a config containing only the given enforce rules, or None if the list is empty.

Override the workspace root - same as with dune.

Sourceval relativize : workspace_root:Dunolint_cli__.Workspace_root.t -> cwd:Fpath_sexp0.Absolute_path.t -> path:Fpath_sexp0.Fpath.t -> Fpath_sexp0.Relative_path.t

When supplying path arguments that are aimed to designate paths in workspace, we need to resolve them according to where the workspace_root is in relation to the cwd. We interpret relative paths as relative to the cwd from which the program started. We use this helper for example to resolve arguments such as --below _ or --config _.