Skip to content

add trunk analysis#211

Merged
1a1a11a merged 3 commits intodevelopfrom
1a1a11a/trunk
Jun 22, 2025
Merged

add trunk analysis#211
1a1a11a merged 3 commits intodevelopfrom
1a1a11a/trunk

Conversation

@1a1a11a
Copy link
Copy Markdown
Owner

@1a1a11a 1a1a11a commented Jun 21, 2025

No description provided.

@1a1a11a 1a1a11a requested a review from haochengxia as a code owner June 21, 2025 18:31
@1a1a11a 1a1a11a requested review from Copilot and haochengxia and removed request for haochengxia June 21, 2025 18:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds Trunk CI configuration and supporting linter settings to the repo.

  • Introduces .trunk/trunk.yaml to configure Trunk CLI, plugins, runtimes, linters, and actions.
  • Adds individual linter configuration files under .trunk/configs/ for SVGO, Ruff, Yamllint, ShellCheck, MarkdownLint, isort, and Hadolint.
  • Updates .trunk/.gitignore to exclude Trunk-generated artifacts.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.trunk/trunk.yaml Configure Trunk CLI version, plugins, runtimes, enabled/disabled checks
.trunk/configs/svgo.config.mjs SVGO plugin overrides for default optimization rules
.trunk/configs/ruff.toml Ruff rule selection and E501 ignore
.trunk/configs/.yamllint.yaml Custom Yamllint rules for quoted strings, duplicates, and octals
.trunk/configs/.shellcheckrc Enable all ShellCheck rules and disable SC2154
.trunk/configs/.markdownlint.yaml Extend Prettier-friendly MarkdownLint style
.trunk/configs/.isort.cfg Use Black profile for isort
.trunk/configs/.hadolint.yaml Ignore SC1090/SC1091 for Hadolint
.trunk/.gitignore Ignore Trunk output, logs, plugins, and temporary files
Comments suppressed due to low confidence (1)

.trunk/trunk.yaml:22

  • Duplicate taplo@0.9.3 entry in lint.enabled. Remove the redundant line to avoid running the same linter twice.
    - taplo@0.9.3

cursor[bot]

This comment was marked as outdated.

Copy link
Copy Markdown
Collaborator

@haochengxia haochengxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add .github/workflows/trunk-check.yaml in this PR?

Comment thread .trunk/trunk.yaml
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
lint:
enabled:
- taplo@0.9.3
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add eslint@8.56.0 to enable the check for .js files from node binding.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@1a1a11a
Copy link
Copy Markdown
Owner Author

1a1a11a commented Jun 22, 2025

Should we add .github/workflows/trunk-check.yaml in this PR?

It might be better to add it in a separate PR so that we do not force everyone to use it immediately, which gives us more time to tune the config if needed. I learned a lesson when I enabled clang-format and clang-tidy too quickly. Let's first test it out locally before adding it to CI/CD. We can also enable pre-commit and pre-push features over time.

@haochengxia
Copy link
Copy Markdown
Collaborator

Should we add .github/workflows/trunk-check.yaml in this PR?

It might be better to add it in a separate PR so that we do not force everyone to use it immediately, which gives us more time to tune the config if needed. I learned a lesson when I enabled clang-format and clang-tidy too quickly. Let's first test it out locally before adding it to CI/CD. We can also enable pre-commit and pre-push features over time.

Yes, agree! We may require a corresponding update to setup-hook.sh, which seems currently broken.

@1a1a11a 1a1a11a merged commit 04e47e9 into develop Jun 22, 2025
8 checks passed
@1a1a11a 1a1a11a deleted the 1a1a11a/trunk branch June 22, 2025 14:47
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