Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
david-maison opened this issue Apr 16, 2018 · 0 comments
Open

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

david-maison opened this issue Apr 16, 2018 · 0 comments

Comments

@david-maison
Copy link

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 *)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant