Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B53110215 for ; Mon, 10 Feb 2014 20:49:35 +0000 (UTC) Received: (qmail 97986 invoked by uid 500); 10 Feb 2014 20:49:30 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 97907 invoked by uid 500); 10 Feb 2014 20:49:29 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 97739 invoked by uid 99); 10 Feb 2014 20:49:26 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Feb 2014 20:49:26 +0000 Date: Mon, 10 Feb 2014 20:49:26 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-5990) findPlugins function doesn't honor its comment MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-5990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13896986#comment-13896986 ] ASF subversion and git services commented on CB-5990: ----------------------------------------------------- Commit c2206c4031a0f56bc74a18801153af5171bf2a67 in branch refs/heads/master from [~agrieve] [ https://git-wip-us.apache.org/repos/asf?p=cordova-plugman.git;h=c2206c4 ] CB-5990 Delete unused findPlugins() function > findPlugins function doesn't honor its comment > ---------------------------------------------- > > Key: CB-5990 > URL: https://issues.apache.org/jira/browse/CB-5990 > Project: Apache Cordova > Issue Type: Bug > Components: Plugman > Affects Versions: 3.3.0 > Reporter: Josh Soref > > This is the code: > {quote} > // List the directories in the path, ignoring any files, .svn, etc. > findPlugins:function(plugins_dir) { > var plugins = [], > stats; > if (fs.existsSync(plugins_dir)) { > plugins = fs.readdirSync(plugins_dir).filter(function (fileName) { > stats = fs.statSync(path.join(plugins_dir, fileName)); > return fileName != '.svn' && fileName != 'CVS' && stats.isDirectory(); > {quote} > It will return .hg, .git, .bzr, ... > There's no reason to only special case .svn and CVS, but to not mention CVS in the comment. -- This message was sent by Atlassian JIRA (v6.1.5#6160)