mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
Introduce a ruff_diagnostics
crate (#3409)
## Summary This PR moves `Diagnostic`, `DiagnosticKind`, and `Fix` into their own crate, which will enable us to further split up Ruff, since sub-linter crates (which need to implement functions that return `Diagnostic`) can now depend on `ruff_diagnostics` rather than Ruff.
This commit is contained in:
parent
08ec11a31e
commit
024caca233
349 changed files with 758 additions and 1003 deletions
|
@ -1,4 +1,4 @@
|
|||
use std::io::{self};
|
||||
use std::io;
|
||||
use std::path::PathBuf;
|
||||
use std::time::Instant;
|
||||
|
||||
|
@ -10,10 +10,11 @@ use log::{debug, error};
|
|||
use rayon::prelude::*;
|
||||
|
||||
use ruff::message::{Location, Message};
|
||||
use ruff::registry::{Diagnostic, Rule};
|
||||
use ruff::registry::Rule;
|
||||
use ruff::resolver::PyprojectDiscovery;
|
||||
use ruff::settings::flags;
|
||||
use ruff::{fix, fs, packaging, resolver, warn_user_once, IOError, Range};
|
||||
use ruff_diagnostics::Diagnostic;
|
||||
|
||||
use crate::args::Overrides;
|
||||
use crate::cache;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue