From: Simon Harris Date: 2003-11-03T22:08:34+09:00 Subject: Re: Code duplication in core libraries Hehehe re sometimes copy and paste is deliberate. I'll check it out. I feel like an idiot now. It was late when I ran it and I only checked a few I'll double check this stuff again before posting. Cheers, Simon On Mon, 2003-11-03 at 21:53, Elliott Hughes wrote: > It's not very informative. I wasn't able to find the duplication it's > complaining about. I think you'll have to find out how to get it to show > more context. You'll also need to teach it about comments. > > To pick a random example where I could roughly tell what it was talking > about [apart from why it talks about 15 lines between 1 and 20]: > > Found 15 duplicate lines in the following files: > Between lines 1 and 20 in /usr/lib/ruby/1.8/wsdl/xmlSchema/sequence.rb > Between lines 1 and 20 in /usr/lib/ruby/1.8/wsdl/xmlSchema/choice.rb > Between lines 1 and 20 in /usr/lib/ruby/1.8/wsdl/xmlSchema/content.rb > Between lines 1 and 20 in /usr/lib/ruby/1.8/wsdl/xmlSchema/all.rb > Between lines 1 and 20 in /usr/lib/ruby/1.8/wsdl/xmlSchema/complexType.rb > > Corresponds to: > > =begin > WSDL4R - XMLSchema complexType definition for WSDL. > Copyright (C) 2002, 2003 NAKAMURA, Hiroshi. > > This program is free software; you can redistribute it and/or modify it > under > the terms of the GNU General Public License as published by the Free > Software > Foundation; either version 2 of the License, or (at your option) any later > version. > > This program is distributed in the hope that it will be useful, but WITHOUT > ANY > WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS > FOR A > PRATICULAR PURPOSE. See the GNU General Public License for more details. > > You should have received a copy of the GNU General Public License along with > this program; if not, write to the Free Software Foundation, Inc., 675 Mass > Ave, Cambridge, MA 02139, USA. > =end > > Sometimes copy & paste is deliberate! > > --elliott > > -----Original Message----- > From: Simon Harris [mailto:simon@redhillconsulting.com.au] > Sent: 2003-11-02 12:57 > To: ruby-core@ruby-lang.org > Subject: Code duplication in core libraries > > > FWIW, I ran a tool to identify duplicated code against the core ruby > libraries (1.8.0) that shipped > as part of my linux distro (gentoo) . > > I hope you find this of some use. > > Cheers, > > Simon -- http://www.redhillconsulting.com.au RedHill Consulting, Pty. Ltd. 12/55-67 Batman Street West Melbourne VIC 3003 +61 417 505 611