-
Notifications
You must be signed in to change notification settings - Fork 0
Make the lint job actually lint, and clear what it finds #4
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
32ec7cd
build: migrate the golangci-lint config to the v2 schema
packetloss404 5acc272
all: group imports the way the repository already does
packetloss404 3fa9670
all: check the errors errcheck found, and scope type assertions to sh…
packetloss404 efb6402
all: delete the code nothing uses
packetloss404 f36af64
all: address the staticcheck findings
packetloss404 b5b6351
procrun: check the POSIX group handle the way the Windows one is checked
packetloss404 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,45 @@ | ||
| version: "2" | ||
| linters: | ||
| enable: | ||
| - govet | ||
| - errcheck | ||
| - staticcheck | ||
| - unused | ||
| - ineffassign | ||
| - misspell | ||
| settings: | ||
| errcheck: | ||
| check-type-assertions: true | ||
| exclusions: | ||
| generated: lax | ||
| rules: | ||
| # errcheck's check-type-assertions is on so that an unchecked | ||
| # assertion in shipping code is a finding rather than a panic in | ||
| # front of a user. In a test a panicking assertion already fails the | ||
| # test with the offending type in the message, and rewriting forty | ||
| # inline assertions into two-statement checks would cost readability | ||
| # for no safety. This exempts type assertions only: errcheck reports | ||
| # those without a function name, so unchecked *errors* stay enforced | ||
| # in tests too. | ||
| - path: _test\.go | ||
| linters: | ||
| - errcheck | ||
| text: ^Error return value is not checked$ | ||
| presets: | ||
| - comments | ||
| - common-false-positives | ||
| - legacy | ||
| - std-error-handling | ||
| paths: | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ | ||
| formatters: | ||
| enable: | ||
| - gofmt | ||
| - goimports | ||
|
|
||
| linters-settings: | ||
| errcheck: | ||
| check-type-assertions: true | ||
|
|
||
| run: | ||
| timeout: 5m | ||
| settings: | ||
| goimports: | ||
| local-prefixes: | ||
| - github.com/packetcode/packetcode | ||
| exclusions: | ||
| generated: lax | ||
| paths: | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a job worker survives the five-second timeout or snapshot flushing fails, this cleanup now returns the error to
packetRuntime.Close, but the TUI path invokes that method asdefer runtime.Close()at line 290 and discards its result. Consequently, if the Bubble Tea run itself succeeds,runstill returns nil and the process reports success—the shutdown failure this change intends to expose remains invisible.Useful? React with 👍 / 👎.