Skip to content

feat(cli): add lint command#10

Merged
nucleuskit merged 3 commits into
mainfrom
feat/lint
Jun 14, 2026
Merged

feat(cli): add lint command#10
nucleuskit merged 3 commits into
mainfrom
feat/lint

Conversation

@nucleuskit

@nucleuskit nucleuskit commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • add the nucleus lint subcommand with human and JSON output aligned with validate
  • wire lint into the root CLI and add command/output tests
  • pass strict mode directly into contract/lint's single Run(dir, strict) entry point
  • update the hello-http example so strict lint passes
  • update the contract submodule pointer for the lint API refactor

Dependency

Verification

  • rtk go test ./...
  • rtk go test ./... -race -count=1
  • rtk go run ./cmd/nucleus lint --dir example/hello-http --strict --json
  • rtk go run ./cmd/nucleus validate --dir example/hello-http
  • cd contract && rtk go test ./...

Residual risk

  • Root-level validate --dir . and lint --dir . still fail because the repository root is not a service directory and has no nucleus.yaml.
  • verify is not registered yet in the CLI.

Anniext added 2 commits June 14, 2026 20:51
- 集成 nucleuslint 包并注册 lint 子命令
- 实现 lint 命令的配置结构和选项参数
- 添加 JSON 和标准格式的输出渲染功能
- 实现严格模式和普通模式的规则检查
- 提供测试用例验证 lint 命令功能
- 更新 example 配置文件以适配新功能
@nucleuskit nucleuskit changed the title [codex] feat(cli): add lint command feat(cli): add lint command Jun 14, 2026
@nucleuskit nucleuskit requested a review from spelens-gud June 14, 2026 13:06
@nucleuskit nucleuskit marked this pull request as ready for review June 14, 2026 13:07
@nucleuskit nucleuskit merged commit dea879b into main Jun 14, 2026
4 checks passed
@nucleuskit nucleuskit deleted the feat/lint branch June 14, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants