Preparing report...

Report for github.com/aquasecurity/esquery

A+    Excellent!    Found 9 issues across 37 files

Tweet

gofmt97%

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!


gocyclo100%

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.

No problems detected. Good job!


golint78%

Golint is a linter for Go source code.

    • esquery/aggs_filter.go
    • Line 3: warning: exported type FilterAggregation should have comment or be unexported (golint)
    • Line 9: warning: comment on exported function FilterAgg should be of the form "FilterAgg ..." (golint)
    • Line 35: warning: exported method FilterAggregation.Map should have comment or be unexported (golint)
    • esquery/aggs_nested.go
    • Line 3: warning: exported type NestedAggregation should have comment or be unexported (golint)
    • Line 23: warning: comment on exported method NestedAggregation.Path should be of the form "Path ..." (golint)
    • Line 35: warning: exported method NestedAggregation.Map should have comment or be unexported (golint)
    • esquery/highlight.go
    • Line 24: warning: exported type QueryHighlight should have comment or be unexported (golint)
    • Line 203: warning: exported type HighlightType should have comment or be unexported (golint)
    • Line 230: warning: exported type HighlightBoundaryScanner should have comment or be unexported (golint)
    • Line 233: warning: exported const BoundaryScannerDefault should have comment (or a comment on this block) or be unexported (golint)
    • Line 259: warning: exported type HighlightEncoder should have comment or be unexported (golint)
    • Line 281: warning: exported type HighlightFragmenter should have comment or be unexported (golint)
    • Line 284: warning: comment on exported const FragmenterSpan should be of the form "FragmenterSpan ..." (golint)
    • Line 303: warning: exported type HighlightOrder should have comment or be unexported (golint)
    • Line 325: warning: exported type HighlightTagsSchema should have comment or be unexported (golint)
    • Line 328: warning: exported const TagsSchemaDefault should have comment (or a comment on this block) or be unexported (golint)
    • esquery/query_match.go
    • Line 13: warning: comment on exported const TypeMatchBoolPrefix should be of the form "TypeMatchBoolPrefix ..." (golint)
    • esquery/query_multi_match.go
    • Line 7: warning: exported type MultiMatchQuery should have comment or be unexported (golint)
    • Line 103: warning: comment on exported method MultiMatchQuery.TieBreaker should be of the form "TieBreaker ..." (golint)
    • Line 109: warning: comment on exported method MultiMatchQuery.Boost should be of the form "Boost ..." (golint)
    • Line 167: warning: comment on exported type MultiMatchType should be of the form "MultiMatchType ..." (with optional leading article) (golint)
    • Line 172: warning: comment on exported const MatchTypeBestFields should be of the form "MatchTypeBestFields ..." (golint)
    • Line 175: warning: comment on exported const MatchTypeMostFields should be of the form "MatchTypeMostFields ..." (golint)
    • Line 178: warning: comment on exported const MatchTypeCrossFields should be of the form "MatchTypeCrossFields ..." (golint)
    • Line 181: warning: comment on exported const MatchTypePhrase should be of the form "MatchTypePhrase ..." (golint)
    • Line 184: warning: comment on exported const MatchTypePhrasePrefix should be of the form "MatchTypePhrasePrefix ..." (golint)
    • Line 187: warning: comment on exported const MatchTypeBoolPrefix should be of the form "MatchTypeBoolPrefix ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!