upenn-cis1xx / camelot

A fully-modular OCaml style linter
https://opam.ocaml.org/packages/camelot/
Apache License 2.0
44 stars 5 forks source link

Reword violation message for nested matches >= 3 layers deep #88

Closed jxiao closed 1 year ago

jxiao commented 1 year ago

Right now, if a student has a nested match 3 layers deep, they get the following message:

using nested match statements more than three layers deep

This should be changed to say "three or more layers deep".

Code in question: https://github.com/upenn-cis1xx/camelot/blob/master/lib/style/verbose.ml#L58-L85