Sha256: 4f09dc15b4a840a256df9f616cd2cbfdab754030d8bfd917fa4048eb35c706d8

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 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/options'

def reek(args)
  begin
    sniffer = Reek::Options.parse(args)
    # SMELL:
    # This should use the actual type of report selected by the user's options
    puts sniffer.full_report
    return sniffer.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

1 entries across 1 versions & 1 rubygems

Version Path
kevinrutherford-reek-1.1.3.10 bin/reek