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.
-
RCDS_GO/pkg/lib/genSync/connection.go
- Line 1: warning: don't use MixedCaps in package name; genSync should be gensync (golint)
- Line 13: warning: exported type Connection should have comment or be unexported (golint)
- Line 43: warning: exported function NewTcpConnection should have comment or be unexported (golint)
-
RCDS_GO/pkg/lib/genSync/types.go
- Line 1: warning: don't use MixedCaps in package name; genSync should be gensync (golint)
- Line 4: warning: exported const SYNC_SUCCESS should have comment (or a comment on this block) or be unexported (golint)
-
RCDS_GO/pkg/lib/algorithm/constants_and_types.go
- Line 3: warning: exported type SyncType should have comment or be unexported (golint)
- Line 6: warning: comment on exported const RCDS should be of the form "RCDS ..." (golint)
- Line 8: warning: comment on exported const IBLT should be of the form "IBLT ..." (golint)
- Line 10: warning: exported const CPI should have comment (or a comment on this block) or be unexported (golint)
- Line 13: warning: comment on exported const StrataEst should be of the form "StrataEst ..." (golint)
-
RCDS_GO/pkg/lib/algorithm/iblt/options.go
- Line 39: warning: exported type IBLTOption should have comment or be unexported (golint)
- Line 41: warning: exported function WithSymmetricSetDiff should have comment or be unexported (golint)
- Line 47: warning: exported function WithHashSync should have comment or be unexported (golint)
- Line 55: warning: exported function WithHashFunc should have comment or be unexported (golint)
- Line 63: warning: exported function WithDataLen should have comment or be unexported (golint)
- Line 70: warning: exported function WithMaxSyncRetries should have comment or be unexported (golint)
-
RCDS_GO/pkg/lib/algorithm/iblt/sync.go
- Line 28: warning: exported function NewIBLTSetSync should have comment or be unexported (golint)
- Line 71: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 417: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
-
RCDS_GO/pkg/util/auxiliary.go
- Line 7: warning: exported function IntToBytes should have comment or be unexported (golint)
- Line 17: warning: exported function BytesToInt should have comment or be unexported (golint)
- Line 26: warning: exported function Int64ToBytes should have comment or be unexported (golint)
- Line 35: warning: exported function BytesToInt64 should have comment or be unexported (golint)
- Line 44: warning: exported function Uint64ToBytes should have comment or be unexported (golint)
- Line 53: warning: exported function BytesToUint64 should have comment or be unexported (golint)
-
RCDS_GO/pkg/set/set.go
- Line 9: warning: exported type Set should have comment or be unexported (golint)
- Line 11: warning: comment on exported function New should be of the form "New ..." (golint)
- Line 16: warning: comment on exported method Set.Difference should be of the form "Difference ..." (golint)
- Line 29: warning: comment on exported method Set.Do should be of the form "Do ..." (golint)
- Line 36: warning: comment on exported method Set.Has should be of the form "Has ..." (golint)
- Line 43: warning: exported method Set.Get should have comment or be unexported (golint)
- Line 48: warning: comment on exported method Set.Insert should be of the form "Insert ..." (golint)
- Line 57: warning: exported method Set.InsertKey should have comment or be unexported (golint)
- Line 62: warning: comment on exported method Set.Intersection should be of the form "Intersection ..." (golint)
- Line 75: warning: comment on exported method Set.Len should be of the form "Len ..." (golint)
- Line 80: warning: comment on exported method Set.ProperSubsetOf should be of the form "ProperSubsetOf ..." (golint)
- Line 91: warning: comment on exported method Set.SubsetOf should be of the form "SubsetOf ..." (golint)
- Line 104: warning: comment on exported method Set.Union should be of the form "Union ..." (golint)
- Line 118: warning: comment on exported method Set.GetDigest should be of the form "GetDigest ..." (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
-
RCDS_GO/pkg/lib/algorithm/iblt/sync.go
- Line 11: warning: "Ditributed" is a misspelling of "Distributed" (misspell)
- Line 12: warning: "Ditributed" is a misspelling of "Distributed" (misspell)
- Line 13: warning: "Ditributed" is a misspelling of "Distributed" (misspell)
- Line 14: warning: "Ditributed" is a misspelling of "Distributed" (misspell)
- Line 425: warning: "dimentions" is a misspelling of "dimensions" (misspell)