Crates.io | rbfmt |
lib.rs | rbfmt |
version | 0.0.2 |
source | src |
created_at | 2024-03-05 12:49:26.703152 |
updated_at | 2024-03-15 00:12:20.882247 |
description | Ruby code formatter |
homepage | |
repository | https://github.com/ryym/rbfmt |
max_upload_size | |
id | 1163084 |
size | 358,455 |
[!WARNING] This is currently under development and has many TODOs and bugs.
Rbfmt is a yet another Ruby code formatter written in Rust, based on the Ruby's official Prism parser.
# a.rb
foo . bar(1,2 3 # 4
)
$ rbfmt a.rb
# a.rb
foo.bar(
1,
2,
3, # 4
)
$ cargo install rbfmt
You can configure formatting via .rbfmt.yml
file.
Available values and defaults:
format:
line_width: 100