Skip to content

Tools

Useful tools.

Opengrep

Opengrep is a non-sucky version of Semgrep that doesn't hide features.

Download it at https://github.com/opengrep/opengrep/releases/.

It is a bit buggy.

For Arch Linux users

If you get libcrypt.so.1: cannot open shared object file, install libxcrypt-compat with sudo pacman -S libxcrypt-compat.

Common usage:

Bash
1
2
3
4
# scan
opengrep scan -f semgrep.yaml
# scan with autofix
opengrep scan -f semgrep.yaml --autofix FILES...

goimports-reviser

This tool organizes imports into three groups -- std, 3rdparty, ours.

Install with

Bash
go install -v github.com/incu6us/goimports-reviser/v3@latest

Format all code:

Bash
goimports-reviser -rm-unused -format ./...