Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Features

* **phpstan:** add PHP ecosystem module with JSON injection (`--error-format=json`); groups errors by file sorted by count, auto-detects `vendor/bin/phpstan`, text fallback for custom formats (75%+ token savings)
* **aws:** expand CLI filters from 8 to 25 subcommands — CloudWatch Logs, CloudFormation events, Lambda, IAM, DynamoDB (with type unwrapping), ECS tasks, EC2 security groups, S3API objects, S3 sync/cp, EKS, SQS, Secrets Manager ([#885](https://github.com/rtk-ai/rtk/pull/885))
* **aws:** add shared runner `run_aws_filtered()` eliminating per-handler boilerplate
* **tee:** add `force_tee_hint()` — truncated output saves full data to file with recovery hint
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ rtk cargo clippy # Cargo clippy (-80%)
rtk ruff check # Python linting (JSON, -80%)
rtk golangci-lint run # Go linting (JSON, -85%)
rtk rubocop # Ruby linting (JSON, -60%+)
rtk phpstan analyse # PHP static analysis (JSON, -75%+)
```

### Package Managers
Expand Down
1 change: 1 addition & 0 deletions src/cmds/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub mod dotnet;
pub mod git;
pub mod go;
pub mod js;
pub mod php;
pub mod python;
pub mod ruby;
pub mod rust;
Expand Down
11 changes: 11 additions & 0 deletions src/cmds/php/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# PHP

> Part of [`src/cmds/`](../README.md) — see also [docs/contributing/TECHNICAL.md](../../../docs/contributing/TECHNICAL.md)

## Specifics

- `phpstan_cmd.rs` — PHPStan static analysis with JSON injection (`--error-format=json`); groups errors by file, sorted by error count descending, shows up to 10 files × 5 messages each (75%+ reduction). Falls back to text parsing when the user specifies a custom format flag.
- Detects `vendor/bin/phpstan` automatically (Laravel/Composer projects)
- JSON path: injects `--error-format=json`, parses `totals` + `files` structure
- Text path: scans for `[OK]` / error count summary lines
- Fallback: `fallback_tail()` on JSON parse failure — never blocks execution
1 change: 1 addition & 0 deletions src/cmds/php/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
automod::dir!(pub "src/cmds/php");
Loading