SublimeLinter / SublimeLinter-rubocop

SublimeLinter 3 plugin for Ruby, using rubocop.
MIT License
159 stars 40 forks source link

Add linting of Cucumber Steps syntax files. #23

Closed sentience closed 9 years ago

sentience commented 9 years ago

Cucumber Steps files (syntax provided by the Cucumber package) contain a lot of Ruby code, and should therefore be lintable with Rubocop.

reconbot commented 9 years ago

What' the special syntax like? I just treat mine like regular ruby files

reconbot commented 9 years ago

Released as v1.0.23

sentience commented 9 years ago

@reconbot Thanks for the merge!

The special syntax doesn’t do much: The main thing I notice is it highlights Cucumber-specific methods (Given, When, And, Then) as keywords instead of normal method calls. Mostly I use the Cucumber package for its other functionality, and I get the Cucumber Steps syntax (and the need to lint files with that syntax applied) as part of the bargain.