Skip to content
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

When parsing project.toml, don't warn about unexpected keys that are actually expected #2197

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

natalieparellano
Copy link
Member

Fixes #2192

Summary

Output

Before

After

Documentation

  • Should this change be documented?
    • Yes, see #___
    • No

Related

Resolves #___

…actually expected

Fixes #2192

Signed-off-by: Natalie Arellano <[email protected]>
@github-actions github-actions bot added the type/enhancement Issue that requests a new feature or improvement. label Jul 2, 2024
@github-actions github-actions bot added this to the 0.35.0 milestone Jul 2, 2024
Comment on lines +36 to +42
ID string `toml:"id"`
Name string `toml:"name"`
Version string `toml:"version"`
Authors []string `toml:"authors"`
DocumentationURL string `toml:"documentation-url"`
SourceURL string `toml:"source-url"`
Licenses []License `toml:"licenses"`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +31 to +39
SchemaVersion string `toml:"schema-version"`
ID string `toml:"id"`
Name string `toml:"name"`
Version string `toml:"version"`
Authors []string `toml:"authors"`
Licenses []types.License `toml:"licenses"`
DocumentationURL string `toml:"documentation-url"`
SourceURL string `toml:"source-url"`
Metadata map[string]interface{} `toml:"metadata"`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@natalieparellano natalieparellano marked this pull request as ready for review July 3, 2024 13:40
@natalieparellano natalieparellano requested review from a team as code owners July 3, 2024 13:40
@natalieparellano
Copy link
Member Author

@jjbustamante would you mind taking a look at this one?

Copy link
Member

@jjbustamante jjbustamante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

codecov bot commented Jul 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.17%. Comparing base (0ad4842) to head (085b288).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2197   +/-   ##
=======================================
  Coverage   70.17%   70.17%           
=======================================
  Files         253      253           
  Lines       18452    18452           
=======================================
  Hits        12947    12947           
  Misses       4659     4659           
  Partials      846      846           
Flag Coverage Δ
os_linux 69.31% <ø> (ø)
os_macos-arm64 65.60% <ø> (-0.01%) ⬇️
os_windows 69.69% <ø> (ø)
unit 70.17% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@natalieparellano natalieparellano merged commit 2fa3260 into main Jul 8, 2024
18 checks passed
@natalieparellano natalieparellano deleted the fix/warning-project-toml branch July 8, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Issue that requests a new feature or improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warning when building app with _.id or _.version in project.toml
2 participants