12345678910111213141516171819202122232425262728293031323334353637383940414243(* This file is free software, part of Dolmen. See file "LICENSE" for more details. *)moduletypeS=sigtypestate(* Global state. *)type'akey(* Keys into the state *)typeheader_state(** type of the local state for header checking *)valheader_check:boolkey(** Key for deciding whether to do any check on headers. *)valheader_state:header_statekey(** Key for the local header state. *)valheader_licenses:stringlistkey(** Key for the list of allowed licenses in headers. *)valheader_lang_version:stringoptionkey(** Key for the allowed language version in headers. *)valinit:header_check:bool->?header_state:header_state->header_licenses:stringlist->header_lang_version:stringoption->state->state(** Init a state with all the relevant keys for this pipeline. *)valinspect:state->Dolmen.Std.Statement.t->state*Dolmen.Std.Statement.t(** Check the headers *)valcheck:state->state(** Check a state for the required headers (once a whole pipeline
has been completed *)end