ppx_js_style is an identity ppx rewriter that enforces Jane Street coding styles.
The following rules are enforced by ppx_js_style:
[@@deprecated] attributes must contain the date of deprecation, using the format "[since MM-YYYY] ..." N.B. this check, on by default at janestreet, but off by default externally, can also be disabled with the flag -no-dated-deprecationignore (expr : typ) let _ : type = expr Note that aliases need not be annotated: let _ = Foo.bar inEnabled by -check-doc-comments: Comments in mli must either be documentation comments or explicitely "ignored": (** documentation comment *) (*_ ignored comment *) Normal (* comment *) comments are disallowed.
This flag additionally enables warning 50, which checks the placement of documentation comments.
Finally, doc comments are checked to be syntactically valid.