Repository navigation
Add the Go module, ./dev and the code quality gates - #1
Merged
Merged
Conversation
The module ships `engine version` and the repo tooling: ./dev with doctor, run, test, worktree and deps, and eight required lanes (format, vet, lint, unit, coverage, file-length, imports, versions) run in parallel from scripts/lanes.tsv. CI runs ./dev test; Dependabot keeps modules, tools and actions current. go.mod's toolchain line is the one Go version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Count //nolint directives the way golangci-lint matches them, match directory triggers at any depth, require -min and -max, fail import rules whose targets match no package, reject empty lane commands, and replace the results directory on every run. Docs now say only what the code does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective
Gives engine a Go module with a
versioncommand, and the repo tooling the project-context guideline's Core asks for../devhas the verbs doctor, run, test, worktree and deps; there is no deploy verb, and the docs say why. Eight required lanes run in parallel fromscripts/lanes.tsv. CI runs the same./dev test, and Dependabot keeps modules, tools and actions current. go.mod'sgoandtoolchainlines are the one source of the Go version. Docs:docs/quality-gates.mdanddocs/versions.md. Guideline fixes this exposed are indocs/project-context.md.Gates
./dev test(every required lane)internal/anddevtools/internal/has tests. They cover each check's failure path (unformatted file, a lint finding or//nolintwith no baseline row, coverage below the minimum, a file over the limit, a layer violation, each version drift) and the shrink-only baseline in both directions. Worktree create and release run against real git repos; doctor and deps run with fakes.Rulings
Ruling (risk: low): golangci-lint and govulncheck are
tooldependencies in the root go.mod.Why: there is still one version source, and Dependabot bumps them. Agreed with the operator.
If wrong: move them to binaries that
./dev doctordownloads; that touches go.mod,devtools/internal/checks/lint.goanddevtools/internal/dev/deps.go.Ruling (risk: low): the
./devlogic is Go underdevtools/, and./devitself is a short shell script that pinsGOTOOLCHAINand builds.dev/dev.Why: the repo has one toolchain, and the tooling is tested and covered like product code.
If wrong: a rewrite of
devalone.Ruling (risk: low): every baseline is strict both ways. A row whose count is above what remains fails the lane until it is lowered, and a
//nolintdirective counts as a finding.Why: it makes "shrink-only" mechanical.
If wrong: relax
baseline.Compare.Review
go-version-file: go.mod../devforcesGOTOOLCHAINfrom go.mod whatever setup-go installs, and the versions lane already rejectsgo-versionandGOTOOLCHAINanywhere in a workflow, so the stricter parse adds no protection. Also left as is: the//nolintscan parsestestdata/Go files, which golangci-lint skips. It fails closed, and the repo has no such fixtures.devtools/internal/baseline/baseline.goanddevtools/internal/checks/lint.go(where a gate could fail open),devtogether withdevtools/internal/checks/versions.go(the single-Go-version guarantee).Deviations
allow, because their requirements are// indirect. Whether it then bumps them is unverified until its first run;docs/versions.mdgives the fallback.🤖 Generated with Claude Code