mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-18 18:05:11 +02:00
Before, when two file types matched the same glob, the file type that
one was non-deterministic.
Now, "the more specific" file type wins. What this means is that we
break up the file by its extensions and prioritize the more literal glob
- If its just `*`, then its lowest priority
- If it contains `*` and other logic, then its next
- If it doesn't contain a `*`, then its the highest priority
This leaves out other glob syntax like `{one,two}` as those are
closed-ended and so considered specific still.
Fixes #487
17 lines
299 B
Rust
17 lines
299 B
Rust
/// `typos_cli`'s API is unstable. Open an issue for starting a discussion on getting a subset
|
|
/// stabilized.
|
|
|
|
#[doc(hidden)]
|
|
pub mod config;
|
|
#[doc(hidden)]
|
|
pub mod dict;
|
|
#[doc(hidden)]
|
|
pub mod file;
|
|
#[doc(hidden)]
|
|
pub mod policy;
|
|
#[doc(hidden)]
|
|
pub mod report;
|
|
|
|
mod default_types;
|
|
mod file_type;
|