-
Notifications
You must be signed in to change notification settings - Fork 320
Modernize sources, add golangci-lint #466
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
34 commits
Select commit
Hold shift + click to select a range
9ee5faf
Replace interface{} with any
kolyshkin 07efb51
Use for range for integers
kolyshkin 6c64a8d
sdjournal/journal_test.go: use slices.Contains
kolyshkin 376e0cd
login1: remove unused method
kolyshkin 476279d
sdjournal,machine1: don't use rand.Seed in test
kolyshkin 1f212c8
Remove io/ioutil usage
kolyshkin 50a6630
dbus: simplify if condition in a test
kolyshkin d168ac7
dbus: fix some godoc comments
kolyshkin 30abda1
daemon,journal: use t.Setenv in tests
kolyshkin 3cbff4d
journal,sdjournal: use %q in tests
kolyshkin d8d5995
sdjournal: simplify/fix tests
kolyshkin d997b93
dbus: fix SA5001 linter warning in tests
kolyshkin d8964ac
activation: fix SA1006 staticcheck warnings in tests
kolyshkin adf9320
activation: simplify/unify connectStringWritten
kolyshkin 4dcd007
unit: fix SA4001 staticcheck warning
kolyshkin 5586a97
machine1: fix some godoc strings
kolyshkin a196f27
dbus: fix ST1016 staticcheck warning
kolyshkin 9317ea5
unit: add package doc
kolyshkin 832c0c0
unit: fix SA4004 staticcheck warning
kolyshkin b83d8a7
sdjournal: fix SA1024 staticcheck warning
kolyshkin 456ef98
journal: apply De Morgan law
kolyshkin d38e4b7
machine1: fix SA1019 staticcheck warnings in tests
kolyshkin 1e2eee7
activation: Files: fix ercheck warnings
kolyshkin ba4d799
dbus: deprecate KillUnitContext
kolyshkin 1282df7
dbus: ignore a few errcheck warnings
kolyshkin 1151292
activation: fix errcheck warnings in tests
kolyshkin 9102adf
dbus: avoid zombies in test
kolyshkin f82fcb4
dbus: TestFreezer: check runStopUnit error
kolyshkin 1313182
dbus: fix stopUnit test helper
kolyshkin b9c5324
Fix some "error value not checked" linter warnings
kolyshkin c6dae46
Gofumpt the code
kolyshkin c763162
Remove obsoleted build tags
kolyshkin 08292ea
ci: enable golangci-lint
kolyshkin 60c4c55
scripts/ci-runner: less Fedora packages
kolyshkin 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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version: "2" | ||
|
||
formatters: | ||
enable: | ||
- gofumpt | ||
|
||
linters: | ||
settings: | ||
staticcheck: | ||
checks: | ||
- all | ||
- -ST1003 # https://staticcheck.dev/docs/checks/#ST1003 Should not use underscores in Go names. | ||
- -ST1005 # https://staticcheck.dev/docs/checks/#ST1005 Error strings should not be capitalized. | ||
govet: | ||
enable: | ||
- nilness | ||
exclusions: | ||
presets: | ||
- std-error-handling |
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.
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.
Consider handling the error from os.Unsetenv() instead of discarding it, as this could indicate permission issues or other environment problems.
Copilot uses AI. Check for mistakes.