summaryrefslogtreecommitdiff
path: root/Magefile.go
AgeCommit message (Collapse)Author
2026-03-25ci: Update Magefile to include shortcuts for build, test, lint, and releasePaul Buetow
- Added Lint target: runs golangci-lint for code quality checks - Added Release target: builds and packages releases (requires goreleaser) Also fixed errcheck linting issue: - Check error return from o.vars.SetVariable in AssignVariable All mage targets work: build, run, test, testRPN, rpn, install, lint, release, repl, uninstall
2026-03-25docs: Add SPDX license headers to all .go source filesPaul Buetow
- Added 'SPDX-License-Identifier: MIT' and 'Copyright (c) 2026 Paul Buetow' headers - Files updated: 24 .go files across cmd/gt/, internal/calculator/, internal/repl/, internal/rpn/ The MIT license from LICENSE file is reflected in all source files.
2026-03-23Code quality audit fixes from comprehensive auditPaul Buetow
- Error wrapping improvements across multiple files - Thread-safe singleton initialization using sync.Once - Proper error handling for file close operations - Removed speculative complexity in history management - Fixed operator interface design Audit report: COMPLETE_AUDIT_REPORT.md
2026-03-23Improve test coverage to 81.9% and fix RPN integrationPaul Buetow
- Add comprehensive unit tests for REPL package - Add completer logic tests to cover edge cases - Integrate RPN as fallback in calculator.Parse() - Add ParseRPN function to calculator package - Add tests for RPN fallthrough path The changes bring overall test coverage from ~70% to 81.9%.
2026-03-20internal/Magefile: Refactor to align with best practicesPaul Buetow
- Added mg import (via magefile/mage/sh) - Added binaryName constant - Added project descriptions for build targets - Added proper Install target with go install - Added Uninstall target to remove the binary - Added getGOPATH helper function
2026-03-20Magefile.go: add TestRPN target for testing RPN packagePaul Buetow
- Add TestRPN() mage target to run only RPN tests - Useful for quick RPN-specific testing
2026-03-16bump version to v0.2.0v0.2.0Paul Buetow
- Add REPL mode with vi keybindings - Add built-in commands (help, clear, quit/exit) - Add mage repl target Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2025-11-25Initial commit: perc v0.0.0 - percentage calculatorv0.0.0Paul Buetow
Amp-Thread-ID: https://ampcode.com/threads/T-e4f4a959-8cc6-4ac0-b6fb-2779867e8b2a Co-authored-by: Amp <amp@ampcode.com>