rust-raspberrypi-OS-tutorials/utils/clippy_all.rb
2018-12-31 01:18:54 +01:00

19 lines
277 B
Ruby

#!/usr/bin/env ruby
def clippy_all
crates = Dir["*/Cargo.toml"].sort!
crates.delete_if { |x| x.include?('bareminimum') }
crates.each do |x|
x = File.dirname(x)
Dir.chdir(x) do
system('make clippy')
end
end
end
if __FILE__ == $0
clippy_all()
end