package goanalysis
import "git.sr.ht/~shulhan/pakakeh.go/lib/goanalysis"
Package goanalysis implement go static analysis using Analyzer that are not included in the default "go vet", but included in the passes directory, including
- fieldalignment: detects structs that would use less memory if their fields were sorted.
- nilness: inspects the control-flow graph of an SSA function and reports errors such as nil pointer dereferences and degenerate nil pointer comparisons.
- reflectvaluecompare: checks for accidentally using == or reflect.DeepEqual to compare reflect.Value values.
- shadow: checks for shadowed variables.
- sortslice: checks for calls to sort.Slice that do not use a slice type as first argument.
- unusedwrite: checks for unused writes to the elements of a struct or array object.
- waitgroup: detects simple misuses of sync.WaitGroup.
Index ¶
Functions ¶
func Check ¶
func Check()
Check run the static analysis. This function is not mean to be call directly, but used in the main func.
Source Files ¶
- Version
- v0.60.0 (latest)
- Published
- Feb 1, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 9 hours ago –
Tools for package owners.