Demonstrates the `forbid_method_call` matcher of the Architecture dimension.
Calls to banned method names — either via direct dot-notation
(`x.unwrap()`) or UFCS form (`Option::unwrap(x)`) — are flagged in the
configured scope. Typical use: forbid `.unwrap()` / `.expect()` in
production code so errors are propagated with typed results.
`src/domain/bad.rs` contains both forms of the violation — a direct
`.unwrap()` call and a UFCS `Option::unwrap(...)` call. The matcher
reports both.
- --
`find_method_call_matches` run against `src/domain/bad.rs` with
`names = ["unwrap"]` returns exactly **two** `MatchLocation`s:
- -