Repository navigation
erbfmt v0.3.2
This release fixes file exclusions in the VS Code extension and reduces CLI output for files without issues.
Fixes and improvements
- VS Code file exclusions: manual formatting, format on save, lint diagnostics, and format diagnostics now respect
files.includesusing the original document path. Files outside include patterns or matched by exclusion patterns are skipped. - Unsaved editor buffers: the new
--stdin-filepath PATHCLI option reads source from standard input while using the original path for file selection and diagnostic locations. Excluded source is returned unchanged in format mode. - Quieter CLI output:
--checkno longer prints success messages for formatted files;--lintis silent for files without diagnostics; assist mode is silent when no actions are available. - Release builds: Apple Silicon packaging now uses the supported
macos-15runner.
For example, the extension now honors directory exclusions such as:
{
"files": {
"includes": ["app/views/**/*.html.erb", "!app/views/generated/**"]
}
}Upgrade notes
- Update both the CLI and VS Code extension to 0.3.2. The extension requires a CLI supporting
--stdin-filepath, including when invoked throughbundle exec erbfmt. - JSON lint output has changed: only files with diagnostics produce JSON records. Scripts expecting one record for every processed file must handle omitted clean files.
- The VSIX does not bundle or download the CLI. Install the Ruby gem or a standalone binary before using the extension.
Install
All five Ruby gem variants are published on RubyGems.org: the ruby fallback plus Linux x64, macOS Intel, macOS Apple Silicon, and Windows UCRT x64 platform gems.
gem install erbfmt -v 0.3.2
erbfmt --versionFor Bundler projects, update any pinned Gemfile version to 0.3.2, update the lockfile, and confirm bundle exec erbfmt --version.
Download the VS Code extension and install it with Extensions: Install from VSIX… or:
code --install-extension erbfmt-vscode-0.3.2.vsixRelease assets and validation
The 14 attached assets include four standalone binary archives for Linux x64, macOS Intel / Apple Silicon, and Windows x64; four SHA-256 checksum files; five Ruby gems; and the VSIX.
All platform builds passed. Archive checksums, Linux binary execution, stdin formatting and exclusions, and installation and execution from a fresh Bundler project were verified.
Changes: #10, #11. Full changelog.