Sha256: 2249e311bfac962bd9574f5ca489f1df3ded69c691e80209cc51eec9e7fc0081
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift("#{__dir__}/../lib") require "optparse" require "codeclimate_diff/runner" require "codeclimate_diff" options = {} OptionParser.new do |opts| opts.banner = "Usage: codeclimate_diff [options]" opts.on("-b", "--baseline", "Means it will regenerate the baseline.") opts.on("-n", "--new-only", "It will only show what you have changed and not existing issues in files you have touched.") opts.on("-a", "--all", "It will always analyze all files, and not the changed files one by one, even if below the 'threshold_to_run_on_all_files' setting.") opts.on("-pPATTERN", "--pattern=PATTERN", "Grep pattern to filter files. If provided, will filter the files changed on your branch further.") end.parse!(into: options) if options[:baseline] CodeclimateDiff::Runner.generate_baseline elsif options[:"new-only"] CodeclimateDiff::Runner.run_diff_on_branch(options[:pattern], always_analyze_all_files: options[:all], show_preexisting: false) else CodeclimateDiff::Runner.run_diff_on_branch(options[:pattern], always_analyze_all_files: options[:all], show_preexisting: true) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codeclimate_diff-0.1.10 | exe/codeclimate_diff |