Skip to content

fix: resolve all knip unused dependency and unlisted binary warnings#434

Merged
rhuanbarreto merged 4 commits into
mainfrom
claude/focused-mcclintock-edfb80
Jun 27, 2026
Merged

fix: resolve all knip unused dependency and unlisted binary warnings#434
rhuanbarreto merged 4 commits into
mainfrom
claude/focused-mcclintock-edfb80

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • Add proto-installed tools (conventional-changelog, czg, oxfmt, oxlint) to knip's ignoreDependencies and ignoreBinaries lists
  • Add knip itself to ignoreBinaries (it self-resolves as a dependency but not as a binary since it's invoked via proto)
  • bun run knip now exits cleanly with zero findings

Context

These tools are listed in devDependencies for version pinning but installed and invoked via proto (not npm). Knip couldn't resolve them from node_modules/.bin/, so it reported them as both unused dependencies and unlisted binaries. This was a pre-existing issue that caused bun run validate to fail at the knip step.

Test plan

  • bun run knip exits 0 with no output (no findings, no hints)
  • bun run validate passes end-to-end

Bun.Transpiler.transformSync() and import() throw AggregateError when
.rules.ts files contain syntax errors. These were unhandled, causing
archgate check to crash instead of reporting the file as blocked.

Wrap transpiler, parser, and dynamic import calls in try-catch blocks
and return structured violation results so the error surfaces as a
check failure rather than an unhandled exception.

Fixes Sentry issue 130690158.

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
Add proto-installed tools (conventional-changelog, czg, oxfmt, oxlint)
to knip's ignoreDependencies and ignoreBinaries lists. These packages
are in devDependencies for version pinning but installed via proto, so
knip cannot resolve them from node_modules.

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
@coderabbitai

coderabbitai Bot commented Jun 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@rhuanbarreto, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 38 minutes and 18 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: aa613fb1-1357-4f6d-b8ec-934a76566e09

📥 Commits

Reviewing files that changed from the base of the PR and between 7c384d2 and 6a05efb.

📒 Files selected for processing (2)
  • .claude/settings.json
  • knip.json

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 27, 2026

Copy link
Copy Markdown

Deploying archgate-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6a05efb
Status: ✅  Deploy successful!
Preview URL: https://cffc2c5c.archgate-cli.pages.dev
Branch Preview URL: https://claude-focused-mcclintock-ed.archgate-cli.pages.dev

View logs

@github-actions

github-actions Bot commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Code Coverage

Metric Value
Lines 90.0% (6933 / 7706)
Threshold 90% minimum — met
Platforms Linux + Windows

Full HTML report available in workflow artifacts.

Per-directory breakdown
Directory Coverage Lines
src/commands/ 88.1% 1874 / 2128
src/engine/ 90.9% 1463 / 1610
src/formats/ 100.0% 142 / 142
src/helpers/ 90.3% 3454 / 3826

Worktrees created by Claude Code lack node_modules, causing knip
and other tools to fail. This hook runs `bun install` automatically
when a worktree is created.

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
@rhuanbarreto rhuanbarreto merged commit d7690b2 into main Jun 27, 2026
20 checks passed
@rhuanbarreto rhuanbarreto deleted the claude/focused-mcclintock-edfb80 branch June 27, 2026 19:57
@archgatebot archgatebot Bot mentioned this pull request Jun 27, 2026
rhuanbarreto pushed a commit that referenced this pull request Jun 27, 2026
# archgate

## [0.45.7](v0.45.6...v0.45.7)
(2026-06-27)

### Bug Fixes

* **deps:** update docs dependencies
([#437](#437))
([e8f10c1](e8f10c1))
* handle parse errors in rule scanner and loader gracefully
([#432](#432))
([7c384d2](7c384d2)),
closes [#130690158](https://github.com/archgate/cli/issues/130690158)
* resolve all knip unused dependency and unlisted binary warnings
([#434](#434))
([d7690b2](d7690b2))

---
This PR was generated with
[simple-release](https://github.com/TrigenSoftware/simple-release).

<details>
<summary>📄 Cheatsheet</summary>
<br>



You can configure the bot's behavior through a pull request comment
using the `!simple-release/set-options` command.

### Command Format

````md
!simple-release/set-options

```json
{
  "bump": {},
  "publish": {}
}
```
````

### Useful Parameters

#### Bump

| Parameter | Type | Description |
|-----------|------|-------------|
| `version` | `string` | Force set specific version |
| `as` | `'major' \| 'minor' \| 'patch' \| 'prerelease'` | Release type
|
| `prerelease` | `string` | Pre-release identifier (e.g., "alpha",
"beta") |
| `firstRelease` | `boolean` | Whether this is the first release |
| `skip` | `boolean` | Skip version bump |
| `byProject` | `Record<string, object>` | Per-project bump options for
monorepos |

#### Publish

| Parameter | Type | Description |
|-----------|------|-------------|
| `skip` | `boolean` | Skip publishing |
| `access` | `'public' \| 'restricted'` | Package access level |
| `tag` | `string` | Tag for npm publication |

### Usage Examples

#### Force specific version

````md
!simple-release/set-options

```json
{
  "bump": {
    "version": "2.0.0"
  }
}
```
````

#### Force major bump

````md
!simple-release/set-options

```json
{
  "bump": {
    "as": "major"
  }
}
```
````

#### Create alpha pre-release

````md
!simple-release/set-options

```json
{
  "bump": {
    "prerelease": "alpha"
  }
}
```
````

#### Publish with specific access and tag

````md
!simple-release/set-options

```json
{
  "bump": {
    "prerelease": "beta"
  },
  "publish": {
    "access": "public",
    "tag": "beta"
  }
}
```
````

### Access Restrictions

The command can only be used by users with permissions:
- repository owner
- organization member
- collaborator

### Notes

- The last comment with `!simple-release/set-options` command takes
priority
- JSON must be valid, otherwise the command will be ignored
- Parameters apply only to the current release execution
- The command can be updated by editing the comment or adding a new one


</details>

<!--
  Please do not edit this comment.
  simple-release-pull-request: true
  simple-release-branch-from: release
  simple-release-branch-to: main
-->

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

1 participant