Skip to content

Instantly share code, notes, and snippets.

View daniel-beard's full-sized avatar

Daniel Beard daniel-beard

View GitHub Profile
#!/usr/bin/env ruby
require 'optparse'
require 'pathname'
require 'json'
require 'git_diff_parser'
# This script takes an input .json file in the standard lint format
# and culls violations that do not occur on changed lines for a given diff file.
# Parse command line options.