Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ryym/rbfmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ruby code formatter

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published