Add `per-file-target-version` option #16257
ntBre
marked this pull request as draft 328 days ago
ntBre
marked this pull request as ready for review 328 days ago
add option
8f4daccf
use compiled patterns for resolving
377b6bd7
use Checker::target_version, LinterSettings::resolve_target_version
b418e31c
allow resolving `per_file_target_version`s in the formatter
89ac994b
resolve target_version once for Checker
9f7e057c
test that the linter respects the per-file version
90f6493c
handle base and absolute paths like PerFileIgnore
aceca518
convert to Vec<PerFileVersion> earlier like PerFileIgnore
f369358e
test that the formatter respects the per-file version
ee992b32
delete unused Deref impl
d9f1c17b
impl Display for CompiledPerFileVersion and use in lint and format
3bcf6c39
add error case for linter test
f30a3aa3
add other case for formatter test
4c64314c
pass the whole version to is_allowed_module
09d2989a
pass target_version down to A005
c1bd3a02
extract PerFile<T> and share negation with PerFileVersion
89bee8d8
add some docs
b364a4ad
factor out CompiledPerFile<T>
6cf6ccbc
add generic List type and factor out uses
1c85afa9
remove unused CompiledPerFile<T> newtypes
77653e65
add PerFileKind to fix labels
920df2dc
rename to PerFileTargetVersion
5d02c609
add context on glob failure
276f3ab5
also add context to resolve call itself
699f2737
expand docs on `per-file-target-version`
5f7e8b01
rename target_version fields and document them along with per-file
1f4dced5
pass Option<&Path> to to_format_options
d9d6022d
tidy up
778c5595
ntBre
force pushed
from
f8ab4205
to
778c5595
326 days ago
fix ci
d4f2bba3
ntBre
commented
on 2025-02-20
mention Checker
80699a18
switch to debug_label
23f370ec
impl CacheKey manually to avoid constraints on structs
375fd5cc
test script formatting in the server
34345de9
ntBre
merged
e7a6c19e
into main 323 days ago
ntBre
deleted the brent/per-file-target-version branch 323 days ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub