Commit graph

7 commits

Author SHA1 Message Date
Snider
6806b20651 fix(dx): fix build error, replace os.* with go-io, add scanner tests
- Fix RegisterCommands call to match single-arg signature; register
  locales separately via i18n.RegisterLocales
- Replace os.Stat/os.ReadDir with coreio.Local equivalents in
  detect.go, format.go, main.go, cmd_docblock.go
- Add tests for languagesFromRules, IsExcludedDir, ScanFile edge cases
- Coverage: pkg/lint 71.0% → 72.9%, pkg/detect 100%, pkg/php 68.7%

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 09:02:06 +00:00
Snider
471266200e refactor: pass locales via RegisterCommands
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 01:38:32 +00:00
Snider
e7d469cc8d feat: embed and load locale translations on init
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 00:45:18 +00:00
Snider
9681b062ac refactor: replace all remaining fmt.Errorf with coreerr.E from go-log
Replaces ~46 fmt.Errorf and errors.New calls in production code across
pkg/lint, pkg/php, cmd/core-lint, and cmd/qa with structured coreerr.E()
calls using the forge.lthn.ai/core/go-log convention.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 21:48:58 +00:00
Snider
f1aae0055f feat(lint): add PHP QA commands to core qa
Add 8 PHP subcommands to the qa parent command: fmt, stan, psalm,
audit, security, rector, infection, and test. Each command detects
the PHP project and delegates to the pkg/php library functions.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-09 13:17:30 +00:00
Snider
bf06489806 feat: add cmd/qa from go-devops
QA commands (watch, review, health, issues, docblock) now live
alongside the lint library they depend on.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-09 12:28:24 +00:00
Snider
92cda64a02 feat: add core-lint CLI with check, catalog list, catalog show
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 11:01:35 +00:00