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

feat(lint): Add new flag --full-path #12496

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Bhargav-InfraCloud
Copy link
Contributor

@Bhargav-InfraCloud Bhargav-InfraCloud commented Oct 15, 2023

What this PR does / why we need it:

The flag --full-path enables printing full paths in helm lint warnings and errors.

Closes #11365

Special notes for your reviewer:

Excluded tests as the PR becomes size/XXL with them. So moved it to #12923 which should be merged on top of this. Please review both.

CC: @tillig @joejulian

If applicable:

  • this PR contains documentation

The CLI flag is self-explanatory. Doesn't require documentation.

  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

Adding a new flag shouldn't break anything in Helm 2. By default, the --full-path will be false, i.e., helm lint will function as usual.

@pull-request-size pull-request-size bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Oct 15, 2023
@Bhargav-InfraCloud Bhargav-InfraCloud force-pushed the helm_lint_err_full_path branch 2 times, most recently from 39f6487 to d1dd29b Compare January 2, 2024 08:42
@pull-request-size pull-request-size bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jan 2, 2024
@Bhargav-InfraCloud
Copy link
Contributor Author

Excluded tests to bring it down from size/XXL.

@Bhargav-InfraCloud Bhargav-InfraCloud marked this pull request as draft January 2, 2024 08:47
@Bhargav-InfraCloud Bhargav-InfraCloud marked this pull request as ready for review January 2, 2024 09:12
The flag --full-path enables printing full paths in linter warnings
and errors.

Fixes helm#11365

Signed-off-by: Bhargav Ravuri <bhargav.ravuri@infracloud.io>
Bhargav-InfraCloud added a commit to Bhargav-InfraCloud/helm that referenced this pull request Apr 4, 2024
Related to helm#12496

Signed-off-by: Bhargav Ravuri <bhargav.ravuri@infracloud.io>
@Bhargav-InfraCloud
Copy link
Contributor Author

#12923 has the tests related to changes in this. Please review it. It should be merged after this PR's merger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Output full paths to files with errors from lint
1 participant