Repository navigation
chore: repair dev tooling, expand golangci-lint config, and update rule-dev docs - #268
Merged
Merged
Conversation
…pdate contributor docs
- Fix broken task mocks target in Taskfile.yml and scripts/check-dev-tools.sh
(replace removed CurrentProjectGitWalker with core.ModuleRule) and bump
pinned golangci-lint to v2.15.0
- Expand .golangci.yml from 5 to 14 high-signal linters (bodyclose,
durationcheck, errorlint, exptostd, fatcontext, gocritic, misspell, noctx,
unconvert alongside errcheck/govet/ineffassign/staticcheck/unused + gofmt)
- Resolve all reported lint findings across the codebase, including slice
aliasing in appendAssign, exitAfterDefer in CLI entrypoints, errors.Is/%w
checks, redundant conversions, and routing validateGitDependencyIndex
through gitcommand.Run
- Give git_timeout_test.go 2s SSH startup headroom under heavy parallel macOS
-race load
- Update AGENTS.md, .spec/{DOMAIN,CODE_STYLE,TOOLS,TESTING,agent-rules,config/review-maintenance}.md,
and .agents/skills/go-{code-style,testing} to reflect protoast, ModuleRule,
and current CI/linters, and add CONTRIBUTING.md
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.
Summary
Repairs outdated developer tasks and contributor/spec docs, upgrades pinned
golangci-linttov2.15.0, and expands.golangci.ymlto enforce high-signal Go correctness and context rules.Dev tooling & CI
task mocksandscripts/check-dev-tools.sh: replace the removedcore.CurrentProjectGitWalkerinterface withcore.ModuleRulealongsidecore.Ruleandconsole.Console.golangci-linttov2.15.0inTaskfile.ymlandscripts/check-dev-tools.sh..golangci.ymlto 14 linters +gofmtformatter: enablebodyclose,durationcheck,errorlint,exptostd,fatcontext,gocritic,misspell,noctx, andunconverton top of the v2 defaults (errcheck,govet,ineffassign,staticcheck,unused).git_timeout_test.gounder parallel-raceload: increase SSH shim startup timeout from800msto2s.Codebase lint fixes (0 issues across all 14 linters)
gocritic: eliminate backing-array slice aliasing (slices.Concat/slices.Clone) inbreaking_scope.go,migration/baseline.go, andpolicy/resolver.go; fixexitAfterDeferincmd/easyp/main.goandcmd/easyp-mcp/main.go; simplifyif/elsechains toswitch.noctx: routevalidateGitDependencyIndexininternal/adapters/module_config/git_dependency_path.gothroughgitcommand.Run(gaining timeout +Setsid+GIT_TERMINAL_PROMPT=0) and useexec.CommandContext/net.ListenConfig.Listenin tests.errorlint/errcheck/unconvert: convert==/!=sentinel comparisons toerrors.Is, fix error wrapping verbs, handle<-doneerrors in 4 parallel tests, and remove redundantstring()/uint64()conversions.Documentation for rule development & contributors
CONTRIBUTING.mdcovering prerequisites,Taskfile.ymlworkflows, enabled linters, and step-by-step instructions for implementingcore.Rule/core.ModuleRulelint rules overinternal/protoast.AGENTS.md,.spec/(DOMAIN.md,CODE_STYLE.md,TOOLS.md,TESTING.md,agent-rules.md,config/review-maintenance.md), and.agents/skills/go-{code-style,testing}: remove deletedCurrentProjectGitWalkerand legacy DOM types, documentcore.ModuleRuleandprotoast, and match current CI and.golangci.yml.Verification
golangci-lint run --max-issues-per-linter=0 --max-same-issues=0 ./...(0 issues.)golangci-lint fmt --diff ./...(clean)go vet ./...andGOOS=windows GOARCH=amd64 go vet ./...GOOS=linux GOARCH=arm GOARM=7andGOOS=windows GOARCH=amd64builds of./cmd/easyp ./cmd/easyp-mcptask dev-tools:check,task schema:check,task proto:checkgo test -race -count=1 ./...(all 34 packages pass)