-
Notifications
You must be signed in to change notification settings - Fork 351
Add command lint-port
#720
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
Draft
autoantwort
wants to merge
43
commits into
microsoft:main
Choose a base branch
from
autoantwort:feature/lint-port
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 13 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
9d0b2dd
Add command `lint-port`
autoantwort c5d5557
CR
autoantwort 32ef8e0
fix bug
autoantwort 689e47d
Adopt tests
autoantwort 7a5a5bd
Merge branch 'main' into feature/lint-port
autoantwort 4cae60d
Merge branch 'main' into feature/lint-port
autoantwort bfe12fe
Fix warning
autoantwort 1bad290
Fix test
autoantwort d3668f3
Fix e2e tests
autoantwort c48fb10
Fix windows
autoantwort 23a7459
Ignore more wrong ports
autoantwort 6795b99
Merge branch 'main' into feature/lint-port
autoantwort a890651
Merge branch 'main' into feature/lint-port
autoantwort b0b4495
Apply format diff
autoantwort 38b2a69
Merge branch 'main' into feature/lint-port
autoantwort 686a36f
Make code more unit testable
autoantwort 04ba447
Add helpers to MessageSink
autoantwort ea500f5
Apply code review and add tests
autoantwort 8f56f8e
Replace usages of vcpkg_extract_source_archive_ex
autoantwort 9e85bdd
format diff
autoantwort a8b28ea
Also replace REF with SOURCE_BASE in vcpkg_extract_source_archive
autoantwort 7f2c55a
Fix Bug
autoantwort 4e17669
Merge branch 'main' into feature/lint-port
autoantwort d967f73
Apply diff
autoantwort 054858c
PACKAGE_NAME must also be used if the package name casing is different
autoantwort 2b95b50
Format
autoantwort c320e6c
Revert "PACKAGE_NAME must also be used if the package name casing is …
autoantwort ed44a8d
Use functions to simplify code
autoantwort 9eaf07d
Also check for vcpkg_check_features without FEATURES keyword
autoantwort d2d792d
Merge branch 'main' into feature/lint-port
autoantwort dbfd782
Add message file changes
autoantwort 2ab739f
Merge branch 'main' into feature/lint-port
autoantwort 68e6756
Fix command name
autoantwort a6f2608
Merge branch 'main' into feature/lint-port
autoantwort 53df38b
Merge branch 'main' into feature/lint-port
autoantwort ee0fda1
Merge branch 'main' into feature/lint-port
autoantwort 83b13a9
Improve performance
autoantwort 89208e9
Merge branch 'main' into feature/lint-port
autoantwort 0c5c4f1
Merge branch 'main' into feature/lint-port
autoantwort 4cdcb30
Add missing include
autoantwort 14f1b1f
Use right command arguments
autoantwort f596c5a
Merge branch 'main' into feature/lint-port
autoantwort 53e95f4
Merge branch 'main' into feature/lint-port
autoantwort 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #pragma once | ||
|
|
||
| #include <vcpkg/commands.interface.h> | ||
|
|
||
| namespace vcpkg::Commands::LintPort | ||
| { | ||
| void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
|
|
||
| struct LintPortCommand : PathsCommand | ||
| { | ||
| void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths) const override; | ||
| }; | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| #pragma once | ||
|
|
||
| #include <vcpkg/base/fwd/files.h> | ||
| #include <vcpkg/base/fwd/stringview.h> | ||
|
|
||
| #include <vcpkg/fwd/packagespec.h> | ||
| #include <vcpkg/fwd/triplet.h> | ||
| #include <vcpkg/fwd/vcpkgpaths.h> | ||
|
|
||
| #include <vcpkg/sourceparagraph.h> | ||
|
|
||
| namespace vcpkg::Lint | ||
| { | ||
| enum class Status : int | ||
| { | ||
| Ok = 0b0, | ||
| Problem = 0b01, | ||
| Fixed = 0b10, | ||
| PartiallyFixed = 0b11 | ||
| }; | ||
|
|
||
| Status& operator|=(Status& self, Status s); | ||
|
|
||
| enum class Fix | ||
| { | ||
| NO = 0, // A warning message is printed for every found problem | ||
| YES // The problem is fixed in place (SourceControlFile) and no message is printed | ||
| }; | ||
|
|
||
| Status check_used_version_scheme(SourceControlFile& scf, Fix fix); | ||
|
|
||
| Status check_license_expression(SourceControlFile& scf, Fix fix); | ||
|
|
||
| Status check_portfile_deprecated_functions(Filesystem& fs, SourceControlFileAndLocation& scf, Fix fix); | ||
| } | ||
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.
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.