Repository navigation
Add blink: Go port of ECS under - #92
Merged
Merged
Conversation
Replicate PHP-CS-Fixer LowercaseKeywordsFixer behaviour on keyword-spelled class-constant names: lowercase the name only when the same keyword reappears after :: in its value, so blink is byte-identical to ECS on full rector-src. Expose blink as a lazy-building composer bin (bin/blink).
This was referenced Sep 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports the Go part of ecs-go into this repository, nested under
blink/. Rust parts are excluded.What lands
blink/- the full Go module (renamed fromecs-gotoblink):main.go,cmd/check-sources,internal/(147 fixer rules plus lexer, tokens, runner, config, reporter, diff, finder, set). Token-based PHP coding-standard checker/fixer, 209 fixers, ~100% of ECS's 208 configured rules.blink/bin/rule-counts.sh- regenerates the rule-coverage table inblink/README.md; Rust column dropped..github/workflows/blink_tests.yaml- build, vet, test, gofmt -s, go fix, golangci-lint, govulncheck, check-sources, and a Windows job. Triggered onblink/**..github/workflows/blink_parity.yaml- the 1:1 parity gate. Runs blink and the ECS in this repository over full rector-src (psr12 + common) and fails on any differing file. Uses the local ECS (bin/ecs) rather than a published release, so it gates against the code being shipped..github/workflows/blink_rule_counts.yaml- fails if the coverage table is stale.Notes
ecs-go->blink; all import paths, the binary name, help text and the default config file (blink.json) follow.blink/.perf.yaml(Go vs Rust benchmark) was dropped.go build,go vet,go test ./...,gofmt -s,go fix, andrule-counts.sh --check.