Opam_ci_check_lintmodule Opam_helpers : sig ... endSome package name prefixes must be used along with specific conflict classes
If either a restricted prefix or conflict class exists, then the corresponding other must also exist.
type error = | UnnecessaryField of string| UnmatchedName of OpamPackage.Name.t * OpamPackage.Name.t| UnmatchedVersion of OpamPackage.Version.t * OpamPackage.Version.t| DubiousDuneSubst| DuneIsBuild| NoPackageSources| UnexpectedFile of string| ForbiddenPerm of string| OpamLint of int * [ `Warning | `Error ] * string| MaintainerWithoutContact of string list| NameCollision of string| WeakChecksum of string| PinDepends| ExtraFiles| RestrictedPrefix of string| PrefixConflictClassMismatch of prefix_conflict_class_mismatch| DefaultTagsPresent of string list| MissingUpperBound of string| InvalidReasonForArchiving| InvalidOpamRepositoryCommitHash| InvalidConfPackage of [ `Conf_prefix | `Depext | `Conf_flag ] listErrors detected during linting.
Use string_of_error to produce descriptions of the errors
val string_of_error : error -> stringstring_of_error returns a string description of an error
val msg_of_error : (OpamPackage.t * error) -> stringmsg_of_error (pkg, err) is a string describing a linting err found for the pkg
val msg_of_errors : (OpamPackage.t * error) list -> stringmsg_of_errors returns a string describing all the linting errors.
errors is a list of pairs of packages and the errors found for them. The function assumes that these list of pairs are ordered by package.
The output is human-friendly, grouping errors by package and adding indentation and newlines for readability. Use msg_of_errors_machine for output that is machine-friendly.
val msg_of_errors_machine : (OpamPackage.t * error) list -> stringmsg_of_errors_machine returns a string describing all the linting errors.
The output is a simple list of error messages, one per line. For a more human-friendly output, use msg_of_errors.
module Checks : sig ... endval v : 
  pkg:OpamPackage.t ->
  ?newly_published:bool option ->
  pkg_src_dir:string option ->
  OpamFile.OPAM.t ->
  tCreate an object of type t
val lint_packages : 
  ?checks:Checks.kind list ->
  opam_repo_dir:string ->
  t list ->
  ((OpamPackage.t * error) list, string) Stdlib.resultlint_packages ~opam_repo_dir metas is a list of all the errors detected while linting the packages in the metas list in the context of the opam repository located at opam_repo_dir.
Examples:
  let passes_all_checks = assert (lint_packages ~opam_repo_dir metas |> Result.get_ok |> List.length = 0)
  let failed_some_checks = assert (lint_packages ~opam_repo_dir metas |> Result.get_ok |> List.length > 0)
  let messages_for_all_failed_checks =
    lint_packages ~opam_repo_dir ~repo_packages metas
    |> Result.get_ok |> msg_of_errors