From b52a471837b4a3dadfad6b19abe0161bc6aa3a54 Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sat, 29 Nov 2025 18:09:04 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 12 ++++++++++ README.md | 3 +++ hooks/hooks.json | 17 ++++++++++++++ plugin.lock.json | 45 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 77 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100644 hooks/hooks.json create mode 100644 plugin.lock.json diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..9565e65 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "rust-lint", + "description": "Automatically format Rust files with rustfmt and provide on-demand clippy linting", + "version": "1.0.0", + "author": { + "name": "Cheolwan Park", + "url": "https://github.com/cheolwanpark" + }, + "hooks": [ + "./hooks/hooks.json" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..d525b82 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# rust-lint + +Automatically format Rust files with rustfmt and provide on-demand clippy linting diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..227965b --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,17 @@ +{ + "description": "Automatically format Rust files after editing or writing", + "hooks": { + "PostToolUse": [ + { + "matcher": "Edit|Write", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks/rust-lint.sh", + "timeout": 30 + } + ] + } + ] + } +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..7bc7a22 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:cheolwanpark/claude-plugins:plugins/rust-lint", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "d8b7992040f0971f5835450ffc75a7765161bfe5", + "treeHash": "53bf75a1bbc0bde1982edad4ee5c0e7bc67396349360ac0343887f31c1fe98c0", + "generatedAt": "2025-11-28T10:15:01.037615Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "rust-lint", + "description": "Automatically format Rust files with rustfmt and provide on-demand clippy linting", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "35258c4353cf46612f3d144ef6f4dfc74423de922e85b9f62bb136a188db887c" + }, + { + "path": "hooks/hooks.json", + "sha256": "d6810df3ff440c0f9c9d8d579a604025de5167faecaa196d10349bf10171ee54" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "81efc871d3f8efcb0f652898742d8bc54aecff5cf8a1728561f3bfe439f2ca9c" + } + ], + "dirSha256": "53bf75a1bbc0bde1982edad4ee5c0e7bc67396349360ac0343887f31c1fe98c0" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file