Sha256: 77a6643eb497267f2cd606d47562915adc9e210ca0014ef2974e31d0eb8d222b

Contents?: true

Size: 483 Bytes

Versions: 5

Compression:

Stored size: 483 Bytes

Contents

#!/usr/bin/env ruby
#
# Reek examines Ruby source code for smells.
# Visit http://reek.rubyforge.org/ for docs etc.
#
# Author: Kevin Rutherford
#

require 'reek'
require 'reek/source'
require 'reek/options'

def reek(args)
  begin
    source = Reek::Options.parse(args)
    puts source.full_report
    return source.smelly? ? 2 : 0
  rescue SystemExit => ex
    return ex.status
  rescue Exception => error
    $stderr.puts "Error: #{error}"
    return 1
  end
end

exit reek(ARGV)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kevinrutherford-reek-1.1.3.5 bin/reek
kevinrutherford-reek-1.1.3.6 bin/reek
kevinrutherford-reek-1.1.3.7 bin/reek
kevinrutherford-reek-1.1.3.8 bin/reek
kevinrutherford-reek-1.1.3.9 bin/reek