golangci-lint

module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2023 License: GPL-3.0

README

golangci-lint is a fast Go linters runner. It runs linters in parallel, uses caching, supports yaml config, has integrations with all major IDE and has dozens of linters included.

important

  • This version has a powerful ability to detect hidden nil pointers reference by enable npecheck linter
  • Such as golangci-lint run -E npecheck ./...
  • Or configure it in .golangci.yml, similar to enable other linters, can be used with them

Install golangci-lint

  • Using go version >= go 1.19
  • go install github.com/chenfeining/golangci-lint/cmd/golangci-lint@latest

Documentation

Directories

Path Synopsis
cmd
internal
cache
Package cache implements a build artifact cache.
Package cache implements a build artifact cache.
renameio
Package renameio writes files atomically by renaming temporary files.
Package renameio writes files atomically by renaming temporary files.
robustio
Package robustio wraps I/O functions that are prone to failure on Windows, transparently retrying errors up to an arbitrary timeout.
Package robustio wraps I/O functions that are prone to failure on Windows, transparently retrying errors up to an arbitrary timeout.
pkg
golinters/goanalysis
Package goanalysis defines the implementation of the checker commands.
Package goanalysis defines the implementation of the checker commands.
golinters/nolintlint
Package nolintlint provides a linter to ensure that all //nolint directives are followed by explanations
Package nolintlint provides a linter to ensure that all //nolint directives are followed by explanations
scripts
test
ruleguard
go:build ruleguard
go:build ruleguard

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL