Preparing report...

Report for github.com/ethicalhackingplayground/erebus

D    Needs lots of improvement    Found 10 issues across 10 files

Tweet

gofmt20%

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


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!


gocyclo80%

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.

    • erebus/src/detect/detect.go
    • Line 878: warning: cyclomatic complexity 264 of function DetectVulnerabilityWithTemplate() is high (> 15) (gocyclo)
    • Line 36: warning: cyclomatic complexity 131 of function DetectVulnerabilitiesWhileIntercepting() is high (> 15) (gocyclo)
    • Line 598: warning: cyclomatic complexity 65 of function DetectVulnerabilitiesWhileCrawling() is high (> 15) (gocyclo)

golint20%

Golint is a linter for Go source code.

    • erebus/src/requests/requests.go
    • Line 10: warning: comment on exported type Items should be of the form "Items ..." (with optional leading article) (golint)
    • Line 17: warning: exported type Item should have comment or be unexported (golint)
    • Line 23: warning: exported function ParseBurpFile should have comment or be unexported (golint)
    • erebus/src/scan/scan.go
    • Line 11: warning: exported function InterceptAndScan should have comment or be unexported (golint)
    • Line 27: warning: exported function CrawlAndScan should have comment or be unexported (golint)
    • Line 43: warning: exported function ScanHostsWithTemplates should have comment or be unexported (golint)
    • Line 61: warning: exported function ScanBurpXmlWithTemplates should have comment or be unexported (golint)
    • erebus/src/run/run.go
    • Line 36: warning: comment on exported function Scanner should be of the form "Scanner ..." (golint)
    • Line 541: warning: comment on exported function Contains should be of the form "Contains ..." (golint)
    • erebus/src/detect/detect.go
    • Line 20: warning: comment on exported function WriteResults should be of the form "WriteResults ..." (golint)
    • Line 35: warning: comment on exported function DetectVulnerabilitiesWhileIntercepting should be of the form "DetectVulnerabilitiesWhileIntercepting ..." (golint)
    • Line 52: warning: should omit 2nd value from range; this loop is equivalent to `for param := range ...` (golint)
    • Line 321: warning: should omit 2nd value from range; this loop is equivalent to `for key := range ...` (golint)
    • Line 597: warning: comment on exported function DetectVulnerabilitiesWhileCrawling should be of the form "DetectVulnerabilitiesWhileCrawling ..." (golint)
    • Line 614: warning: should omit 2nd value from range; this loop is equivalent to `for param := range ...` (golint)
    • Line 877: warning: comment on exported function DetectVulnerabilityWithTemplate should be of the form "DetectVulnerabilityWithTemplate ..." (golint)
    • Line 1158: warning: should omit 2nd value from range; this loop is equivalent to `for param := range ...` (golint)
    • Line 1730: warning: should omit 2nd value from range; this loop is equivalent to `for param := range ...` (golint)
    • Line 2015: warning: exported function Contains should have comment or be unexported (golint)
    • erebus/src/yamlconf/yamlconf.go
    • Line 11: warning: comment on exported type YamlConfig should be of the form "YamlConfig ..." (with optional leading article) (golint)
    • Line 32: warning: comment on exported function ReadTemplates should be of the form "ReadTemplates ..." (golint)
    • Line 48: warning: comment on exported function ValidatePath should be of the form "ValidatePath ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign80%

IneffAssign detects ineffectual assignments in Go code.

    • /home/shawn/go/pkg/mod/github.com/mattn/go-isatty@v0.0.12/isatty_tcgets.go
    • Line 6: warning: missing go.sum entry for module providing package golang.org/x/sys/unix (imported by github.com/mattn/go-isatty); to add: (ineffassign)
    • Line 6: warning: could not import golang.org/x/sys/unix (invalid package name: "") (ineffassign)
    • Line 6: warning: missing go.sum entry for module providing package golang.org/x/sys/unix (imported by github.com/mattn/go-isatty); to add: (ineffassign)
    • Line 6: warning: could not import golang.org/x/sys/unix (invalid package name: "") (ineffassign)
    • Line 6: warning: missing go.sum entry for module providing package golang.org/x/sys/unix (imported by github.com/mattn/go-isatty); to add: (ineffassign)
    • Line 6: warning: could not import golang.org/x/sys/unix (invalid package name: "") (ineffassign)
    • Line 6: warning: missing go.sum entry for module providing package golang.org/x/sys/unix (imported by github.com/mattn/go-isatty); to add: (ineffassign)
    • Line 6: warning: could not import golang.org/x/sys/unix (invalid package name: "") (ineffassign)
    • Line 6: warning: missing go.sum entry for module providing package golang.org/x/sys/unix (imported by github.com/mattn/go-isatty); to add: (ineffassign)
    • Line 6: warning: could not import golang.org/x/sys/unix (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!