Skip to content

Port RemoveSlashFromNativeConstantFixer to blink - #221

Merged
TomasVotruba merged 1 commit into
mainfrom
blink-remove-slash-native-constant
Oct 26, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
blink-remove-slash-native-constant

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Go port of the PHP fixer merged in #220.

Strips the redundant leading backslash from the true, false and null constants (\true -> true), matching the PHP fixer.

  • RemoveSlashFromNativeConstant in the rules registry (priority 0).
  • Source mapping points at the ecs-src PHP file (now on main).
  • README rule counts updated (211 -> 212).
  • Casing preserved; namespace segments like Foo\True\Value and \true\Bar left untouched.

Covered by a Go test. All gates pass locally: build, vet, test -race, gofmt, golangci-lint, check-sources.

Go port of the PHP fixer added in #220: strips the redundant leading
backslash from the true, false and null constants. Registered in the
runner with priority 0, ecs-src source mapping and updated rule counts.
@TomasVotruba
TomasVotruba merged commit 816aa0b into main Oct 26, 2026
20 checks passed
@TomasVotruba
TomasVotruba deleted the blink-remove-slash-native-constant branch October 26, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant