Preparing report...

Report for github.com/saferwall/pe

(v1.3.8)

A+    Excellent!    Found 27 issues across 62 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!


gofmt82%

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


gocyclo77%

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.

    • exports.go
    • Line 100: warning: cyclomatic complexity 35 of function (*File).parseExportDirectory() is high (> 15) (gocyclo)
    • ntheader.go
    • Line 350: warning: cyclomatic complexity 23 of function (*File).ParseNTHeader() is high (> 15) (gocyclo)
    • richheader.go
    • Line 503: warning: cyclomatic complexity 21 of function ProdIDtoVSversion() is high (> 15) (gocyclo)
    • exception.go
    • Line 362: warning: cyclomatic complexity 16 of function (*File).parseUnwindCode() is high (> 15) (gocyclo)
    • debug.go
    • Line 290: warning: cyclomatic complexity 38 of function (*File).parseDebugDirectory() is high (> 15) (gocyclo)
    • loadconfig.go
    • Line 1498: warning: cyclomatic complexity 28 of function (*File).parseLoadConfigDirectory() is high (> 15) (gocyclo)
    • Line 1938: warning: cyclomatic complexity 18 of function (*File).getHybridPE() is high (> 15) (gocyclo)
    • Line 2069: warning: cyclomatic complexity 18 of function (*File).getDynamicValueRelocTable() is high (> 15) (gocyclo)
    • security.go
    • Line 285: warning: cyclomatic complexity 20 of function (*File).parseSecurityDirectory() is high (> 15) (gocyclo)
    • boundimports.go
    • Line 52: warning: cyclomatic complexity 19 of function (*File).parseBoundImportDirectory() is high (> 15) (gocyclo)
    • reloc.go
    • Line 213: warning: cyclomatic complexity 17 of function (*File).PrettyRelocTypeEntry() is high (> 15) (gocyclo)
    • anomaly.go
    • Line 91: warning: cyclomatic complexity 30 of function (*File).GetAnomalies() is high (> 15) (gocyclo)
    • section.go
    • Line 245: warning: cyclomatic complexity 24 of function (*File).ParseSectionHeader() is high (> 15) (gocyclo)
    • dotnet.go
    • Line 625: warning: cyclomatic complexity 23 of function (*File).parseCLRHeaderDirectory() is high (> 15) (gocyclo)
    • cmd/dump.go
    • Line 130: warning: cyclomatic complexity 34 of function parsePE() is high (> 15) (gocyclo)
    • imports.go
    • Line 463: warning: cyclomatic complexity 26 of function (*File).parseImports32() is high (> 15) (gocyclo)
    • Line 597: warning: cyclomatic complexity 25 of function (*File).parseImports64() is high (> 15) (gocyclo)
    • Line 336: warning: cyclomatic complexity 21 of function (*File).getImportTable64() is high (> 15) (gocyclo)
    • Line 211: warning: cyclomatic complexity 21 of function (*File).getImportTable32() is high (> 15) (gocyclo)

ineffassign95%

IneffAssign detects ineffectual assignments in Go code.

    • exports.go
    • Line 195: warning: ineffectual assignment to fileOffset (ineffassign)
    • Line 253: warning: ineffectual assignment to maxFailedEntries (ineffassign)
    • Line 262: warning: ineffectual assignment to parsingFailed (ineffassign)
    • Line 287: warning: ineffectual assignment to fileOffset (ineffassign)
    • Line 195: warning: ineffectual assignment to fileOffset (ineffassign)
    • Line 253: warning: ineffectual assignment to maxFailedEntries (ineffassign)
    • Line 262: warning: ineffectual assignment to parsingFailed (ineffassign)
    • Line 287: warning: ineffectual assignment to fileOffset (ineffassign)
    • imports.go
    • Line 192: warning: ineffectual assignment to dllName (ineffassign)
    • Line 192: warning: ineffectual assignment to dllName (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell93%

Misspell Finds commonly misspelled English words

    • helper.go
    • Line 222: warning: "retuns" is a misspelling of "returns" (misspell)
    • Line 497: warning: "combinaison" is a misspelling of "combinations" (misspell)