Skip to content

feat: configurable space formating#52

Merged
KnightYoshi merged 2 commits into
mainfrom
feature/configurable-space-formating
Apr 22, 2026
Merged

feat: configurable space formating#52
KnightYoshi merged 2 commits into
mainfrom
feature/configurable-space-formating

Conversation

@KnightYoshi
Copy link
Copy Markdown
Member

Summary

This PR makes spaces configurable

Introduces the `type-bridge.indent_spaces` config key (env override
`TYPE_BRIDGE_INDENT_SPACES`) and a shared IndentResolver helper. Wires
it into JsObjectSerializer so translation output indentation is now
configurable. Non-integer values fall back to the default; negative
values are clamped to zero.

Note: default translation indent changes from 2 to 4 spaces.
Replaces the hardcoded 4-space INDENT constant in AbstractEnumFormatter
with IndentResolver so enum output respects the `indent_spaces` config
like translation output already does. Default behavior is unchanged
(still 4 spaces).
@gaia-tools-sonarqube
Copy link
Copy Markdown

Passed Quality Gate passed

Issues

Measures

Project ID: GaiaTools_laravel-type-bridge_65a0cd71-382c-4322-a628-a979f8beb401

View in SonarQube

@KnightYoshi KnightYoshi merged commit 1be2e86 into main Apr 22, 2026
12 checks passed
@KnightYoshi KnightYoshi deleted the feature/configurable-space-formating branch April 22, 2026 01:05
@KnightYoshi KnightYoshi mentioned this pull request Apr 21, 2026
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