package dunolint

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dunolint-0.0.20251006.tbz
sha256=1b064927c9e1ef5352a1886ae34a206fef0ce6a913c19a77b0162acc108e0e50
sha512=6cbc08ba318bef6584d15a4491e3dde1bf436109ce0f8b7c400a9f91bbcee64c5785bc924df11eafe98243ec2f188a7f92c58c5062729f3e2af1e9977f1a5e67

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_base.Absolute_path.t -> path:Fpath_base.Fpath.t -> Fpath_base.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 _.