pub fn shadowing_entry(entries: &[String], a: &str) -> Option<String>Expand description
§2 “Shadowing warnings”: is a made useless by a different entry already
in entries? Entry A is shadowed by B when B matches every command A
matches: B is a single word equal to A’s first word, or B ends in * and
B’s words before the * are a leading run of A’s words (ignoring A’s own
trailing *). Returns the first covering entry, in list order. Shared by
lean-ctx allow (write-time warning) and lean-ctx doctor (read-only
advisory) so the rule can’t drift between the two.