Report for github.1485827954.workers.dev/simar7/xserver

(v0.0.0-20171220190903-1fe37edbaf6b)

A+    Excellent!    Found 63 issues across 484 files

Tweet

go_vet100%

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!


gofmt99%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

    • dns.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo87%

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.

    • _vendor-20170828212931/golang.org/x/net/html/parse.go
    • Line 701: warning: cyclomatic complexity 100 of function inBodyIM() is high (> 15) (gocyclo)
    • Line 1207: warning: cyclomatic complexity 28 of function inTableIM() is high (> 15) (gocyclo)
    • Line 1564: warning: cyclomatic complexity 24 of function inSelectIM() is high (> 15) (gocyclo)
    • Line 1848: warning: cyclomatic complexity 22 of function parseForeignContent() is high (> 15) (gocyclo)
    • Line 1038: warning: cyclomatic complexity 21 of function (*parser).inBodyEndTagFormatting() is high (> 15) (gocyclo)
    • Line 108: warning: cyclomatic complexity 20 of function (*parser).indexOfElementInScope() is high (> 15) (gocyclo)
    • Line 1928: warning: cyclomatic complexity 16 of function (*parser).inForeignContent() is high (> 15) (gocyclo)
    • _vendor-20170828212931/golang.org/x/net/http2/transport_test.go
    • Line 788: warning: cyclomatic complexity 28 of function testTransportReqBodyAfterResponse() is high (> 15) (gocyclo)
    • Line 1058: warning: cyclomatic complexity 26 of function testTransportResPattern() is high (> 15) (gocyclo)
    • Line 2749: warning: cyclomatic complexity 23 of function TestTransportRetryAfterGOAWAY() is high (> 15) (gocyclo)
    • Line 2207: warning: cyclomatic complexity 17 of function TestTransportReturnsUnusedFlowControl() is high (> 15) (gocyclo)
    • _vendor-20170828212931/golang.org/x/net/webdav/lock_test.go
    • Line 534: warning: cyclomatic complexity 26 of function (*memLS).consistent() is high (> 15) (gocyclo)
    • Line 320: warning: cyclomatic complexity 19 of function TestMemLSExpiry() is high (> 15) (gocyclo)
    • Line 448: warning: cyclomatic complexity 19 of function TestMemLS() is high (> 15) (gocyclo)
    • Line 207: warning: cyclomatic complexity 19 of function TestMemLSConfirm() is high (> 15) (gocyclo)
    • _vendor-20170828212931/golang.org/x/net/webdav/webdav.go
    • Line 392: warning: cyclomatic complexity 20 of function (*Handler).handleLock() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 17 of function (*Handler).confirmLocks() is high (> 15) (gocyclo)
    • Line 42: warning: cyclomatic complexity 16 of function (*Handler).ServeHTTP() is high (> 15) (gocyclo)
    • Line 317: warning: cyclomatic complexity 16 of function (*Handler).handleCopyMove() is high (> 15) (gocyclo)
    • _vendor-20170828212931/golang.org/x/net/webdav/internal/xml/marshal.go
    • Line 556: warning: cyclomatic complexity 49 of function (*printer).marshalValue() is high (> 15) (gocyclo)
    • Line 963: warning: cyclomatic complexity 42 of function (*printer).marshalStruct() is high (> 15) (gocyclo)
    • Line 722: warning: cyclomatic complexity 21 of function (*printer).fieldAttr() is high (> 15) (gocyclo)
    • Line 258: warning: cyclomatic complexity 17 of function isValidDirective() is high (> 15) (gocyclo)
    • Line 201: warning: cyclomatic complexity 16 of function (*Encoder).EncodeToken() is high (> 15) (gocyclo)
    • _vendor-20170828212931/golang.org/x/net/http2/server.go
    • Line 2132: warning: cyclomatic complexity 30 of function (*responseWriterState).writeChunk() is high (> 15) (gocyclo)
    • Line 2407: warning: cyclomatic complexity 22 of function (*responseWriter).push() is high (> 15) (gocyclo)
    • Line 673: warning: cyclomatic complexity 22 of function (*serverConn).serve() is high (> 15) (gocyclo)
    • Line 1380: warning: cyclomatic complexity 19 of function (*serverConn).processData() is high (> 15) (gocyclo)
    • Line 137: warning: cyclomatic complexity 16 of function ConfigureServer() is high (> 15) (gocyclo)
    • Line 1507: warning: cyclomatic complexity 16 of function (*serverConn).processHeaders() is high (> 15) (gocyclo)
    • Line 1696: warning: cyclomatic complexity 16 of function (*serverConn).newWriterAndRequest() is high (> 15) (gocyclo)
    • _vendor-20170828212931/golang.org/x/net/http2/transport.go
    • Line 708: warning: cyclomatic complexity 37 of function (*ClientConn).RoundTrip() is high (> 15) (gocyclo)
    • Line 1339: warning: cyclomatic complexity 25 of function (*clientConnReadLoop).run() is high (> 15) (gocyclo)
    • Line 1069: warning: cyclomatic complexity 23 of function (*ClientConn).encodeHeaders() is high (> 15) (gocyclo)
    • Line 932: warning: cyclomatic complexity 19 of function (*clientStream).writeRequestBody() is high (> 15) (gocyclo)
    • Line 1464: warning: cyclomatic complexity 18 of function (*clientConnReadLoop).handleResponse() is high (> 15) (gocyclo)
    • dhcp.go
    • Line 54: warning: cyclomatic complexity 19 of function (*dhcpServerHandler).ServeDHCP() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!