Preparing report...

Report for github.com/ManhNDd/syzkaller

(v0.0.0-20200805095400-e271cfb35556)

A+    Excellent!    Found 111 issues across 347 files

Tweet

gofmt91%

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo76%

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.

    • pkg/compiler/check.go
    • Line 853: warning: cyclomatic complexity 23 of function (*compiler).replaceTypedef() is high (> 15) (gocyclo)
    • Line 68: warning: cyclomatic complexity 20 of function (*compiler).checkNames() is high (> 15) (gocyclo)
    • Line 356: warning: cyclomatic complexity 20 of function (*compiler).checkLenTargetRec() is high (> 15) (gocyclo)
    • pkg/compiler/consts.go
    • Line 192: warning: cyclomatic complexity 22 of function (*compiler).patchConsts() is high (> 15) (gocyclo)
    • Line 53: warning: cyclomatic complexity 18 of function (*compiler).extractConsts() is high (> 15) (gocyclo)
    • pkg/ast/scanner.go
    • Line 153: warning: cyclomatic complexity 20 of function (*scanner).Scan() is high (> 15) (gocyclo)
    • Line 229: warning: cyclomatic complexity 17 of function (*scanner).scanInt() is high (> 15) (gocyclo)
    • prog/checksum.go
    • Line 29: warning: cyclomatic complexity 17 of function calcChecksumsCall() is high (> 15) (gocyclo)
    • vm/adb/adb.go
    • Line 155: warning: cyclomatic complexity 16 of function findConsoleImpl() is high (> 15) (gocyclo)
    • prog/prio.go
    • Line 79: warning: cyclomatic complexity 17 of function (*Target).calcResourceUsage() is high (> 15) (gocyclo)
    • dashboard/app/api.go
    • Line 699: warning: cyclomatic complexity 22 of function reportCrash() is high (> 15) (gocyclo)
    • Line 820: warning: cyclomatic complexity 18 of function purgeOldCrashes() is high (> 15) (gocyclo)
    • vm/gce/gce.go
    • Line 214: warning: cyclomatic complexity 21 of function (*instance).Run() is high (> 15) (gocyclo)
    • Line 66: warning: cyclomatic complexity 19 of function ctor() is high (> 15) (gocyclo)
    • syz-ci/jobs.go
    • Line 107: warning: cyclomatic complexity 18 of function (*JobProcessor).pollManagerCommits() is high (> 15) (gocyclo)
    • Line 484: warning: cyclomatic complexity 16 of function (*JobProcessor).testPatch() is high (> 15) (gocyclo)
    • pkg/ipc/ipc.go
    • Line 718: warning: cyclomatic complexity 19 of function (*command).exec() is high (> 15) (gocyclo)
    • Line 537: warning: cyclomatic complexity 17 of function makeCommand() is high (> 15) (gocyclo)
    • pkg/report/linux.go
    • Line 212: warning: cyclomatic complexity 33 of function (*linux).findReport() is high (> 15) (gocyclo)
    • Line 515: warning: cyclomatic complexity 18 of function (*linux).isCorrupted() is high (> 15) (gocyclo)
    • pkg/runtest/run.go
    • Line 452: warning: cyclomatic complexity 23 of function checkResult() is high (> 15) (gocyclo)
    • Line 182: warning: cyclomatic complexity 17 of function (*Context).generateFile() is high (> 15) (gocyclo)
    • Line 70: warning: cyclomatic complexity 17 of function (*Context).Run() is high (> 15) (gocyclo)
    • pkg/email/parser.go
    • Line 198: warning: cyclomatic complexity 23 of function extractCommand() is high (> 15) (gocyclo)
    • Line 53: warning: cyclomatic complexity 19 of function Parse() is high (> 15) (gocyclo)
    • prog/encoding.go
    • Line 675: warning: cyclomatic complexity 21 of function (*parser).eatExcessive() is high (> 15) (gocyclo)
    • Line 237: warning: cyclomatic complexity 21 of function (*parser).parseProg() is high (> 15) (gocyclo)
    • Line 875: warning: cyclomatic complexity 20 of function (*parser).deserializeData() is high (> 15) (gocyclo)
    • Line 517: warning: cyclomatic complexity 16 of function (*parser).parseArgString() is high (> 15) (gocyclo)
    • prog/analysis.go
    • Line 57: warning: cyclomatic complexity 19 of function (*state).analyzeImpl() is high (> 15) (gocyclo)
    • Line 238: warning: cyclomatic complexity 16 of function extractArgSignal() is high (> 15) (gocyclo)
    • pkg/report/report_test.go
    • Line 192: warning: cyclomatic complexity 20 of function checkReport() is high (> 15) (gocyclo)
    • Line 151: warning: cyclomatic complexity 19 of function testParseImpl() is high (> 15) (gocyclo)
    • Line 95: warning: cyclomatic complexity 17 of function parseHeaderLine() is high (> 15) (gocyclo)
    • pkg/vcs/git.go
    • Line 189: warning: cyclomatic complexity 16 of function gitParseCommit() is high (> 15) (gocyclo)
    • dashboard/app/jobs.go
    • Line 616: warning: cyclomatic complexity 21 of function createBugReportForJob() is high (> 15) (gocyclo)
    • Line 77: warning: cyclomatic complexity 21 of function addTestJob() is high (> 15) (gocyclo)
    • Line 456: warning: cyclomatic complexity 16 of function doneJob() is high (> 15) (gocyclo)
    • Line 568: warning: cyclomatic complexity 16 of function pollCompletedJobs() is high (> 15) (gocyclo)
    • prog/rand.go
    • Line 185: warning: cyclomatic complexity 19 of function (*randGen).flags() is high (> 15) (gocyclo)
    • Line 347: warning: cyclomatic complexity 18 of function (*randGen).createResource() is high (> 15) (gocyclo)
    • pkg/ifuzz/gen/gen.go
    • Line 184: warning: cyclomatic complexity 91 of function parsePattern() is high (> 15) (gocyclo)
    • Line 21: warning: cyclomatic complexity 44 of function main() is high (> 15) (gocyclo)
    • dashboard/app/reporting.go
    • Line 178: warning: cyclomatic complexity 24 of function handleReportNotif() is high (> 15) (gocyclo)
    • Line 352: warning: cyclomatic complexity 22 of function createBugReport() is high (> 15) (gocyclo)
    • Line 798: warning: cyclomatic complexity 18 of function incomingCommandUpdate() is high (> 15) (gocyclo)
    • Line 83: warning: cyclomatic complexity 17 of function needReport() is high (> 15) (gocyclo)
    • Line 847: warning: cyclomatic complexity 16 of function incomingCommandCmd() is high (> 15) (gocyclo)
    • dashboard/app/main.go
    • Line 754: warning: cyclomatic complexity 23 of function createUIBug() is high (> 15) (gocyclo)
    • Line 326: warning: cyclomatic complexity 22 of function handleBug() is high (> 15) (gocyclo)
    • Line 555: warning: cyclomatic complexity 18 of function fetchNamespaceBugs() is high (> 15) (gocyclo)
    • tools/syz-check/check.go
    • Line 397: warning: cyclomatic complexity 19 of function checkNetlinkStruct() is high (> 15) (gocyclo)
    • Line 143: warning: cyclomatic complexity 19 of function writeWarnings() is high (> 15) (gocyclo)
    • Line 594: warning: cyclomatic complexity 18 of function checkNetlinkAttr() is high (> 15) (gocyclo)
    • Line 223: warning: cyclomatic complexity 18 of function checkStruct() is high (> 15) (gocyclo)
    • prog/hints.go
    • Line 183: warning: cyclomatic complexity 19 of function shrinkExpand() is high (> 15) (gocyclo)
    • vm/qemu/qemu.go
    • Line 363: warning: cyclomatic complexity 17 of function (*instance).boot() is high (> 15) (gocyclo)
    • Line 525: warning: cyclomatic complexity 16 of function (*instance).Run() is high (> 15) (gocyclo)
    • syz-ci/updater.go
    • Line 114: warning: cyclomatic complexity 16 of function (*SyzUpdater).UpdateOnStart() is high (> 15) (gocyclo)
    • prog/decl_test.go
    • Line 60: warning: cyclomatic complexity 16 of function TestTransitivelyEnabledCallsLinux() is high (> 15) (gocyclo)
    • syz-manager/manager.go
    • Line 293: warning: cyclomatic complexity 36 of function (*Manager).vmLoop() is high (> 15) (gocyclo)
    • Line 610: warning: cyclomatic complexity 18 of function (*Manager).saveCrash() is high (> 15) (gocyclo)
    • Line 139: warning: cyclomatic complexity 17 of function RunManager() is high (> 15) (gocyclo)
    • Line 895: warning: cyclomatic complexity 16 of function (*Manager).minimizeCorpus() is high (> 15) (gocyclo)
    • pkg/cover/report.go
    • Line 164: warning: cyclomatic complexity 21 of function (*ReportGenerator).generate() is high (> 15) (gocyclo)
    • Line 86: warning: cyclomatic complexity 18 of function (*ReportGenerator).Do() is high (> 15) (gocyclo)
    • Line 343: warning: cyclomatic complexity 16 of function objdumpAndSymbolize() is high (> 15) (gocyclo)
    • pkg/compiler/gen.go
    • Line 292: warning: cyclomatic complexity 24 of function (*compiler).layoutStructFields() is high (> 15) (gocyclo)
    • vm/vm.go
    • Line 164: warning: cyclomatic complexity 23 of function (*Instance).MonitorExecution() is high (> 15) (gocyclo)
    • pkg/ifuzz/ifuzz.go
    • Line 135: warning: cyclomatic complexity 20 of function Mutate() is high (> 15) (gocyclo)
    • Line 262: warning: cyclomatic complexity 20 of function generateInt() is high (> 15) (gocyclo)
    • pkg/csource/options.go
    • Line 111: warning: cyclomatic complexity 23 of function (Options).checkLinuxOnly() is high (> 15) (gocyclo)
    • Line 57: warning: cyclomatic complexity 21 of function (Options).Check() is high (> 15) (gocyclo)
    • prog/size.go
    • Line 157: warning: cyclomatic complexity 18 of function (*randGen).mutateSize() 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!