This repository has been archived by the owner on Dec 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
config: attempt to solve TOOL-1405 and modify old test cases #217
Conversation
This file contains 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
lance6716
changed the title
attempt to solve TOOL-1405 and modify old test cases
config: attempt to solve TOOL-1405 and modify old test cases
Jul 23, 2019
lance6716
added
feature-request
This issue is a feature request
priority/normal
Should Update Docs
Should update docs after this PR is merged. Remove this label once the docs are updated
status/PTAL
This PR is ready for review. Add this label back after committing new changes
type/feature
New feature
labels
Jul 23, 2019
zier-one
reviewed
Jul 23, 2019
/run-all-tests |
LGTM |
/run-all-tests |
kennytm
added
status/LGT1
One reviewer already commented LGTM (LGTM1)
and removed
status/PTAL
This PR is ready for review. Add this label back after committing new changes
labels
Jul 24, 2019
/run-all-tests |
kennytm
reviewed
Jul 24, 2019
/run-all-tests |
kennytm
reviewed
Jul 24, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
Co-Authored-By: kennytm <kennytm@gmail.com>
/run-all-tests |
kennytm
approved these changes
Jul 25, 2019
lance6716
added
status/LGT2
Two reviewers already commented LGTM, ready for merge (LGTM2)
and removed
status/LGT1
One reviewer already commented LGTM (LGTM1)
labels
Jul 25, 2019
kennytm
removed
the
Should Update Docs
Should update docs after this PR is merged. Remove this label once the docs are updated
label
Aug 11, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
feature-request
This issue is a feature request
status/LGT2
Two reviewers already commented LGTM, ready for merge (LGTM2)
type/feature
New feature
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.
What problem does this PR solve?
Early exit to save time when user's toml config contains unused items, for example, a typo. And give warnings when some config items won't take effect.
What is changed and how it works?
A check is performed on
(*Config).LoadFromTOML
, usingtoml.Decode
andmetaData.Undecoded
to detect unused toml keys. Considering we have two structureConfig
andGlobalConfig
, we check for both unused keys and give according exit-action or warning.Check List
Tests
Side effects
Related changes