Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
wreulicke committed Feb 26, 2020
1 parent 49eea72 commit ae4e9d6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/http-timeout/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
noDefaultClient "github.com/wreulicke/http-timeout/no-default-http-client"
noDefaultServer "github.com/wreulicke/http-timeout/no-default-http-server"
noTimeoutClient "github.com/wreulicke/http-timeout/no-timeout-http-server"
noTimeoutClient "github.com/wreulicke/http-timeout/no-timeout-http-client"
noTimeoutServer "github.com/wreulicke/http-timeout/no-timeout-http-server"

"golang.org/x/tools/go/analysis/multichecker"
Expand Down
3 changes: 2 additions & 1 deletion no-default-http-client/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import (
)

var Analyzer = &analysis.Analyzer{
Name: "no-default-http-client",
Name: "noDefaultHttpClient",
Doc: "noDefaultHttpClient restrict to use net/http.DefaultClient",
Run: run,
Requires: []*analysis.Analyzer{
inspect.Analyzer,
Expand Down
3 changes: 2 additions & 1 deletion no-default-http-server/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import (
)

var Analyzer = &analysis.Analyzer{
Name: "no-default-http-server",
Name: "noDefaultHttpServer",
Doc: "noDefaultHttpServer restrict to use net/http default server",
Run: run,
Requires: []*analysis.Analyzer{
inspect.Analyzer,
Expand Down
3 changes: 2 additions & 1 deletion no-timeout-http-client/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import (
)

var Analyzer = &analysis.Analyzer{
Name: "no-timeout-http-cliet",
Name: "noTimeoutHttpClient",
Doc: "noTimeoutHttpClient restrict to use net/http.Client without timeout",
Run: run,
Requires: []*analysis.Analyzer{
inspect.Analyzer,
Expand Down
3 changes: 2 additions & 1 deletion no-timeout-http-server/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import (
)

var Analyzer = &analysis.Analyzer{
Name: "no-timeout-http-server",
Name: "noTimeoutHttpServer",
Doc: "noTimeoutHttpServer restrict to use net/http.Server without timeout",
Run: run,
Requires: []*analysis.Analyzer{
inspect.Analyzer,
Expand Down

0 comments on commit ae4e9d6

Please sign in to comment.