DeepSource
Dashboard Resources Pricing Discover Directory Log in

Run your first analysis.

Find thousands of code security and quality issues in your codebase, before they end up in production.

Start now
All analyzers Go
Go

Go

By DeepSource

Use Analyzer
Docs
Discuss
Types of function parameters can be combinedCRT-A0017
Style
Autofix

If parameters of the same type lie consecutively, mention their type once at the end of the last parameter.

Incorrectly formatted error stringSCC-ST1005
Style

Error strings follow a set of guidelines to ensure uniformity and good composability. Quoting Go Code Review Comments:

Poorly chosen name for error variableSCC-ST1012
Style

It is recommended that the error variables that are part of an API should be named as errFoo, ErrSomethingBad, ErrKindFoo or BazError.

Incorrect or missing package commentSCC-ST1000
Style

Package comments, like all comments to be presented by godoc, must appear adjacent to the package clause, with no blank line.

A function's error value should be its last return valueSCC-ST1008
Style

Per convention, a function's error value should be its last return value.