typos/src
Ed Page 0bb32cc473 fix(config): Resolve ambiguous file types
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
2022-06-15 15:53:04 -05:00
..
bin/typos-cli fix(config): Resolve ambiguous file types 2022-06-15 15:53:04 -05:00
config.rs chore: Remove duplicate lock entry 2022-04-06 12:18:40 -05:00
default_types.rs fix(config): Set file types for go.mod/go.sum 2022-04-06 12:19:49 -05:00
dict.rs style: Silence clippy 2022-05-16 09:09:17 -05:00
file.rs style: Make clippy happy 2021-11-08 11:28:34 -06:00
file_type.rs fix(config): Resolve ambiguous file types 2022-06-15 15:53:04 -05:00
lib.rs fix(config): Resolve ambiguous file types 2022-06-15 15:53:04 -05:00
policy.rs fix(config): Resolve ambiguous file types 2022-06-15 15:53:04 -05:00
report.rs refactor(cli)!: Shift Report impls to bin 2021-05-12 19:51:41 -05:00