File: lint.rake

package info (click to toggle)
ruby-fog-google 1.19.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,568 kB
  • sloc: ruby: 16,775; makefile: 3
file content (9 lines) | stat: -rw-r--r-- 180 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
require "rubocop/rake_task"

RuboCop::RakeTask.new(:lint)

namespace :lint do
  task :changed do
    sh("git status --porcelain | cut -c4- | grep '.rb' | xargs rubocop")
  end
end