Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
go vet
examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.
No problems detected. Good job!
Gocyclo calculates cyclomatic complexities of functions in Go source code.
The cyclomatic complexity of a function is calculated according to the following rules:
1 is the base complexity of a function
+1 for each 'if', 'for', 'case', '&&' or '||'
Go Report Card warns on functions with cyclomatic complexity > 15.
Golint is a linter for Go source code.
-
prometheus-nginx-http-status-code-exporter/nginx-httpcode-exporter.go
- Line 378: warning: exported var HTTP_100_CODE should have comment or be unexported (golint)
- Line 382: warning: exported var HTTP_101_CODE should have comment or be unexported (golint)
- Line 386: warning: exported var HTTP_102_CODE should have comment or be unexported (golint)
- Line 390: warning: exported var HTTP_103_CODE should have comment or be unexported (golint)
- Line 394: warning: exported var HTTP_200_CODE should have comment or be unexported (golint)
- Line 398: warning: exported var HTTP_201_CODE should have comment or be unexported (golint)
- Line 402: warning: exported var HTTP_202_CODE should have comment or be unexported (golint)
- Line 406: warning: exported var HTTP_203_CODE should have comment or be unexported (golint)
- Line 410: warning: exported var HTTP_204_CODE should have comment or be unexported (golint)
- Line 414: warning: exported var HTTP_205_CODE should have comment or be unexported (golint)
- Line 418: warning: exported var HTTP_206_CODE should have comment or be unexported (golint)
- Line 422: warning: exported var HTTP_207_CODE should have comment or be unexported (golint)
- Line 426: warning: exported var HTTP_208_CODE should have comment or be unexported (golint)
- Line 430: warning: exported var HTTP_226_CODE should have comment or be unexported (golint)
- Line 434: warning: exported var HTTP_300_CODE should have comment or be unexported (golint)
- Line 438: warning: exported var HTTP_301_CODE should have comment or be unexported (golint)
- Line 442: warning: exported var HTTP_302_CODE should have comment or be unexported (golint)
- Line 446: warning: exported var HTTP_303_CODE should have comment or be unexported (golint)
- Line 450: warning: exported var HTTP_304_CODE should have comment or be unexported (golint)
- Line 454: warning: exported var HTTP_305_CODE should have comment or be unexported (golint)
- Line 458: warning: exported var HTTP_306_CODE should have comment or be unexported (golint)
- Line 462: warning: exported var HTTP_307_CODE should have comment or be unexported (golint)
- Line 466: warning: exported var HTTP_308_CODE should have comment or be unexported (golint)
- Line 470: warning: exported var HTTP_400_CODE should have comment or be unexported (golint)
- Line 474: warning: exported var HTTP_401_CODE should have comment or be unexported (golint)
- Line 478: warning: exported var HTTP_402_CODE should have comment or be unexported (golint)
- Line 482: warning: exported var HTTP_403_CODE should have comment or be unexported (golint)
- Line 486: warning: exported var HTTP_404_CODE should have comment or be unexported (golint)
- Line 490: warning: exported var HTTP_405_CODE should have comment or be unexported (golint)
- Line 494: warning: exported var HTTP_406_CODE should have comment or be unexported (golint)
- Line 498: warning: exported var HTTP_407_CODE should have comment or be unexported (golint)
- Line 502: warning: exported var HTTP_408_CODE should have comment or be unexported (golint)
- Line 506: warning: exported var HTTP_409_CODE should have comment or be unexported (golint)
- Line 510: warning: exported var HTTP_410_CODE should have comment or be unexported (golint)
- Line 514: warning: exported var HTTP_411_CODE should have comment or be unexported (golint)
- Line 518: warning: exported var HTTP_412_CODE should have comment or be unexported (golint)
- Line 522: warning: exported var HTTP_413_CODE should have comment or be unexported (golint)
- Line 526: warning: exported var HTTP_414_CODE should have comment or be unexported (golint)
- Line 530: warning: exported var HTTP_415_CODE should have comment or be unexported (golint)
- Line 534: warning: exported var HTTP_416_CODE should have comment or be unexported (golint)
- Line 538: warning: exported var HTTP_417_CODE should have comment or be unexported (golint)
- Line 542: warning: exported var HTTP_418_CODE should have comment or be unexported (golint)
- Line 546: warning: exported var HTTP_421_CODE should have comment or be unexported (golint)
- Line 550: warning: exported var HTTP_422_CODE should have comment or be unexported (golint)
- Line 554: warning: exported var HTTP_423_CODE should have comment or be unexported (golint)
- Line 558: warning: exported var HTTP_424_CODE should have comment or be unexported (golint)
- Line 562: warning: exported var HTTP_425_CODE should have comment or be unexported (golint)
- Line 566: warning: exported var HTTP_426_CODE should have comment or be unexported (golint)
- Line 570: warning: exported var HTTP_427_CODE should have comment or be unexported (golint)
- Line 574: warning: exported var HTTP_428_CODE should have comment or be unexported (golint)
- Line 578: warning: exported var HTTP_429_CODE should have comment or be unexported (golint)
- Line 582: warning: exported var HTTP_431_CODE should have comment or be unexported (golint)
- Line 586: warning: exported var HTTP_451_CODE should have comment or be unexported (golint)
- Line 590: warning: exported var HTTP_500_CODE should have comment or be unexported (golint)
- Line 594: warning: exported var HTTP_501_CODE should have comment or be unexported (golint)
- Line 598: warning: exported var HTTP_502_CODE should have comment or be unexported (golint)
- Line 602: warning: exported var HTTP_503_CODE should have comment or be unexported (golint)
- Line 606: warning: exported var HTTP_504_CODE should have comment or be unexported (golint)
- Line 610: warning: exported var HTTP_505_CODE should have comment or be unexported (golint)
- Line 614: warning: exported var HTTP_506_CODE should have comment or be unexported (golint)
- Line 618: warning: exported var HTTP_507_CODE should have comment or be unexported (golint)
- Line 622: warning: exported var HTTP_508_CODE should have comment or be unexported (golint)
- Line 626: warning: exported var HTTP_510_CODE should have comment or be unexported (golint)
- Line 630: warning: exported var HTTP_511_CODE should have comment or be unexported (golint)
- Line 634: warning: exported var HTTP_700_CODE should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!