Sha256: 1f01ce457b201dd6e3801c982b3539617505bcae15a6e66a0267b8ef3de200be

Contents?: true

Size: 381 Bytes

Versions: 3

Compression:

Stored size: 381 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift(File.expand_path(File.join('..', 'lib'), __dir__))
require 'gemfilelint'

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) ? 0 : 1

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gemfilelint-0.3.0 exe/gemfilelint
gemfilelint-0.2.2 exe/gemfilelint
gemfilelint-0.2.1 exe/gemfilelint