From: Elliott Hughes Date: 2003-11-03T19:53:35+09:00 Subject: Re: Code duplication in core libraries 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 ********************************************************************* This e-mail and any attachment is confidential. It may only be read, copied and used by the intended recipient(s). If you are not the intended recipient(s), you may not copy, use, distribute, forward, store or disclose this e-mail or any attachment. If you are not the intended recipient(s) or have otherwise received this e-mail in error, you should destroy it and any attachment and notify the sender by reply e-mail or send a message to sysadmin@bluearc.com *********************************************************************