Skip to content

zconfig usage inspector, based on AST code analysis

License

Notifications You must be signed in to change notification settings

synthesio/zconfigcheck

Repository files navigation

zConfigCheck

zconfigcheck is a linter for zconfig. It detects a wide range of common mistakes which can lead to unexpected behavior.

This tool can either be used as a go vet tool or as a golangci-lint plugin. See the dedicated README.md file for more information about using zconfigcheck with golangci-lint.

Installation

$ go install github.com/synthesio/zconfigcheck/cmd/zconfigcheck@latest

Usage

$ go vet -vettool="$(which zconfigcheck)" TARGET_PKG

Limitations

Calls detection

zconfigcheck is only able to detect static calls to zconfig. If calls to zconfig made by your code cannot be computed using a static call graph, then some warnings will not be output.

Argument parsing

zconfigcheck cannot tell whether a given type will be supported by the zconfig default or custom parsers.

About

zconfig usage inspector, based on AST code analysis

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages