Skip to content

[New feature] Detect useless usage of Format.fprintf #177

Description

@david-maison

Can a rule to warn about the following kind of Format.fprintf usages be useful?

let f fmt s i =
  ...
  Format.fprintf fmt "Hi!";
  Format.fprintf fmt "%s" s
  (* Use instead: Format.pp_print_string fmt s *)
  Format.fprintf fmt "%d" i
  (* Use instead: Format.pp_print_int fmt i *)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions