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

Enforce error checking in CI #1417

Merged
merged 5 commits into from Feb 25, 2022
Merged

Enforce error checking in CI #1417

merged 5 commits into from Feb 25, 2022

Conversation

spring1843
Copy link
Contributor

1. Issue, if available:

2. Description of changes:

Enables a check that makes sure all errors are checked. This is good idea specially because we are already checking all errors except only in one test which this PR fixes.

There is really no good reason to leave errors unchecked. Beginners to Go are often surprised by how much error handling they have to do. In my perspective this is one of the beauties of Go. It makes the programmer think and react everywhere things can go wrong and we know at scale things that can go wrong will go wrong. Handling all errors therefore is part of what it takes to produce high quality and reliable software.

3. How was this change tested?

4. Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: link to issue
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@netlify
Copy link

netlify bot commented Feb 25, 2022

✔️ Deploy Preview for karpenter-docs-prod ready!

🔨 Explore the source changes: 9efe10b

🔍 Inspect the deploy log: https://app.netlify.com/sites/karpenter-docs-prod/deploys/62191df0309e1e0007c0f99e

😎 Browse the preview: https://deploy-preview-1417--karpenter-docs-prod.netlify.app

Copy link
Contributor

@ellistarn ellistarn left a comment

Choose a reason for hiding this comment

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

Great change to linting. I like how you handled the sometimes case.

@spring1843 spring1843 merged commit 40f002e into aws:main Feb 25, 2022
@spring1843 spring1843 deleted the rm/enforce-err-checking branch February 25, 2022 18:58
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.

None yet

2 participants