flaticols/Positionless Analyzer
A Go static analyzer that detects positional struct literal initialization
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Jan 14, 2026
- License
- MIT
Pinned Snippet
uses: flaticols/positionless@0d31acefbd00827bf9ea53efccc60bd66ae50f62 # v2.1.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| path | Path to analyze (default: ./...) | no | ./... |
| fix | Apply suggested fixes automatically | no | false |
| include-generated | Include generated files in analysis | no | false |
| include-unexported | Include structs with unexported fields in fixes | no | false |
| include-internal | Auto-allow unexported fields in internal/ packages | no | false |
| ignore | Comma-separated patterns to skip (e.g., ConfigTest,*Mock) | no | "" |
| output | Output format: text or json | no | text |
| version | Version of positionless to use (default: latest) | no | latest |
Outputs
| name | description |
|---|---|
| findings-count | Number of positional struct literals found |
| fixed-count | Number of fixes applied (when fix is enabled) |
| exit-code | Exit code from the analyzer (0 if successful) |
| version | Version of positionless used |