rbfmt

Crates.iorbfmt
lib.rsrbfmt
version0.0.2
sourcesrc
created_at2024-03-05 12:49:26.703152
updated_at2024-03-15 00:12:20.882247
descriptionRuby code formatter
homepage
repositoryhttps://github.com/ryym/rbfmt
max_upload_size
id1163084
size358,455
Ryutaro Yamada (ryym)

documentation

README

[!WARNING] This is currently under development and has many TODOs and bugs.

rbfmt

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
)

Installation

$ cargo install rbfmt

Configuration

You can configure formatting via .rbfmt.yml file.

Available values and defaults:

format:
  line_width: 100
Commit count: 0

cargo fmt