Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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.
-
safetyfast/locks_amd64.go
- Line 92: warning: exported type SpinMutexBasic should have comment or be unexported (golint)
- Line 96: warning: exported method SpinMutexBasic.Lock should have comment or be unexported (golint)
- Line 102: warning: exported method SpinMutexBasic.Unlock should have comment or be unexported (golint)
- Line 106: warning: exported type SpinMutex should have comment or be unexported (golint)
- Line 108: warning: comment on exported method SpinMutex.Lock should be of the form "Lock ..." (golint)
- Line 122: warning: exported method SpinMutex.Unlock should have comment or be unexported (golint)
- Line 126: warning: exported method SpinMutex.IsLocked should have comment or be unexported (golint)
- Line 130: warning: exported type SpinMutexASM should have comment or be unexported (golint)
- Line 132: warning: exported method SpinMutexASM.Lock should have comment or be unexported (golint)
- Line 152: warning: exported method SpinMutexASM.Unlock should have comment or be unexported (golint)
- Line 159: warning: exported method SpinHLEMutex.Lock should have comment or be unexported (golint)
- Line 174: warning: exported method SpinHLEMutex.Unlock should have comment or be unexported (golint)
-
safetyfast/benchmarks/graph.go
- Line 15: warning: exported type Metric should have comment or be unexported (golint)
- Line 20: warning: exported type Metrics should have comment or be unexported (golint)
- Line 22: warning: exported method Metrics.Len should have comment or be unexported (golint)
- Line 26: warning: exported method Metrics.XY should have comment or be unexported (golint)
- Line 30: warning: exported type PerfPlot should have comment or be unexported (golint)
- Line 35: warning: exported function NewPerfPlot should have comment or be unexported (golint)
- Line 41: warning: exported method PerfPlot.Clear should have comment or be unexported (golint)
- Line 46: warning: exported method PerfPlot.AddMetric should have comment or be unexported (golint)
- Line 60: warning: exported method PerfPlot.Plot should have comment or be unexported (golint)
- Line 129: warning: comment on exported function OpenPlot should be of the form "OpenPlot ..." (golint)
-
safetyfast/benchmarks/main.go
- Line 51: warning: exported type BinTouchCounter should have comment or be unexported (golint)
- Line 55: warning: exported function NewBinTouchCounter should have comment or be unexported (golint)
- Line 61: warning: exported method BinTouchCounter.Resize should have comment or be unexported (golint)
- Line 73: warning: exported method BinTouchCounter.Clear should have comment or be unexported (golint)
- Line 79: warning: exported method BinTouchCounter.TotalSum should have comment or be unexported (golint)
- Line 87: warning: exported method BinTouchCounter.Touch should have comment or be unexported (golint)
- Line 95: warning: exported function GoRoutine should have comment or be unexported (golint)
- Line 106: warning: exported function GoRoutineRTMWithPause should have comment or be unexported (golint)
- Line 133: warning: exported function GoRoutineRTMNoPause should have comment or be unexported (golint)
- Line 173: warning: exported var FlagLockType should have comment or be unexported (golint)
- Line 174: warning: exported var FlagCSV should have comment or be unexported (golint)
- Line 175: warning: exported var FlagNumBinStart should have comment or be unexported (golint)
- Line 176: warning: exported var FlagNumBinEnd should have comment or be unexported (golint)
- Line 177: warning: exported var FlagPlotFileName should have comment or be unexported (golint)
-
safetyfast/benchmarks/rand.go
- Line 5: warning: exported type RandValues should have comment or be unexported (golint)
- Line 7: warning: exported function NewRandValues should have comment or be unexported (golint)
- Line 12: warning: exported method RandValues.Len should have comment or be unexported (golint)
- Line 16: warning: exported method RandValues.Put should have comment or be unexported (golint)
- Line 21: warning: exported method RandValues.GetAll should have comment or be unexported (golint)
- Line 25: warning: exported method RandValues.Shuffle should have comment or be unexported (golint)
- Line 32: warning: exported method RandValues.Clear should have comment or be unexported (golint)
- Line 37: warning: exported method RandValues.AddSparseInt32 should have comment or be unexported (golint)
- Line 44: warning: exported method RandValues.AddSparseInt64 should have comment or be unexported (golint)
- Line 51: warning: exported method RandValues.AddUniformInt32 should have comment or be unexported (golint)
- Line 58: warning: exported method RandValues.AddUniformInt64 should have comment or be unexported (golint)
- Line 65: warning: exported method RandValues.AddSparseUint32 should have comment or be unexported (golint)
- Line 72: warning: exported method RandValues.AddSparseUint64 should have comment or be unexported (golint)
- Line 79: warning: exported method RandValues.AddSparseFloat32 should have comment or be unexported (golint)
- Line 86: warning: exported method RandValues.AddSparseFloat64 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!