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
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
af5c792da8
feat(lint): add pkg/detect + pkg/php — project detection and PHP QA toolchain
...
Add project type detection (pkg/detect) and complete PHP quality assurance
package (pkg/php) with formatter, analyser, audit, security, refactor,
mutation testing, test runner, pipeline stages, and QA runner that builds
process.RunSpec for orchestrated execution.
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-09 13:13:30 +00:00