package dunolint

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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 _.