flaticols/Positionless Analyzer

A Go static analyzer that detects positional struct literal initialization

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Jan 14, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: flaticols/positionless@0d31acefbd00827bf9ea53efccc60bd66ae50f62 # v2.1.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
pathPath to analyze (default: ./...)no./...
fixApply suggested fixes automaticallynofalse
include-generatedInclude generated files in analysisnofalse
include-unexportedInclude structs with unexported fields in fixesnofalse
include-internalAuto-allow unexported fields in internal/ packagesnofalse
ignoreComma-separated patterns to skip (e.g., ConfigTest,*Mock)no""
outputOutput format: text or jsonnotext
versionVersion of positionless to use (default: latest)nolatest
namedescription
findings-countNumber of positional struct literals found
fixed-countNumber of fixes applied (when fix is enabled)
exit-codeExit code from the analyzer (0 if successful)
versionVersion of positionless used