rust/clippy_config/src
bors 5459429f92 Auto merge of #12803 - wutchzone:panic-in-tests, r=y21
Add configuration option for ignoring `panic!()` in tests

```
changelog: [`panic`]: Now can be disabled in tests with the `allow-panic-in-tests` option
```

I often find myself using `panic!(…)` in tests a lot, where I often do something like:

```rust
match enam {
  Enam::A => …,
  Enam::B => …,
  _ => panic!("This should not happen at all."),
}
```
I think this patch should go nicely with already existing `allow-unwrap-in-tests` and `allow-expect-in-tests`.
2024-05-16 21:13:34 +00:00
..
conf.rs Add configuration option for ignoring panic!() in tests 2024-05-16 05:45:56 +00:00
lib.rs Enable unused_qualifications lint 2024-03-22 15:58:29 +00:00
metadata.rs Merge commit '93f0a9a91f' into clippy-subtree-update 2024-03-07 17:19:29 +01:00
msrvs.rs add some msrv checks in is_min_const_fn 2024-05-15 16:38:57 +08:00
types.rs Merge commit '66c29b973b' into clippy-subtree-update 2024-01-25 19:17:36 +01:00