Sha256: 6e780b6f5d61fa3afb5ca4340b055a6af502d30acb39945fa8466aa19c1afbb0

Contents?: true

Size: 571 Bytes

Versions: 2

Compression:

Stored size: 571 Bytes

Contents

#!/usr/bin/env ruby
#
#  Created on 2008-2-17.
#  Copyright (c) 2008 Kevin Rutherford, Rutherford Software Ltd. All rights reserved.
#

require File.join(File.dirname(__FILE__), '../lib/', 'reek')
require File.join(File.dirname(__FILE__), '../lib/', 'reek/options')

sources = Reek::Options.parse(ARGV)
exitstatus = 0
sources.each do |src|
  smells = Reek.analyse(src)
  next if smells.empty?
  if sources.size == 1
    puts smells.to_s
  else
    puts "\"#{src}\" -- #{smells.length} warnings:"
    puts smells.to_s
    puts
  end
  exitstatus = 2
end

exit(exitstatus)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reek-0.3.0 bin/reek
reek-0.3.1 bin/reek