Sha256: 7446f7ad83dbb98a2e59fac82ce67589929082d87f81fccb0576f2dd5ec66b9f
Contents?: true
Size: 789 Bytes
Versions: 22
Compression:
Stored size: 789 Bytes
Contents
# frozen_string_literal: true # A sample Guardfile # More info at https://github.com/guard/guard#readme ## Uncomment and set this to only include directories you want to watch # directories %w(app lib config test spec features) \ # .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")} ## Note: if you are using the `directories` clause above and you are not ## watching the project directory ('.'), then you will want to move ## the Guardfile to a watched dir and symlink it back, e.g. # # $ mkdir config # $ mv Guardfile config/ # $ ln -s config/Guardfile . # # and, you'll have to watch "config/Guardfile" instead of "Guardfile" guard :rubocop, cli: '-a' do watch(/.+\.rb$/) watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) } end
Version data entries
22 entries across 22 versions & 1 rubygems