forked from home-assistant/os-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize go dev environment (home-assistant#162)
* Use bookworm as dev container * Use %w (wrapping format verb) for errors This allows to enable errorlint. * Avoid deprecated io/ioutil * Disable gosec linter The cmdline.txt is a system configuration, those are typically readable on a Linux system. The file is on a FAT partition anyways, so the file permissions are mandated by mount options anyways. * Use Go version 1.19 by default * Enable bugs linters Enable the preset bugs plus enable the default ones which are not part of the bugs preset explicitly.
- Loading branch information
Showing
7 changed files
with
25 additions
and
419 deletions.
There are no files selected for viewing
This file contains 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 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,7 @@ | ||
linters: | ||
presets: | ||
- bugs | ||
enable: | ||
- gosimple | ||
- ineffassign | ||
- unused |
This file contains 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 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 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.