vscode 使用 trunk code

最近在搞 yamls lint,感觉使用 trunk code 可能比较方便,但是 trunk init 并没有默认启用 yaml lint

bash 复制代码
 *  正在执行任务: '/root/.cache/trunk/launcher/trunk' init --vscode 

Initializing 100% [==========================================================================================================================================================================================================================================>]  16/16  7.2s 
Formatting Configs 100% [===================================================================================================================================================================================================================================>]  12/12  28.0s 
                                                                                                                                                                                                                                                                             
✔ 12 linters were enabled (.trunk/trunk.yaml)

  actionlint 1.7.7 (7 github-workflow files)
  git-diff-check (173 files)
  gofmt 1.20.4 (40 go files)
  golangci-lint2 2.1.6 (9 go files)
  hadolint 2.12.1-beta (8 docker files) (created .hadolint.yaml)
  markdownlint 0.45.0 (8 markdown files) (created .markdownlint.yaml)
  osv-scanner 2.0.3 (1 lockfile file)
  oxipng 9.1.5 (2 png files)
  prettier 3.5.3 (8 markdown, 87 yaml files)
  shellcheck 0.10.0 (14 shell files) (created .shellcheckrc)
  shfmt 3.6.0 (14 shell files)
  trufflehog 3.89.1 (174 files)

Next Steps

 1. Share Trunk with your team
    Trunk is currently in single-player mode.
    Learn more at https://docs.trunk.io/code-quality/ide-integration/vscode#single-player-mode

 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io

但是无法启用 yamllint

bash 复制代码
root@debian:~/f/kube-combo  debugger ✗                                                                                                                                                                                                                                             12h57m ◒  
▶ trunk check enable yamllint
✖ Trunk Internal Error: Please report this issue at https://slack.trunk.io (reference id: d2271cfddece45ecfcee0c7e29029e52)
(v.v) 
root@debian:~/f/kube-combo  debugger ✗    

但是国内还无法访问这个 slack,就挺垃圾的

相关推荐
追逐时光者5 小时前
精选 4 款基于 .NET 开源、功能强大的 Windows 系统优化工具
后端·.net
TF男孩5 小时前
ARQ:一款低成本的消息队列,实现每秒万级吞吐
后端·python·消息队列
AAA修煤气灶刘哥6 小时前
别让Redis「歪脖子」!一次搞定数据倾斜与请求倾斜的捉妖记
redis·分布式·后端
AAA修煤气灶刘哥6 小时前
后端人速藏!数据库PD建模避坑指南
数据库·后端·mysql
你的人类朋友7 小时前
什么是API签名?
前端·后端·安全
昵称为空C8 小时前
SpringBoot3 http接口调用新方式RestClient + @HttpExchange像使用Feign一样调用
spring boot·后端
架构师沉默9 小时前
设计多租户 SaaS 系统,如何做到数据隔离 & 资源配额?
java·后端·架构
RoyLin9 小时前
TypeScript设计模式:适配器模式
前端·后端·node.js
该用户已不存在10 小时前
Mojo vs Python vs Rust: 2025年搞AI,该学哪个?
后端·python·rust
Moonbit10 小时前
MoonBit 正式加入 WebAssembly Component Model 官方文档 !
前端·后端·编程语言