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
Found `time.Now().Sub(t)` instead of `time.Since(t)`SCC-S1012
Anti-pattern
Autofix

The time.Since(t) helper has the same effect as using time.Now().Sub(t).

Duplicate build constraintsSCC-SA4019
Anti-pattern
Autofix

Multiple, identical build constraints in the same file.

Use `copy()` for sliding elementsSCC-S1018
Anti-pattern
Autofix

copy() permits using the same source and destination slice, even with overlapping ranges. This makes it ideal for sliding elements in a slice.

Found trapping a signal that cannot be trappedSCC-SA1016
Anti-pattern
Autofix

A process cannot intercept all signals. Specifically, on UNIX-like systems, the syscall.SIGKILL and syscall.SIGSTOP signals cannot be captured by the process but instead handled directly by the kernel. It is, therefore, pointless to try and handle these signals.

Drop unnecessary use of the blank identifierSCC-S1005
Anti-pattern
Autofix

Assigning to the blank identifier is unnecessary.

  • …