commit e05271052a7c4a3d6723f12cd5714bda6eacbd12 Author: Zhongwei Li Date: Sat Nov 29 18:08:57 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..1d5c6e3 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "go-lint", + "description": "Automatic Go linting and formatting using goimports, go vet, and golangci-lint", + "version": "1.0.0", + "author": { + "name": "useful-claude-plugins", + "url": "https://github.com/cheolwanpark/useful-claude-plugins" + }, + "hooks": [ + "./hooks/hooks.json" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..6447be3 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# go-lint + +Automatic Go linting and formatting using goimports, go vet, and golangci-lint diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..6b0aad1 --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,17 @@ +{ + "description": "Automatically lint and format Go files using goimports and go vet", + "hooks": { + "PostToolUse": [ + { + "matcher": "Edit|Write", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks/go-lint.sh", + "timeout": 30 + } + ] + } + ] + } +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..f0a31f3 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:cheolwanpark/claude-plugins:plugins/go-lint", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "8f949c8ec68242cf847962554d689cbd7d6ee2e2", + "treeHash": "9805451cf599115fd8d5abf05b4a310d08b04e9923f012d18d733a081e89c7ca", + "generatedAt": "2025-11-28T10:15:01.248203Z", + "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": "go-lint", + "description": "Automatic Go linting and formatting using goimports, go vet, and golangci-lint", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "92af0784ef50493f572842c47761e1a81472ad26a7eca5c267b89f45789bda2c" + }, + { + "path": "hooks/hooks.json", + "sha256": "d59fa77492fb729918d67eea1d5c6a2c295f0ec0d272cabffc25203deaeb10a2" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "d8907549338dd7e7b12f790ce714b809dbc1032630f354837515308422ae754d" + } + ], + "dirSha256": "9805451cf599115fd8d5abf05b4a310d08b04e9923f012d18d733a081e89c7ca" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file