From a9aabc0a208f6a532f66cd228352b8265115a592 Mon Sep 17 00:00:00 2001 From: yusing Date: Sun, 15 Feb 2026 17:31:36 +0800 Subject: [PATCH] chore(trunk): add linter configs and update versions - Add .markdownlint.yaml with prettier-friendly config - Add .yamllint.yaml with custom rules - Enable yamllint and markdownlint in trunk.yaml - Update Go runtime to 1.26.0 - Update linter versions (checkov, golangci-lint2, osv-scanner, trufflehog) - Enable pre-push and pre-commit hooks - Update .gitignore to track .trunk/configs directory --- .gitignore | 11 ++--------- .trunk/configs/.markdownlint.yaml | 2 ++ .trunk/configs/.yamllint.yaml | 7 +++++++ .trunk/trunk.yaml | 22 +++++++++++++--------- 4 files changed, 24 insertions(+), 18 deletions(-) create mode 100644 .trunk/configs/.markdownlint.yaml create mode 100644 .trunk/configs/.yamllint.yaml diff --git a/.gitignore b/.gitignore index 430fa743..f8ac4ac3 100755 --- a/.gitignore +++ b/.gitignore @@ -14,30 +14,21 @@ data/ debug/ logs/ -log/ .vscode/settings.json -go.work.sum - !cmd/**/ !internal/**/ todo.md .*.swp -.aider* mtrace.json .env *.env -.cursorrules .cursor/ -.windsurfrules test.Dockerfile -node_modules/ -tsconfig.tsbuildinfo - !agent.compose.yml !agent/pkg/** dev-data/ @@ -46,5 +37,7 @@ RELEASE_NOTES.md CLAUDE.md .kilocode/** +!.trunk/configs + # minified files **/*-min.* \ No newline at end of file diff --git a/.trunk/configs/.markdownlint.yaml b/.trunk/configs/.markdownlint.yaml new file mode 100644 index 00000000..b40ee9d7 --- /dev/null +++ b/.trunk/configs/.markdownlint.yaml @@ -0,0 +1,2 @@ +# Prettier friendly markdownlint config (all formatting rules disabled) +extends: markdownlint/style/prettier diff --git a/.trunk/configs/.yamllint.yaml b/.trunk/configs/.yamllint.yaml new file mode 100644 index 00000000..184e251f --- /dev/null +++ b/.trunk/configs/.yamllint.yaml @@ -0,0 +1,7 @@ +rules: + quoted-strings: + required: only-when-needed + extra-allowed: ["{|}"] + key-duplicates: {} + octal-values: + forbid-implicit-octal: true diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index cbf18e6c..58e556c4 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -14,25 +14,29 @@ runtimes: enabled: - node@22.16.0 - python@3.10.8 - - go@1.25.6 + - go@1.26.0 # This is the section where you manage your linters. (https://docs.trunk.io/check/configuration) lint: disabled: - - markdownlint - - yamllint + - bandit + - black + - isort + - ruff enabled: - - checkov@3.2.500 - - golangci-lint2@2.8.0 + - yamllint@1.38.0 + - markdownlint@0.47.0 + - checkov@3.2.501 + - golangci-lint2@2.9.0 - hadolint@2.14.0 - actionlint@1.7.10 - git-diff-check - gofmt@1.20.4 - - osv-scanner@2.3.2 + - osv-scanner@2.3.3 - oxipng@10.1.0 - prettier@3.8.1 - shellcheck@0.11.0 - shfmt@3.6.0 - - trufflehog@3.93.1 + - trufflehog@3.93.3 ignore: - linters: [ALL] paths: @@ -41,7 +45,7 @@ lint: actions: disabled: - trunk-announce - - trunk-check-pre-push - - trunk-fmt-pre-commit enabled: - trunk-upgrade-available + - trunk-check-pre-push + - trunk-fmt-pre-commit