John Kerl
d56eafff97
Convert if/else-if chains to typed switch statements (staticcheck QF1003) ( #2112 )
...
Replaces 100+ if/else-if chains on a single variable with tagged switch
statements across 72 files. The bulk are transformer option-parsing loops
(switch on opt string), plus a handful of value-dispatch sites in mlrval,
dsl/cst, repl, lib, auxents, and bifs. One case (surv.go) required a
labeled break to preserve the loop-exit behavior of the original else branch.
Fixes staticcheck QF1003 findings.
Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-06-28 18:27:42 -04:00
John Kerl
e1346691da
Improve error propagation ( #1975 )
2026-02-16 16:48:41 -05:00
John Kerl
5eb40c9e7b
Multiple style updates ( #1974 )
...
* Comment style
* IRecordTransformer -> RecordTransfomer
* make fmt
* else-return style mod
* snake-case -> camel-case
* Remove redundant err = nil and similar zero-value initializations.
* redundant break;
* bugfix
* neaten
* typofix
* simplify/standardize init of zero-length slices
* Standardize fmt.Fprintf w/ errors
* fix double print of "mlr:"
* neatening
* Uniformize error messages
* make docs
* avoid shadowing package names
* shorten some receiver names
2026-02-16 15:49:21 -05:00
John Kerl
a3b5d25933
Neaten some comments ( #1973 )
...
* comment-neaten
* comment-neaten
* more
2026-02-16 13:38:49 -05:00
John Kerl
0003b83654
mlr split with --folder (#1962 )
2026-02-14 20:22:24 -05:00
John Kerl
7da6f1453d
Replace list.List with Go slices ( #1950 )
...
* Add .vscode to .gitignore
* Replace `list.List` with slices
2026-02-01 17:22:28 -05:00
Adam Lesperance
085e831668
The package version must match the major tag version ( #1654 )
...
* Update package version
* Update makefile targets
* Update readme packages
* Remaining old packages via rg/sd
2024-09-20 12:10:11 -04:00
John Kerl
268a96d002
Export library code in pkg/ ( #1391 )
...
* Export library code in `pkg/`
* new doc page
2023-09-10 17:15:13 -04:00