Preparing report...

Report for github.com/For-ACGN/P.B.NET

A+    Excellent!    Found 16 issues across 887 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


golint99%

Golint is a linter for Go source code.

    • P.B.NET/module/exploit/exploit.go
    • Line 15: warning: exported method Exploit.Name should have comment or be unexported (golint)
    • Line 19: warning: exported method Exploit.Description should have comment or be unexported (golint)
    • Line 23: warning: exported method Exploit.Start should have comment or be unexported (golint)
    • Line 27: warning: exported method Exploit.Stop should have comment or be unexported (golint)
    • Line 31: warning: exported method Exploit.Restart should have comment or be unexported (golint)
    • Line 35: warning: exported method Exploit.IsStarted should have comment or be unexported (golint)
    • Line 39: warning: exported method Exploit.Info should have comment or be unexported (golint)
    • Line 43: warning: exported method Exploit.Status should have comment or be unexported (golint)
    • Line 47: warning: exported method Exploit.Check should have comment or be unexported (golint)
    • Line 51: warning: exported method Exploit.Exploit should have comment or be unexported (golint)
    • Line 55: warning: exported method Exploit.Methods should have comment or be unexported (golint)
    • Line 59: warning: exported method Exploit.Call should have comment or be unexported (golint)
    • P.B.NET/internal/firewall/packet.go
    • Line 26: warning: exported method Packet.ReadFrom should have comment or be unexported (golint)
    • Line 30: warning: exported method Packet.WriteTo should have comment or be unexported (golint)
    • Line 34: warning: exported method Packet.Close should have comment or be unexported (golint)
    • Line 38: warning: exported method Packet.LocalAddr should have comment or be unexported (golint)
    • Line 42: warning: exported method Packet.SetDeadline should have comment or be unexported (golint)
    • Line 46: warning: exported method Packet.SetReadDeadline should have comment or be unexported (golint)
    • Line 50: warning: exported method Packet.SetWriteDeadline should have comment or be unexported (golint)

gocyclo98%

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.

    • P.B.NET/external/anko/vm/vm.go
    • Line 272: warning: cyclomatic complexity 27 of function makeType() is high (> 15) (gocyclo)
    • Line 210: warning: cyclomatic complexity 24 of function appendSlice() is high (> 15) (gocyclo)
    • Line 121: warning: cyclomatic complexity 24 of function equal() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!