Preparing report...

Report for github.com/minio/mc

(v0.0.0-20240523075947-d4b7b00d73d3)

A+    Excellent!    Found 48 issues across 390 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!


gofmt100%

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

No problems detected. Good job!


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.

    • cmd/duration.go
    • Line 94: warning: cyclomatic complexity 29 of function ParseDuration() is high (> 15) (gocyclo)
    • cmd/admin-trace.go
    • Line 284: warning: cyclomatic complexity 50 of function (matchOpts).matches() is high (> 15) (gocyclo)
    • Line 1028: warning: cyclomatic complexity 16 of function (*traceStatsUI).View() is high (> 15) (gocyclo)
    • cmd/admin-scanner-status.go
    • Line 266: warning: cyclomatic complexity 24 of function (*scannerMetricsUI).View() is high (> 15) (gocyclo)
    • Line 106: warning: cyclomatic complexity 16 of function mainAdminScannerInfo() is high (> 15) (gocyclo)
    • cmd/cat-main.go
    • Line 170: warning: cyclomatic complexity 19 of function parseCatSyntax() is high (> 15) (gocyclo)
    • cmd/admin-info.go
    • Line 133: warning: cyclomatic complexity 33 of function (clusterStruct).String() is high (> 15) (gocyclo)
    • cmd/rb-main.go
    • Line 153: warning: cyclomatic complexity 16 of function deleteBucket() is high (> 15) (gocyclo)
    • cmd/admin-heal.go
    • Line 449: warning: cyclomatic complexity 26 of function (shortBackgroundHealStatusMessage).String() is high (> 15) (gocyclo)
    • Line 325: warning: cyclomatic complexity 18 of function (verboseBackgroundHealStatusMessage).String() is high (> 15) (gocyclo)
    • cmd/config.go
    • Line 215: warning: cyclomatic complexity 18 of function parseEnvURLStr() is high (> 15) (gocyclo)
    • cmd/admin-replicate-status.go
    • Line 134: warning: cyclomatic complexity 60 of function (srStatus).String() is high (> 15) (gocyclo)
    • Line 477: warning: cyclomatic complexity 26 of function (srStatus).getBucketStatusSummary() is high (> 15) (gocyclo)
    • Line 854: warning: cyclomatic complexity 16 of function mainAdminReplicationStatus() is high (> 15) (gocyclo)
    • cmd/stat.go
    • Line 186: warning: cyclomatic complexity 26 of function statURL() is high (> 15) (gocyclo)
    • Line 59: warning: cyclomatic complexity 21 of function (statMessage).String() is high (> 15) (gocyclo)
    • cmd/client-fs.go
    • Line 281: warning: cyclomatic complexity 23 of function (*fsClient).put() is high (> 15) (gocyclo)
    • Line 1038: warning: cyclomatic complexity 22 of function (*fsClient).listRecursiveInRoutine() is high (> 15) (gocyclo)
    • Line 395: warning: cyclomatic complexity 22 of function (*fsClient).putN() is high (> 15) (gocyclo)
    • Line 960: warning: cyclomatic complexity 16 of function (*fsClient).listDirOpt() is high (> 15) (gocyclo)
    • cmd/tofu.go
    • Line 82: warning: cyclomatic complexity 16 of function promptTrustSelfSignedCert() is high (> 15) (gocyclo)
    • cmd/cp-main.go
    • Line 301: warning: cyclomatic complexity 49 of function doCopySession() is high (> 15) (gocyclo)
    • cmd/ilm/options.go
    • Line 223: warning: cyclomatic complexity 43 of function GetLifecycleOptions() is high (> 15) (gocyclo)
    • Line 400: warning: cyclomatic complexity 22 of function ApplyRuleFields() is high (> 15) (gocyclo)
    • cmd/mirror-main.go
    • Line 939: warning: cyclomatic complexity 35 of function runMirror() is high (> 15) (gocyclo)
    • Line 606: warning: cyclomatic complexity 27 of function (*mirrorJob).watchMirrorEvents() is high (> 15) (gocyclo)
    • Line 525: warning: cyclomatic complexity 18 of function (*mirrorJob).monitorMirrorStatus() is high (> 15) (gocyclo)
    • cmd/client-s3.go
    • Line 1266: warning: cyclomatic complexity 34 of function (*S3Client).Remove() is high (> 15) (gocyclo)
    • Line 1959: warning: cyclomatic complexity 28 of function (*S3Client).versionedList() is high (> 15) (gocyclo)
    • Line 1086: warning: cyclomatic complexity 26 of function (*S3Client).Put() is high (> 15) (gocyclo)
    • Line 2147: warning: cyclomatic complexity 25 of function (*S3Client).listIncompleteRecursiveInRoutine() is high (> 15) (gocyclo)
    • Line 425: warning: cyclomatic complexity 23 of function (*S3Client).RemoveNotificationConfig() is high (> 15) (gocyclo)
    • Line 847: warning: cyclomatic complexity 23 of function (*S3Client).Watch() is high (> 15) (gocyclo)
    • Line 354: warning: cyclomatic complexity 21 of function (*S3Client).AddNotificationConfig() is high (> 15) (gocyclo)
    • Line 2059: warning: cyclomatic complexity 21 of function (*S3Client).listIncompleteInRoutine() is high (> 15) (gocyclo)
    • Line 1865: warning: cyclomatic complexity 19 of function (*S3Client).listVersionsRoutine() is high (> 15) (gocyclo)
    • Line 662: warning: cyclomatic complexity 19 of function selectObjectInputOpts() is high (> 15) (gocyclo)
    • Line 2964: warning: cyclomatic complexity 17 of function (*S3Client).GetBucketInfo() is high (> 15) (gocyclo)
    • Line 518: warning: cyclomatic complexity 16 of function (*S3Client).ListNotificationConfigs() is high (> 15) (gocyclo)
    • cmd/globals.go
    • Line 114: warning: cyclomatic complexity 27 of function setGlobalsFromContext() is high (> 15) (gocyclo)
    • cmd/rm-main.go
    • Line 427: warning: cyclomatic complexity 68 of function listAndRemove() is high (> 15) (gocyclo)
    • Line 209: warning: cyclomatic complexity 35 of function checkRmSyntax() is high (> 15) (gocyclo)
    • Line 288: warning: cyclomatic complexity 25 of function removeSingle() is high (> 15) (gocyclo)
    • cmd/mirror-url.go
    • Line 129: warning: cyclomatic complexity 27 of function deltaSourceTarget() is high (> 15) (gocyclo)
    • Line 38: warning: cyclomatic complexity 17 of function checkMirrorSyntax() is high (> 15) (gocyclo)
    • cmd/replicate-update.go
    • Line 270: warning: cyclomatic complexity 25 of function mainReplicateUpdate() is high (> 15) (gocyclo)
    • Line 153: warning: cyclomatic complexity 19 of function modifyRemoteTarget() is high (> 15) (gocyclo)
    • cmd/find.go
    • Line 395: warning: cyclomatic complexity 22 of function matchFind() 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!