Preparing report...

Report for github.com/msg2git/msg2git

(v0.0.0-20250719070649-bac6af197c63)

C    Needs some work    Found 93 issues across 99 files

Tweet

gofmt11%

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!


gocyclo73%

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.

    • internal/github/manager.go
    • Line 1326: warning: cyclomatic complexity 20 of function (*Manager).fetchIssuesViaGraphQL() is high (> 15) (gocyclo)
    • Line 803: warning: cyclomatic complexity 20 of function (*Manager).pullLatest() is high (> 15) (gocyclo)
    • Line 161: warning: cyclomatic complexity 16 of function cleanupDataDirectory() is high (> 15) (gocyclo)
    • internal/telegram/commands_info.go
    • Line 19: warning: cyclomatic complexity 38 of function (*Bot).handleInsightCommand() is high (> 15) (gocyclo)
    • Line 298: warning: cyclomatic complexity 35 of function (*Bot).handleSyncCommand() is high (> 15) (gocyclo)
    • internal/telegram/callback_custom_files.go
    • Line 204: warning: cyclomatic complexity 26 of function (*Bot).handleRemoveCustomFile() is high (> 15) (gocyclo)
    • Line 848: warning: cyclomatic complexity 18 of function (*Bot).handleCustomFilePathReply() is high (> 15) (gocyclo)
    • Line 82: warning: cyclomatic complexity 17 of function (*Bot).handleBackToFiles() is high (> 15) (gocyclo)
    • internal/telegram/callback_photos.go
    • Line 16: warning: cyclomatic complexity 52 of function (*Bot).handlePhotoFileSelection() is high (> 15) (gocyclo)
    • Line 485: warning: cyclomatic complexity 48 of function (*Bot).handlePhotoPinnedFileSelection() is high (> 15) (gocyclo)
    • internal/telegram/utils.go
    • Line 1361: warning: cyclomatic complexity 31 of function (*Bot).saveMessageToCustomFile() is high (> 15) (gocyclo)
    • Line 426: warning: cyclomatic complexity 22 of function (*Bot).telegramToMarkdown() is high (> 15) (gocyclo)
    • Line 1039: warning: cyclomatic complexity 18 of function (*Bot).showCustomFileSelectionInterface() is high (> 15) (gocyclo)
    • internal/database/database_test.go
    • Line 177: warning: cyclomatic complexity 26 of function TestDB_MultipleUsers() is high (> 15) (gocyclo)
    • Line 9: warning: cyclomatic complexity 18 of function TestDB_EncryptionIntegration() is high (> 15) (gocyclo)
    • internal/telegram/commands_setup.go
    • Line 132: warning: cyclomatic complexity 33 of function (*Bot).handleRepoCommand() is high (> 15) (gocyclo)
    • Line 547: warning: cyclomatic complexity 23 of function (*Bot).handleLLMTokenReply() is high (> 15) (gocyclo)
    • internal/telegram/stripe_subscriptions.go
    • Line 14: warning: cyclomatic complexity 32 of function (*Bot).processSubscriptionCreated() is high (> 15) (gocyclo)
    • Line 264: warning: cyclomatic complexity 19 of function (*Bot).processSubscriptionRenewed() is high (> 15) (gocyclo)
    • Line 699: warning: cyclomatic complexity 16 of function (*Bot).processSubscriptionCancellation() is high (> 15) (gocyclo)
    • internal/telegram/callback_issues.go
    • Line 806: warning: cyclomatic complexity 57 of function (*Bot).handlePhotoIssueCreation() is high (> 15) (gocyclo)
    • Line 448: warning: cyclomatic complexity 44 of function (*Bot).handleIssueCreation() is high (> 15) (gocyclo)
    • Line 248: warning: cyclomatic complexity 28 of function (*Bot).handleIssueCommentReply() is high (> 15) (gocyclo)
    • Line 81: warning: cyclomatic complexity 21 of function (*Bot).handleIssueClose() is high (> 15) (gocyclo)
    • internal/telegram/callback_files.go
    • Line 15: warning: cyclomatic complexity 40 of function (*Bot).handleFileSelection() is high (> 15) (gocyclo)
    • Line 346: warning: cyclomatic complexity 33 of function (*Bot).handlePinnedFileSelection() is high (> 15) (gocyclo)
    • internal/telegram/commands_content.go
    • Line 170: warning: cyclomatic complexity 31 of function (*Bot).handleIssueCommandWithMessageID() is high (> 15) (gocyclo)
    • Line 21: warning: cyclomatic complexity 24 of function (*Bot).handleTodoCommandWithMessageID() is high (> 15) (gocyclo)
    • Line 370: warning: cyclomatic complexity 16 of function (*Bot).handleCustomFileCommand() is high (> 15) (gocyclo)
    • internal/telegram/commands_premium.go
    • Line 16: warning: cyclomatic complexity 21 of function (*Bot).handleCoffeeCommand() is high (> 15) (gocyclo)
    • Line 356: warning: cyclomatic complexity 21 of function (*Bot).handleResetUsageConfirmation() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


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!