Skip to content

Commit

Permalink
ci: Add golangci-lint configuration to project
Browse files Browse the repository at this point in the history
  • Loading branch information
thessem committed Aug 22, 2024
1 parent 8983c4b commit 2360a1b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
10 changes: 10 additions & 0 deletions .golangci.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[linters]
enable = [
"errcheck",
"gosimple",
"govet",
"ineffassign",
"staticcheck",
"unused",
"gofumpt",
]
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"go.formatTool": "gofumpt",
"go.lintTool": "golangci-lint",
"go.lintFlags": ["--fast"]
"go.lintFlags": ["-c", ".golangci.toml", "--fast"]
}
14 changes: 6 additions & 8 deletions internal/readme/readme.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ import (
"time"
)

var (
libraryNameToMarkdownName = map[string]string{
"Zap": ":zap: zap",
"Zap.Sugar": ":zap: zap (sugared)",
"Zap.Pretty": ":zap: :nail_care: zap-prettyconsole",
"Zap.Pretty.Sugar": ":zap: :nail_care: zap-prettyconsole (sugared)",
}
)
var libraryNameToMarkdownName = map[string]string{
"Zap": ":zap: zap",
"Zap.Sugar": ":zap: zap (sugared)",
"Zap.Pretty": ":zap: :nail_care: zap-prettyconsole",
"Zap.Pretty.Sugar": ":zap: :nail_care: zap-prettyconsole (sugared)",
}

func main() {
flag.Parse()
Expand Down

0 comments on commit 2360a1b

Please sign in to comment.