Skip to content

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

Merged
natalieparellano merged 2 commits intomainfrom
fix/warning-project-toml
Jul 8, 2024
Merged

When parsing project.toml, don't warn about unexpected keys that are actually expected#2197
natalieparellano merged 2 commits intomainfrom
fix/warning-project-toml

Conversation

@natalieparellano
Copy link
Copy Markdown
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 <narellano@vmware.com>
@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

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

Copy link
Copy Markdown
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.

@codecov
Copy link
Copy Markdown

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
@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