Skip to content

Commit

Permalink
Setting Go linter tool as Revive.
Browse files Browse the repository at this point in the history
  • Loading branch information
cinar committed Jun 20, 2023
1 parent 3dd1c61 commit 86adc9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Go",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/go:0-1.20-bullseye"
"image": "mcr.microsoft.com/devcontainers/go:0-1.20-bullseye",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
Expand All @@ -15,7 +15,14 @@
// "postCreateCommand": "go version",

// Configure tool-specific properties.
// "customizations": {},
"customizations": {
"vscode": {
"settings": {
"go.lintTool": "revive",
"go.lintOnSave": "package"
}
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
Expand Down
2 changes: 1 addition & 1 deletion checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func TestNumberOfFloat(t *testing.T) {
}

func TestCheckerNamesAreLowerCase(t *testing.T) {
for checker, _ := range makers {
for checker := range makers {
if strings.ToLower(checker) != checker {
t.Fail()
}
Expand Down

0 comments on commit 86adc9a

Please sign in to comment.