ppx_forbidversion Documentation on ocaml.org

PPX that forbids specific function calls or modules at compile time

A configurable PPX rewriter that traverses the AST and raises compilation errors when forbidden functions or modules are used. Useful for enforcing coding standards like 'use Eio instead of blocking Unix calls' or 'never use Obj.magic'. Supports per-project configuration via .ppx_forbid files and [@allow_forbidden] attributes for suppression.

Tags ppx lint static-analysis
AuthorMathias Bourgoin <mathias.bourgoin@atacama.tech>
LicenseGPL-3.0-or-later
Published
Homepagehttps://github.com/atacama-dev/ppx_forbid
Issue Trackerhttps://github.com/atacama-dev/ppx_forbid/issues
Documentationhttps://github.com/atacama-dev/ppx_forbid
MaintainerMathias Bourgoin <mathias.bourgoin@atacama.tech>
Dependencies
Source [http] https://github.com/atacama-dev/ppx_forbid/archive/refs/tags/v0.1.0.tar.gz
md5=092a959c08fd1275987c2cc001b9c693
sha512=6f1d5c1e522160d35bb5fc61b0f21bf0e41e1b7a32602fe3aee47f9f878b2d9f8e01307d19c03b8e7da410ab073bbd0ac87a1a744eda56e04046e9e74fcd4888
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ppx_forbid/ppx_forbid.0.1.0/opam
No package is dependent