Preparing report...

Report for github.com/rulego/streamsql

(v0.0.0-20250612110023-79e586aab35b)

A    Great!    Found 39 issues across 83 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!


gofmt60%

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

    • doc.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

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.

    • rsql/lexer.go
    • Line 87: warning: cyclomatic complexity 26 of function (*Lexer).NextToken() is high (> 15) (gocyclo)
    • Line 281: warning: cyclomatic complexity 21 of function (*Lexer).lookupIdent() is high (> 15) (gocyclo)
    • rsql/parser.go
    • Line 462: warning: cyclomatic complexity 22 of function (*Parser).parseWith() is high (> 15) (gocyclo)
    • Line 176: warning: cyclomatic complexity 21 of function (*Parser).parseSelect() is high (> 15) (gocyclo)
    • Line 279: warning: cyclomatic complexity 21 of function (*Parser).parseWhere() is high (> 15) (gocyclo)
    • Line 424: warning: cyclomatic complexity 18 of function (*Parser).parseGroupBy() is high (> 15) (gocyclo)
    • Line 596: warning: cyclomatic complexity 16 of function (*Parser).parseHaving() is high (> 15) (gocyclo)
    • Line 93: warning: cyclomatic complexity 16 of function (*Parser).Parse() is high (> 15) (gocyclo)
    • rsql/ast.go
    • Line 355: warning: cyclomatic complexity 29 of function extractAggFieldWithExpression() is high (> 15) (gocyclo)
    • Line 217: warning: cyclomatic complexity 16 of function ParseAggregateTypeWithExpression() is high (> 15) (gocyclo)
    • Line 42: warning: cyclomatic complexity 16 of function (*SelectStatement).ToStreamConfig() is high (> 15) (gocyclo)
    • rsql/error_test.go
    • Line 8: warning: cyclomatic complexity 22 of function TestEnhancedErrorHandling() is high (> 15) (gocyclo)
    • rsql/error.go
    • Line 310: warning: cyclomatic complexity 20 of function generateFunctionSuggestions() is high (> 15) (gocyclo)
    • stream/stream.go
    • Line 73: warning: cyclomatic complexity 34 of function (*Stream).process() is high (> 15) (gocyclo)
    • Line 398: warning: cyclomatic complexity 16 of function (*Stream).smartSplitArgs() is high (> 15) (gocyclo)
    • expr/expression.go
    • Line 196: warning: cyclomatic complexity 33 of function evaluateNode() is high (> 15) (gocyclo)
    • Line 411: warning: cyclomatic complexity 30 of function tokenize() is high (> 15) (gocyclo)
    • Line 320: warning: cyclomatic complexity 26 of function evaluateBuiltinFunction() is high (> 15) (gocyclo)
    • Line 474: warning: cyclomatic complexity 25 of function parseExpression() is high (> 15) (gocyclo)
    • aggregator/group_aggregator.go
    • Line 132: warning: cyclomatic complexity 28 of function (*GroupAggregator).Add() is high (> 15) (gocyclo)
    • Line 85: warning: cyclomatic complexity 20 of function (*GroupAggregator).isNumericAggregator() 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!


misspell97%

Misspell Finds commonly misspelled English words

    • rsql/lexer.go
    • Line 342: warning: "GROPU" is a misspelling of "GROUP" (misspell)
    • Line 346: warning: "DISTINT" is a misspelling of "DISTINCT" (misspell)