BeautifyRuby icon indicating copy to clipboard operation
BeautifyRuby copied to clipboard

Sublime Text 2 & 3 Plugin to Beautify Ruby

Results 28 BeautifyRuby issues
Sort by recently updated
recently updated
newest added

BeautifyRuby appears to ignore the tab_size and resets it to 4 whenever I run BeautifyRuby. Confirmed by deleting Sublime3, deleting ~/Library/Application Support/Sublime Text 3, then reinstalling Sublime3 and BeautifyRuby from...

When a comment is placed above an else or elsif statement, it is incorrectly indented. I see why this is occurring because it believes the comment is part of the...

Is there a way for BeautifyRuby to skip beautifying sections of code? I made a workaround that I put in beautify_ruby.py: ``` def extract_no_beautify(text): lines = text.splitlines() no_beautify = []...

Is there any way to make case statements indent properly? Most style guides now recommend this and rubocop barks at me that it's not indented properly. Is this possible? ```...

I've found some unexpected indentations such as following examples. ### Example 1 #### Before ``` ruby foo = "bar" if /^.*(foo)/.match("foo") case foo when /1/ puts "foo" when /2/ puts...

The command beautifies the whole file. Any way to beautify just the selected text? Thanks.

Beautify Ruby handles a tab-size of 2 very well, but when this is added to the preferences: ``` "tab_size": 3 ``` Or any other odd number, for that matter, the...

Correct alignment: ``` ruby mymethod :foo, opt1: :bar, opt2: 'hello' ``` what BeautifyRuby produces: ``` ruby mymethod :foo, opt1: :bar, opt2: 'hello' ```

Before: ``` [snip].... allow do origins %r{\A https?:// # allow http, or https (?:[a-zA-Z0-9] # optional subdomain [a-zA-Z0-9-]+ # [a-zA-Z0-9]\.)* # (#{hosts.join '|'}) # allowed hosts (?::(#{ports.join '|'}))? \z}x resource...

``` before_save O.new("v"), if: Proc.new { |p| [154, 1217].include?(p.account_id) } after_save O.new("v"), if: Proc.new { |p| [154, 1217].include?(p.account_id) } after_find O.new("v"), if: Proc.new { |p| p.attributes.include?("v") && [154, 1217].include?(p.account_id) }...