Skip to content

Commit 8c9d68a

Browse files
committed
Sync plugins from development repository
Auto-synced from claude-priority-dev: - plugin-formatter/ - claude-prioritise/ - marketplace.json Development commit: 57e0c349fbb9c2e58e35e012bd08f5c8d2a170e2 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: GitHub Actions <actions@github.com>
1 parent 7a7aa63 commit 8c9d68a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

plugin-formatter/skills/plugin-formatter/scripts/validate-json.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ if [ ! -d "$PLUGIN_DIR" ]; then
2929
fi
3030

3131
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
32-
SCHEMA_DIR="$SCRIPT_DIR/../schemas"
3332
ERRORS=0
3433

3534
echo "🔍 Validating JSON files in: $PLUGIN_DIR"
@@ -57,7 +56,8 @@ find_python() {
5756
# Function to validate JSON syntax
5857
validate_json_syntax() {
5958
local file=$1
60-
local python_cmd=$(find_python)
59+
local python_cmd
60+
python_cmd=$(find_python)
6161

6262
if [ -z "$python_cmd" ]; then
6363
echo "❌ Python not found. Install Python 3 to enable JSON validation."
@@ -135,10 +135,10 @@ else
135135
((ERRORS++)) || true
136136
else
137137
DESC_LEN=${#DESC}
138-
if [ $DESC_LEN -lt 10 ]; then
138+
if [ "$DESC_LEN" -lt 10 ]; then
139139
echo " ❌ Description too short ($DESC_LEN chars, min 10)"
140140
((ERRORS++)) || true
141-
elif [ $DESC_LEN -gt 200 ]; then
141+
elif [ "$DESC_LEN" -gt 200 ]; then
142142
echo " ⚠️ Description very long ($DESC_LEN chars, max recommended 200)"
143143
else
144144
echo " ✅ Description length valid: $DESC_LEN chars"

0 commit comments

Comments
 (0)