yaaase / stylr

ruby styleguide enforcer
MIT License
3 stars 0 forks source link

Questions #7

Open ryanstout opened 10 years ago

ryanstout commented 10 years ago

Just curious, how is this different from https://github.com/bbatsov/rubocop

Also, are you planning to allow it to automatically correct things?

Anyway, looks like a good project. Thanks.

yaaase commented 10 years ago

So, I wasn't aware of rubocop when I started this. Rubocop is much more full-featured at the moment (enormously more), so maybe this project needs a new direction or something. Automatically correcting things is a cool idea... that's something I'll give some attempts at implementing - or feel free yourself!

Sorry for the delay in responding, I still haven't quite figured out how to make github email me when an issue is created :)

ryanstout commented 10 years ago

No worries. Yea, I personally would love to see something that just auto-enforces the right style. You could probably use something like:

https://github.com/whitequark/parser

I think parser can create an AST with comments.

On Thu, Jan 23, 2014 at 8:06 PM, Mark Billie notifications@github.comwrote:

So, I wasn't aware of rubocop when I started this. Rubocop is much more full-featured at the moment (enormously more), so maybe this project needs a new direction or something. Automatically correcting things is a cool idea... that's something I'll give some attempts at implementing - or feel free yourself!

Sorry for the delay in responding, I still haven't quite figured out how to make github email me when an issue is created :)

— Reply to this email directly or view it on GitHubhttps://github.com/yaaase/stylr/issues/7#issuecomment-33193852 .

ryanstout commented 10 years ago

You might want to ask around, but I would totally integrate a style enforcer into my editor if it just corrected things for me. But maybe other people wouldn't. I'm really into uniformity, hehe.

yaaase commented 10 years ago

I also would definitely integrate an enforcer into my editor. I usually use vim, and I've written vim plugins before (nothing memorable but I'm at least not afraid of doing it) ... what editor do you use, and what do you think should be reasonably supported for Ruby? vim, emacs... sublime/rubymine (?)

I also prefer stylistic uniformity. I've been in 3 or 4 decent-sized-to-enormous Ruby codebases now, and seeing a method defined with parens around its parameters right on top of a method defined without parens around its parameters... argh :)

ryanstout commented 10 years ago

I'm using textmate2 at the moment. But I may switch to sublime.

On Fri, Jan 24, 2014 at 1:12 AM, Mark Billie notifications@github.comwrote:

I also would definitely integrate an enforcer into my editor. I usually use vim, and I've written vim plugins before (nothing memorable but I'm at least not afraid of doing it) ... what editor do you use, and what do you think should be reasonably supported for Ruby? vim, emacs... sublime/rubymine (?)

I also prefer stylistic uniformity. I've been in 3 or 4 decent-sized-to-enormous Ruby codebases now, and seeing a method defined with parens around its parameters right on top of a method defined without parens around its parameters... argh :)

— Reply to this email directly or view it on GitHubhttps://github.com/yaaase/stylr/issues/7#issuecomment-33204375 .

yaaase commented 10 years ago

textmate(2) should definitely be supported.

I'm amidst a job/location move (cross country) so I might be a little sluggish with the code contributions until around March, when I'm settled in at both the new gig and the new city. That said, I'll see what I can do as far as a CLI option to "fix" in-line the syntax errors, and probably a vim plugin for starters, cuz that's my primary editor and the only one I've ever written a plugin for :)

ryanstout commented 10 years ago

Cool, thanks.

On Mon, Jan 27, 2014 at 3:54 PM, Mark Billie notifications@github.comwrote:

textmate(2) should definitely be supported.

I'm amidst a job/location move (cross country) so I might be a little sluggish with the code contributions until around March, when I'm settled in at both the new gig and the new city. That said, I'll see what I can do as far as a CLI option to "fix" in-line the syntax errors, and probably a vim plugin for starters, cuz that's my primary editor and the only one I've ever written a plugin for :)

— Reply to this email directly or view it on GitHubhttps://github.com/yaaase/stylr/issues/7#issuecomment-33433187 .