Go module, .core/build.yaml, CLAUDE.md, directory structure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
821 B
821 B
CLAUDE.md
Project Overview
core/lint is a standalone pattern catalog and regex-based code checker. It loads YAML rule definitions and matches them against source files. Zero framework dependencies.
Build & Development
core go test
core go qa
core build # produces ./bin/core-lint
Architecture
catalog/— YAML rule files (embedded at compile time)pkg/lint/— Library: Rule, Catalog, Matcher, Scanner, Report typescmd/core-lint/— CLI binary usingcli.Main()
Rule Schema
Each YAML file contains an array of rules with: id, title, severity, languages, tags, pattern (regex), exclude_pattern, fix, example_bad, example_good, detection type.
Coding Standards
- UK English
- All functions have typed params/returns
- Tests use testify
- License: EUPL-1.2