|
NAMEopam-lint - Checks and validate package description ('opam') files.SYNOPSISopam lint [OPTION]... [FILES]...DESCRIPTIONGiven an opam file, performs several quality checks on it and outputs recommendations, warnings or errors on stderr.ARGUMENTS
OPTIONS
LINT CODESW20: Field 'opam-version' refers to the patch version of opam, it should be of the form MAJOR.MINORE21: Field 'opam-version' doesn't match the current version, validation may not be accurate E22: Some fields are present but empty; remove or fill them E23: Missing field 'maintainer' E24: Field 'maintainer' has the old default value W25: Missing field 'authors' W26: No field 'install', but a field 'remove': install instructions probably part of 'build'. Use the 'install' field or a .install file E28: Unknown package flags found E29: Package dependencies mention package variables E31: Fields 'depends' and 'depopts' refer to the same package names E32: Field 'ocaml-version:' and variable 'ocaml-version' are deprecated, use a dependency towards the 'ocaml' package instead for availability, and the 'ocaml:version' package variable for scripts E33: Field 'os' is deprecated, use 'available' and the 'os' variable instead E34: Field 'available:' contains references to package-local variables. It should only be determined from global configuration variables W35: Missing field 'homepage' W36: Missing field 'bug-reports' W37: Missing field 'dev-repo' E39: Command 'make' called directly, use the built-in variable instead W41: Some packages are mentioned in package scripts or features, but there is no dependency or depopt toward them E42: The 'dev-repo:' field doesn't use version control. You should use URLs of the form "git://", "git+https://", "hg+https://"... E43: Conjunction used in 'conflicts:' field. Only '|' is allowed W44: The 'plugin' package flag is set but the package name doesn't begin with 'opam-' E45: Unclosed variable interpolations in strings E46: Package is flagged "conf" but has source, install or remove instructions W47: Synopsis (or description first line) should start with a capital and not end with a dot W48: The fields 'build-test:' and 'build-doc:' are deprecated, and should be replaced by uses of the 'with-test' and 'with-doc' filter variables in the 'build:' and 'install:' fields, and by the newer 'run-test:' field W49: The following URLs don't use version control but look like version control URLs W50: The 'post' flag doesn't make sense with build or optional dependencies E51: The behaviour for negated dependency flags 'build' or 'post' is unspecified E52: Package is needlessly flagged "light-uninstall", since it has no remove instructions E53: Mismatching 'extra-files:' field W54: External dependencies should not contain spaces nor empty string E55: Non-normalised OS or arch string being tested W56: It is discouraged for non-compiler packages to use 'setenv:' E57: Synopsis and description must not be both empty W58: Found variable, predefined one W59: url doesn't contain a checksum E60: Upstream check failed W61: `with-test` variable in `run-test` is out of scope, it will be ignored W62: License doesn't adhere to the SPDX standard, see https://spdx.org/licenses/ E65: URLs must be absolute W66: String that can't be resolved to bool in filtered package formula E67: Checksum specified with a non archive url COMMON OPTIONSThese options are common to all commands.
ENVIRONMENTOpam makes use of the environment variables listed here. Boolean variables should be set to "0", "no", "false" or the empty string to disable, "1", "yes" or "true" to enable.OPAMALLPARENS surround all filters with parenthesis. OPAMASSUMEDEPEXTS see option `--assume-depexts'. OPAMAUTOREMOVE see remove option `--auto-remove'. OPAMBESTEFFORT see option `--best-effort'. OPAMBESTEFFORTPREFIXCRITERIA sets the string that must be prepended to the criteria when the `--best-effort' option is set, and is expected to maximise the `opam-query' property in the solution. OPAMBUILDDOC Removed in 2.1. OPAMBUILDTEST Removed in 2.1. OPAMCLI see option `--cli'. OPAMCOLOR when set to always or never, sets a default value for the `--color' option. OPAMCONFIRMLEVEL see option `--confirm-level`. OPAMCONFIRMLEVEL has priority over OPAMYES and OPAMNO. OPAMCRITERIA specifies user preferences for dependency solving. The default value depends on the solver version, use `config report' to know the current setting. See also option --criteria. OPAMCUDFFILE save the cudf graph to file-actions-explicit.dot. OPAMCUDFTRIM controls the filtering of unrelated packages during CUDF preprocessing. OPAMCURL can be used to select a given 'curl' program. See OPAMFETCH for more options. OPAMDEBUG see options `--debug' and `--debug-level'. OPAMDEBUGSECTIONS if set, limits debug messages to the space-separated list of sections. Sections can optionally have a specific debug level (for example, CLIENT:2 or CLIENT CUDF:2), but otherwise use `--debug-level'. OPAMDIGDEPTH defines how aggressive the lookup for conflicts during CUDF preprocessing is. OPAMDOWNLOADJOBS sets the maximum number of simultaneous downloads. OPAMDROPWORKINGDIR overrides packages previously updated with --working-dir on update. Without this variable set, opam would keep them unchanged unless explicitly named on the command-line. OPAMDRYRUN see option `--dry-run'. OPAMEDITOR sets the editor to use for opam file editing, overrides $EDITOR and $VISUAL. OPAMERRLOGLEN sets the number of log lines printed when a sub-process fails. 0 to print all. OPAMEXTERNALSOLVER see option `--solver'. OPAMFAKE see option `--fake'. OPAMFETCH specifies how to download files: either `wget', `curl' or a custom command where variables %{url}%, %{out}%, %{retry}%, %{compress}% and %{checksum}% will be replaced. Overrides the 'download-command' value from the main config file. OPAMFIXUPCRITERIA same as OPAMUPGRADECRITERIA, but specific to fixup. OPAMIGNORECONSTRAINTS see install option `--ignore-constraints-on'. OPAMIGNOREPINDEPENDS see option `--ignore-pin-depends'. OPAMINPLACEBUILD see option `--inplace-build'. OPAMJOBS sets the maximum number of parallel workers to run. OPAMJSON log json output to the given file (use character `%' to index the files). OPAMKEEPBUILDDIR see install option `--keep-build-dir'. OPAMKEEPLOGS tells opam to not remove some temporary command logs and some backups. This skips some finalisers and may also help to get more reliable backtraces. OPAMLOCKED combination of `--locked' and `--lock-suffix' options. OPAMLOGS logdir sets log directory, default is a temporary directory in /tmp OPAMMAKECMD set the system make command to use. OPAMMERGEOUT merge process outputs, stderr on stdout. OPAMNO answer no to any question asked, see options `--no` and `--confirm-level`. OPAMNO is ignored if either OPAMCONFIRMLEVEL or OPAMYES is set. OPAMNOAGGREGATE with `opam admin check', don't aggregate packages. OPAMNOASPCUD Deprecated. OPAMNOAUTOUPGRADE disables automatic internal upgrade of repositories in an earlier format to the current one, on 'update' or 'init'. OPAMNOCHECKSUMS enables option --no-checksums when available. OPAMNODEPEXTS disables system dependencies handling, see option `--no-depexts'. OPAMNOENVNOTICE Internal. OPAMNOSELFUPGRADE see option `--no-self-upgrade' OPAMPINKINDAUTO sets whether version control systems should be detected when pinning to a local path. Enabled by default since 1.3.0. OPAMPRECISETRACKING fine grain tracking of directories. OPAMPREPRO set this to false to disable CUDF preprocessing. Less efficient, but might help debugging solver issue. OPAMREQUIRECHECKSUMS Enables option `--require-checksums' when available (e.g. for `opam install'). OPAMRETRIES sets the number of tries before failing downloads. OPAMREUSEBUILDDIR see option `--reuse-build-dir'. OPAMROOT see option `--root'. This is automatically set by `opam env --root=DIR --set-root'. OPAMROOTISOK don't complain when running as root. OPAMSAFE see option `--safe'. OPAMSHOW see option `--show'. OPAMSKIPUPDATE see option `--skip-updates'. OPAMSKIPVERSIONCHECKS bypasses some version checks. Unsafe, for compatibility testing only. OPAMSOLVERALLOWSUBOPTIMAL (default `true') allows some solvers to still return a solution when they reach timeout; while the solution remains assured to be consistent, there is no guarantee in this case that it fits the expected optimisation criteria. If `true', opam willcontinue with a warning, if `false' a timeout is an error. Currently only the builtin-z3 backend handles this degraded case. OPAMSOLVERTIMEOUT change the time allowance of the solver. Default is 60.0, set to 0 for unlimited. Note that all solvers may not support this option. OPAMSTATS display stats at the end of command. OPAMSTATUSLINE display a dynamic status line showing what's currently going on on the terminal. (one of one of `always', `never' or `auto') OPAMSTRICT fail on inconsistencies (file reading, switch import, etc.). OPAMSWITCH see option `--switch'. Automatically set by `opam env --switch=SWITCH --set-switch'. OPAMUNLOCKBASE see install option `--unlock-base'. OPAMUPGRADECRITERIA specifies user preferences for dependency solving when performing an upgrade. Overrides OPAMCRITERIA in upgrades if both are set. See also option --criteria. OPAMUSEINTERNALSOLVER see option `--use-internal-solver'. OPAMUSEOPENSSL force openssl use for hash computing. OPAMUTF8 use UTF8 characters in output (one of one of `always', `never' or `auto'). By default `auto', which is determined from the locale). OPAMUTF8MSGS use extended UTF8 characters (camels) in opam messages. Implies OPAMUTF8. This is set by default on OSX only. OPAMVALIDATIONHOOK if set, uses the `%{hook%}' command to validate an opam repository update. OPAMVERBOSE see option `--verbose'. OPAMVERSIONLAGPOWER do not use. OPAMWITHDOC see install option `--with-doc'. OPAMWITHTEST see install option `--with-test. OPAMWORKINGDIR see option `--working-dir'. OPAMYES see options `--yes' and `--confirm-level`. OPAMYES has has priority over OPAMNO and is ignored if OPAMCONFIRMLEVEL is set. OPAMVAR_var overrides the contents of the variable var when substituting `%{var}%` strings in `opam` files. OPAMVAR_package_var overrides the contents of the variable package:var when substituting `%{package:var}%` strings in `opam` files. CLI VERSIONAll scripts and programmatic invocations of opam should use `--cli' in order to ensure that they work seamlessly with future versions of the opam client. Additionally, blog posts or other documentation can benefit, as it prevents information from becoming stale.Although opam only supports roots (~/.opam/) for the current version, it does provide backwards compatibility for its command-line interface. Since CLI version support was only added in opam 2.1, use OPAMCLI to select 2.0 support (as opam 2.0 will just ignore it), and `--cli=2.1' for 2.1 (or later) versions, since an environment variable controlling the parsing of syntax is brittle. To this end, opam displays a warning if OPAMCLI specifies a valid version other than 2.0, and also if `--cli=2.0' is specified. The command-line version is selected by using the `--cli' option or the OPAMCLI environment variable. `--cli' may be specified morethan once, where the last instance takes precedence. OPAMCLI is only inspected if `--cli' is not given. EXIT STATUSAs an exception to the following, the `exec' command returns 127 if the command was not found or couldn't be executed, and the command's exit value otherwise.
FURTHER DOCUMENTATIONSee https://opam.ocaml.org/doc.AUTHORSVincent Bernardoff <vb@luminar.eu.org>Raja Boujbel <raja.boujbel@ocamlpro.com> Roberto Di Cosmo <roberto@dicosmo.org> Thomas Gazagnaire <thomas@gazagnaire.org> Louis Gesbert <louis.gesbert@ocamlpro.com> Fabrice Le Fessant <Fabrice.Le_fessant@inria.fr> Anil Madhavapeddy <anil@recoil.org> Guillem Rieu <guillem.rieu@ocamlpro.com> Ralf Treinen <ralf.treinen@pps.jussieu.fr> Frederic Tuong <tuong@users.gforge.inria.fr> BUGSCheck bug reports at https://github.com/ocaml/opam/issues.
Visit the GSP FreeBSD Man Page Interface. |