tally readsDocumentation Index
Fetch the complete documentation index at: https://tally.wharflab.com/llms.txt
Use this file to discover all available pages before exploring further.
.editorconfig for formatting rules that need repository style preferences. Use .editorconfig for shared whitespace and indentation
settings, and use .tally.toml for enabling, disabling, or changing the severity of lint rules.
This page will collect tally features that integrate with EditorConfig as they are added.
Recommended Dockerfile settings
Add this section to your repository’s.editorconfig to keep Dockerfiles and Containerfiles consistent:
Dockerfile, Dockerfile.*, Containerfile, and Containerfile.*.
Rules that use EditorConfig
tally/prefer-formatted-heredocsformatsCOPYandADDheredoc bodies for JSON, YAML, TOML, XML, and INI files.
services/api/Dockerfile targeting /etc/app/config.yaml is resolved as services/api/config.yaml, so *.yaml and
config.yaml sections apply.
Supported Properties
The heredoc formatter currently reads these EditorConfig properties:| Property | Behavior |
|---|---|
indent_style | Uses tabs when set to tab; otherwise uses spaces. |
indent_size | Sets the number of spaces per indent level when it is a positive integer. |
tab_width | Used as the fallback indent width when indent_size is not a positive integer. |
max_line_length | YAML heredocs only. When set to a positive integer, uses that value as the preferred YAML scalar wrapping width. off, unset, and invalid values do not override the YAML serializer default. This is a formatting preference, not a hard maximum. |
| Property | Reason |
|---|---|
insert_final_newline | Heredoc bodies always need a newline before the terminator, so formatted payloads always end with exactly one newline regardless of this setting. |
end_of_line | Heredoc payloads are embedded in the Dockerfile and should follow the parent Dockerfile’s line-ending convention rather than a separate virtual target setting. |
charset | tally already reads Dockerfiles as text and does not transcode heredoc payloads during formatting. |
trim_trailing_whitespace | Formatted output for the currently supported structured formats does not emit incidental trailing whitespace. tally does not read this property or run a separate trimming pass, because whitespace may be payload data in some formats. |