Skip to content

The zerolint linter checks usage patterns of pointers to zero-size variables in Go

License

Notifications You must be signed in to change notification settings

fillmore-labs/zerolint

Repository files navigation

Fillmore Labs zerolint

Go Reference Test Coverage Maintainability Go Report Card License

The zerolint linter checks usage patterns of pointers to zero-size variables in Go.

Usage

go install fillmore-labs.com/zerolint@latest

Usage: zerolint [-flag] [package]

Flags:

  • -c int display offending line with this many lines of context (default -1)
  • -basic basic analysis only
  • -excluded <filename> read excluded types from this file
  • -zerotrace trace found zero-sized types
  • -fix apply all suggested fixes

About

The zerolint linter checks usage patterns of pointers to zero-size variables in Go

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages