rules_ocaml icon indicating copy to clipboard operation
rules_ocaml copied to clipboard

default warning sets

Open mobileink opened this issue 4 years ago • 0 comments

Currently each(?) rule has a configurable warnings default, e.g. @ocaml//executable:warnings=-1-2-3

Default is set to @[email protected]@30..39@[email protected]@[email protected]

Question: is that a good default? Should the rules even set a default?

One option is to define several 'warning sets' as config setting rules, so users can select by meaningful label. E.g. @ocaml//warnings:default set to the above, @ocaml//warnings:foo set to some other list, etc.

Insofar as warnings form semantic groupings, we could have one label per group (concept), and then we could compose warning sets.

mobileink avatar Jan 04 '21 14:01 mobileink