Sha256: 0fdb01c34697cfc5e29508d030be707d2fbc31076478305ac7317927f49179ee
Contents?: true
Size: 772 Bytes
Versions: 2
Compression:
Stored size: 772 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift(File.expand_path(File.join("..", "lib"), __dir__)) require "gemfilelint" require "optparse" options = {} OptionParser.new do |opts| opts.banner = "Usage: gemfilelint [options] [path/to/Gemfile]*" opts.on("-i GEMS", "--ignore GEMS", "Ignore a comma-delimited list of false positives") do |ignore| options[:ignore] = ignore.split(",").map(&:strip) end opts.on("-h", "--help", "Prints this help") do puts opts exit end end.parse! gemfiles = ARGV.any? ? ARGV : %w[./Gemfile] invalid = gemfiles.reject { |gemfile| File.file?(gemfile) } if invalid.any? warn("Could not find a gemfile at: #{invalid.join(', ')}") exit 2 end exit Gemfilelint.lint(*gemfiles, **options) ? 0 : 1
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gemfilelint-0.4.1 | exe/gemfilelint |
gemfilelint-0.4.0 | exe/gemfilelint |