package ppx_forbid

  1. Overview
  2. No Docs
PPX that forbids specific function calls or modules at compile time

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1.0.tar.gz
md5=092a959c08fd1275987c2cc001b9c693
sha512=6f1d5c1e522160d35bb5fc61b0f21bf0e41e1b7a32602fe3aee47f9f878b2d9f8e01307d19c03b8e7da410ab073bbd0ac87a1a744eda56e04046e9e74fcd4888

Description

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

Published: 06 May 2026

Dependencies (3)

  1. ppxlib >= "0.28.0"
  2. ocaml >= "4.14"
  3. dune >= "3.13"

Dev Dependencies (1)

  1. odoc with-doc

Used by

None

Conflicts

None