turboladen / tailor

A RubyGem that allows for checking standard styling of Ruby files.
146 stars 18 forks source link

Exclude files from a set #140

Open moubry opened 11 years ago

moubry commented 11 years ago

Being able to exclude specific files from a set would be super convenient for me:

require 'tailor/rake_task'

Tailor::RakeTask.new do |task|
  task.file_set 'lib/**/*.rb', 'libraries', [
    'lib/app_agent.rb',
    'lib/progress_bar.rb',
    'lib/report_generator.rb'
  ]
end

I'm cleaning-up a pretty linty app and it would be nice to run Tailor over every file in a folder, except for a few nightmarish ones.

Roughly sketched out here: moubry/tailor@7ee638d55649e63146345f8b05161cbfd8ad6a0c

Is this kind of feature something anyone would be interested in (besides me)?

charlesjohnson commented 11 years ago

+1.

fabiopelosin commented 10 years ago

+1

BAjayKrishna commented 10 years ago

+1

turboladen commented 10 years ago

Yeah, this is actually something that I think would be really helpful.

moubry commented 10 years ago

I'll prepare a pull request.

gretel commented 9 years ago

+1