<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
The Ruby bundle currently supports reformatting a file with RuboCop
(“Reformat Document”), and checking the document’s syntax using
`ruby -wc.<br>
<br>
So far there is no support for automatically checking (or maybe even
reformatting) a file everytime it is saved. <br>
<br>
For RuboCop, there are (at least) four stand-alone RuboCop bundles
providing additional features:<br>
<br>
* <a class="moz-txt-link-freetext" href="https://github.com/fazibear/Rubocop.tmbundle">https://github.com/fazibear/Rubocop.tmbundle</a><br>
* <a class="moz-txt-link-freetext" href="https://github.com/mrdougal/textmate2-rubocop">https://github.com/mrdougal/textmate2-rubocop</a><br>
* <a class="moz-txt-link-freetext" href="https://github.com/goyox86/rubocop-tmbundle">https://github.com/goyox86/rubocop-tmbundle</a><br>
* <a class="moz-txt-link-freetext" href="https://github.com/noniq/RuboCop.tmbundle">https://github.com/noniq/RuboCop.tmbundle</a> (Disclaimer: This
bundle was written by me).<br>
<br>
Recently various alternatives to RuboCop emerged, especially:<br>
<br>
* <a class="moz-txt-link-freetext" href="https://github.com/testdouble/standard">https://github.com/testdouble/standard</a> (uses RuboCop internally,
“No configuration“)<br>
* <a class="moz-txt-link-freetext" href="https://github.com/samphippen/rubyfmt">https://github.com/samphippen/rubyfmt</a> (autoformatting only,
optimized for speed)<br>
<br>
Both tools are still pre-1.0, but actively developed.<br>
<br>
I’d like to add support for both standardrb and rubyfmt to TextMate.
However, I’m not yet sure about the following questions:<br>
<br>
* Should the Ruby bundle be extended to support these? Or should
one or more stand-alone bundles be created?<br>
* What would be the best way to tell TextMate which (if any)
linting / formatting tool it should use for a given ruby file or
project?<br>
<br>
Any thoughts?<br>
<br>
<br>
s.<br>
</body>
</html>