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

chore: add errcheck for parsing cli flags #32

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

thevilledev
Copy link
Contributor

@thevilledev thevilledev commented Jul 18, 2023

Overview

Add missing error check to main() for parsing CLI flags. If flags.Parse() fails now the error is hidden from the user.

Design of Change

An error check was missing and I added it 👍

Related Issues/Pull Requests

Originally noticed at hashicorp/vault-plugin-auth-kubernetes#202. Applies to many auth plugin implementations, possibly due to the missing check on this example repo.

Contributor Checklist

[-] Add relevant docs to upstream Vault repository, or sufficient reasoning why docs won’t be added yet
Not needed

[-] Add output for any tests not ran in CI to the PR description (eg, acceptance tests)
Not needed

[x] Backwards compatible

Copy link
Contributor

@tomhjp tomhjp left a comment

Choose a reason for hiding this comment

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

Thanks! This certainly adds more weight to getting some common CI going for unused error linting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants