Preparing report...

Report for github.com/minio/mc

(v0.0.0-20250525050212-68f1d43f056a)

A+    Excellent!    Found 55 issues across 415 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!


gocyclo86%

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/client-s3.go
    • Line 1209: warning: cyclomatic complexity 34 of function (*S3Client).Remove() is high (> 15) (gocyclo)
    • Line 1916: warning: cyclomatic complexity 28 of function (*S3Client).versionedList() is high (> 15) (gocyclo)
    • Line 1020: warning: cyclomatic complexity 27 of function (*S3Client).Put() is high (> 15) (gocyclo)
    • Line 2104: warning: cyclomatic complexity 25 of function (*S3Client).listIncompleteRecursiveInRoutine() is high (> 15) (gocyclo)
    • Line 372: warning: cyclomatic complexity 23 of function (*S3Client).RemoveNotificationConfig() is high (> 15) (gocyclo)
    • Line 794: warning: cyclomatic complexity 23 of function (*S3Client).Watch() is high (> 15) (gocyclo)
    • Line 301: warning: cyclomatic complexity 21 of function (*S3Client).AddNotificationConfig() is high (> 15) (gocyclo)
    • Line 2016: warning: cyclomatic complexity 21 of function (*S3Client).listIncompleteInRoutine() is high (> 15) (gocyclo)
    • Line 609: warning: cyclomatic complexity 19 of function selectObjectInputOpts() is high (> 15) (gocyclo)
    • Line 1822: warning: cyclomatic complexity 19 of function (*S3Client).listVersionsRoutine() is high (> 15) (gocyclo)
    • Line 1620: warning: cyclomatic complexity 19 of function (*S3Client).Stat() is high (> 15) (gocyclo)
    • Line 2930: warning: cyclomatic complexity 17 of function (*S3Client).GetBucketInfo() is high (> 15) (gocyclo)
    • Line 465: warning: cyclomatic complexity 16 of function (*S3Client).ListNotificationConfigs() is high (> 15) (gocyclo)
    • cmd/stat-main.go
    • Line 105: warning: cyclomatic complexity 19 of function parseAndCheckStatSyntax() is high (> 15) (gocyclo)
    • cmd/config.go
    • Line 219: warning: cyclomatic complexity 18 of function parseEnvURLStr() 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/support-top-rpc.go
    • Line 271: warning: cyclomatic complexity 36 of function (*topRPCUI).View() is high (> 15) (gocyclo)
    • Line 218: warning: cyclomatic complexity 18 of function (*topRPCUI).Update() is high (> 15) (gocyclo)
    • Line 97: warning: cyclomatic complexity 17 of function mainSupportTopRPC() is high (> 15) (gocyclo)
    • cmd/mirror-url.go
    • Line 131: warning: cyclomatic complexity 27 of function deltaSourceTarget() is high (> 15) (gocyclo)
    • Line 39: warning: cyclomatic complexity 17 of function checkMirrorSyntax() 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 844: warning: cyclomatic complexity 16 of function mainAdminReplicationStatus() is high (> 15) (gocyclo)
    • cmd/cp-main.go
    • Line 305: warning: cyclomatic complexity 49 of function doCopySession() is high (> 15) (gocyclo)
    • cmd/duration.go
    • Line 94: warning: cyclomatic complexity 29 of function ParseDuration() is high (> 15) (gocyclo)
    • cmd/cat-main.go
    • Line 175: warning: cyclomatic complexity 22 of function parseCatSyntax() is high (> 15) (gocyclo)
    • cmd/admin-trace.go
    • Line 289: warning: cyclomatic complexity 50 of function (matchOpts).matches() is high (> 15) (gocyclo)
    • Line 494: warning: cyclomatic complexity 18 of function mainAdminTrace() is high (> 15) (gocyclo)
    • cmd/admin-info.go
    • Line 142: warning: cyclomatic complexity 34 of function (clusterStruct).String() is high (> 15) (gocyclo)
    • cmd/admin-heal.go
    • Line 501: warning: cyclomatic complexity 28 of function (shortBackgroundHealStatusMessage).String() is high (> 15) (gocyclo)
    • Line 351: warning: cyclomatic complexity 27 of function (verboseBackgroundHealStatusMessage).String() is high (> 15) (gocyclo)
    • Line 651: warning: cyclomatic complexity 20 of function mainAdminHeal() is high (> 15) (gocyclo)
    • cmd/client-fs.go
    • Line 284: warning: cyclomatic complexity 24 of function (*fsClient).put() is high (> 15) (gocyclo)
    • Line 445: warning: cyclomatic complexity 23 of function (*fsClient).putN() is high (> 15) (gocyclo)
    • Line 1092: warning: cyclomatic complexity 22 of function (*fsClient).listRecursiveInRoutine() is high (> 15) (gocyclo)
    • Line 1014: warning: cyclomatic complexity 16 of function (*fsClient).listDirOpt() is high (> 15) (gocyclo)
    • cmd/globals.go
    • Line 123: warning: cyclomatic complexity 38 of function setGlobalsFromContext() is high (> 15) (gocyclo)
    • cmd/stat.go
    • Line 60: warning: cyclomatic complexity 34 of function (statMessage).String() is high (> 15) (gocyclo)
    • Line 212: warning: cyclomatic complexity 30 of function statURL() 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/rb-main.go
    • Line 153: warning: cyclomatic complexity 16 of function deleteBucket() is high (> 15) (gocyclo)
    • cmd/mirror-main.go
    • Line 977: warning: cyclomatic complexity 38 of function runMirror() is high (> 15) (gocyclo)
    • Line 639: warning: cyclomatic complexity 30 of function (*mirrorJob).watchMirrorEvents() is high (> 15) (gocyclo)
    • cmd/tofu.go
    • Line 82: warning: cyclomatic complexity 16 of function promptTrustSelfSignedCert() is high (> 15) (gocyclo)
    • cmd/admin-scanner-status.go
    • Line 372: warning: cyclomatic complexity 27 of function (*scannerMetricsUI).View() is high (> 15) (gocyclo)
    • Line 195: warning: cyclomatic complexity 18 of function mainAdminScannerInfo() is high (> 15) (gocyclo)
    • cmd/find.go
    • Line 396: warning: cyclomatic complexity 22 of function matchFind() is high (> 15) (gocyclo)
    • cmd/ilm/options.go
    • Line 223: warning: cyclomatic complexity 44 of function GetLifecycleOptions() is high (> 15) (gocyclo)
    • Line 409: warning: cyclomatic complexity 22 of function ApplyRuleFields() 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!