-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add per-file-target-version option
#16257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
8f4dacc
add option
ntBre 377b6bd
use compiled patterns for resolving
ntBre b418e31
use Checker::target_version, LinterSettings::resolve_target_version
ntBre 89ac994
allow resolving `per_file_target_version`s in the formatter
ntBre 9f7e057
resolve target_version once for Checker
ntBre 90f6493
test that the linter respects the per-file version
ntBre aceca51
handle base and absolute paths like PerFileIgnore
ntBre f369358
convert to Vec<PerFileVersion> earlier like PerFileIgnore
ntBre ee992b3
test that the formatter respects the per-file version
ntBre d9f1c17
delete unused Deref impl
ntBre 3bcf6c3
impl Display for CompiledPerFileVersion and use in lint and format
ntBre f30a3aa
add error case for linter test
ntBre 4c64314
add other case for formatter test
ntBre 09d2989
pass the whole version to is_allowed_module
ntBre c1bd3a0
pass target_version down to A005
ntBre 89bee8d
extract PerFile<T> and share negation with PerFileVersion
ntBre b364a4a
add some docs
ntBre 6cf6ccb
factor out CompiledPerFile<T>
ntBre 1c85afa
add generic List type and factor out uses
ntBre 77653e6
remove unused CompiledPerFile<T> newtypes
ntBre 920df2d
add PerFileKind to fix labels
ntBre 5d02c60
rename to PerFileTargetVersion
ntBre 276f3ab
add context on glob failure
ntBre 699f273
also add context to resolve call itself
ntBre 5f7e8b0
expand docs on `per-file-target-version`
ntBre 1f4dced
rename target_version fields and document them along with per-file
ntBre d9d6022
pass Option<&Path> to to_format_options
ntBre 778c559
tidy up
ntBre d4f2bba
fix ci
ntBre 80699a1
mention Checker
ntBre 23f370e
switch to debug_label
ntBre 375fd5c
impl CacheKey manually to avoid constraints on structs
ntBre 34345de
test script formatting in the server
ntBre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.