Commit graph

21 commits

Author SHA1 Message Date
Snider
a001224b68 chore: sync dependencies for v0.3.3
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 22:18:05 +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
a36f835fe0 refactor: replace os.* and fmt.Errorf with go-io/go-log conventions
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 19:44:45 +00:00
Snider
b0bb2de141 chore: sync go.mod dependencies
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-15 15:38:09 +00:00
Snider
44619055ab chore: add .core/ and .idea/ to .gitignore 2026-03-15 10:17:50 +00:00
Snider
21f19249db fix: update stale import paths and dependency versions from extraction
Resolve stale forge.lthn.ai/core/cli v0.1.0 references (tag never existed,
earliest is v0.0.1) and regenerate go.sum via workspace-aware go mod tidy.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-14 13:38:59 +00:00
Snider
75b306c308 docs: add CLAUDE.md project instructions
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-13 13:38:02 +00:00
Snider
e876b62045 docs: add human-friendly documentation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 13:02:40 +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
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
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
15c9fe85c8 feat: extract devkit from go-devops into core/lint
Add Toolkit subprocess wrappers (go vet, gocyclo, govulncheck, gitleaks,
race detector, coverage, git log/diff/perms), native AST cyclomatic
complexity analyser, coverage snapshot/regression tracking with JSON
store, and govulncheck JSON parser.

89 tests passing (up from 51).

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-09 11:30:38 +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
Snider
bc159163e8 feat: seed catalog with 18 patterns from ecosystem sweep
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 10:59:33 +00:00
Snider
e5419c85c4 feat: add Scanner with directory walking and language detection
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 10:57:43 +00:00
Snider
4309e17cde feat: add report output (JSON, JSONL, text, summary)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 10:56:46 +00:00
Snider
d33d7056f1 feat: add regex Matcher with exclude pattern support
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 10:56:07 +00:00
Snider
3bf8585943 feat: add Catalog loader with dir/embed/filter support
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 10:55:13 +00:00
Snider
34d77e2216 feat: add Rule struct with YAML parsing and validation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 10:54:15 +00:00
Snider
21b1e60fd9 feat: initialise core/lint module
Go module, .core/build.yaml, CLAUDE.md, directory structure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 10:51:49 +00:00
5f55060d52 Initial commit 2026-03-09 10:50:46 +00:00