anthropics / anthropics/claude-code-action

Feature Request: Display syntax errors for .claude/setting.json and GitHub Actions workflows

Đang mở
#242 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement good first issue p3
Ngôn ngữ chính
TypeScript
Star
8.9k
Fork
2.1k
Merge trung bình
3 ngày 9 giờ
Pull request đã merge (30 ngày)
10

Mô tả

## Description

**Problem:** When running Claude Code Action, syntax errors in configuration files are silently ignored. Users get no error messages, making it hard to debug issues.

**Request:** Please add syntax error detection and display for:
1. `.claude/setting.json`
2. GitHub Actions workflow syntax (especially in Claude Code Action specific fields)

## Examples

### GitHub Actions Workflow

Currently no error shown for:

```yaml
allowed_tools: |
- 'Bash(pnpm install)'
- 'Bash(pnpm test)'
- 'Bash(pnpm build)'
- 'Bash(pnpm lint)'
```

Expected error message:

```
Error: Invalid syntax in 'allowed_tools'. Remove hyphens (-) when using pipe (|) notation.
Correct format:
allowed_tools: |
'Bash(pnpm install)'
'Bash(pnpm test)'
```

### `.claude/setting.json`
Currently no error shown for invalid JSON syntax.

Expected: Clear error messages with line numbers for JSON syntax errors.

**Benefits:**
- Faster debugging
- Better developer experience
- Prevents silent failures

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.