mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 12:29:28 +00:00
Add unreachable code rule (#5384)
Co-authored-by: Thomas de Zeeuw <thomas@astral.sh> Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
parent
937de121f3
commit
0b963ddcfa
30 changed files with 4688 additions and 4 deletions
|
@ -61,7 +61,7 @@ mod tests {
|
|||
|
||||
use super::{main, Args};
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(not(feature = "unreachable-code"), test)]
|
||||
fn test_generate_json_schema() -> Result<()> {
|
||||
let mode = if env::var("RUFF_UPDATE_SCHEMA").as_deref() == Ok("1") {
|
||||
Mode::Write
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue