Sha256: 8ac4629038fe54794a3fc3659b7334a754674b749b6613d3a109c506bbe615a9
Contents?: true
Size: 954 Bytes
Versions: 111
Compression:
Stored size: 954 Bytes
Contents
module Standard module RakeSupport # Allow command line flags set in STANDARDOPTS (like MiniTest's TESTOPTS) def self.argvify if ENV["STANDARDOPTS"] ENV["STANDARDOPTS"].split(/\s+/) else [] end end end end desc "Lint with the Standard Ruby style guide" task :standard do require "standard" exit_code = Standard::Cli.new(Standard::RakeSupport.argvify).run fail unless exit_code == 0 end desc "Lint and automatically make safe fixes with the Standard Ruby style guide" task :"standard:fix" do require "standard" exit_code = Standard::Cli.new(Standard::RakeSupport.argvify + ["--fix"]).run fail unless exit_code == 0 end desc "Lint and automatically make fixes (even unsafe ones!) with the Standard Ruby style guide" task :"standard:fix_unsafely" do require "standard" exit_code = Standard::Cli.new(Standard::RakeSupport.argvify + ["--fix-unsafely"]).run fail unless exit_code == 0 end
Version data entries
111 entries across 111 versions & 3 rubygems