Return-Path: X-Original-To: apmail-creadur-dev-archive@www.apache.org Delivered-To: apmail-creadur-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 22AED1190E for ; Fri, 20 Jun 2014 15:34:26 +0000 (UTC) Received: (qmail 68262 invoked by uid 500); 20 Jun 2014 15:34:25 -0000 Delivered-To: apmail-creadur-dev-archive@creadur.apache.org Received: (qmail 68164 invoked by uid 500); 20 Jun 2014 15:34:25 -0000 Mailing-List: contact dev-help@creadur.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@creadur.apache.org Delivered-To: mailing list dev@creadur.apache.org Received: (qmail 67849 invoked by uid 99); 20 Jun 2014 15:34:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2014 15:34:25 +0000 Date: Fri, 20 Jun 2014 15:34:25 +0000 (UTC) From: "Erik Erlandson (JIRA)" To: dev@creadur.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (RAT-161) Support exclusion of paths: "path/to/file.ext" 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/RAT-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Erik Erlandson updated RAT-161: ------------------------------- Attachment: RAT-161.patch2 A variation on previous patch that requires leading '/' to signal a path-spanning pattern match. This is a bit simpler in the code, and also makes the semantics of patterns easier to think about. If '--dir' argument is /path/to/repo, and contents of '-E' file includes: /subpath/to/.*ext then the pattern induced is: /path/to/repo + /subpath/to/.*ex t --> /path/to/repo/subpath/to/.*ext > Support exclusion of paths: "path/to/file.ext" > ------------------------------------------------ > > Key: RAT-161 > URL: https://issues.apache.org/jira/browse/RAT-161 > Project: Apache Rat > Issue Type: New Feature > Components: reports > Reporter: Erik Erlandson > Priority: Minor > Fix For: 0.11 > > Attachments: RAT-161.patch, RAT-161.patch2 > > > It would be advantageous to be able to exclude specific files, e.g. "path/to/file.ext" > The current '-E' feature cannot do this, as the filter patterns are only applied to individual files as directory tree is traversed, so a filter will never see "path/to/file.ext", only "path", "to" and "file.ext" > See for example: SPARK-1493 -- This message was sent by Atlassian JIRA (v6.2#6252)