You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by "Claude Warren (Jira)" <ji...@apache.org> on 2025/09/12 15:00:00 UTC
[jira] [Commented] (RAT-476) include/exclude precedence rules do not match gitignore semantics
[ https://issues.apache.org/jira/browse/RAT-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18019865#comment-18019865 ]
Claude Warren commented on RAT-476:
-----------------------------------
When this issue is fixed the IT test for RAT-335 should be updated to test for exclusion ofÂ
{color:#7a7e85}"/dir1/file1.log",{color}
> include/exclude precedence rules do not match gitignore semantics
> -----------------------------------------------------------------
>
> Key: RAT-476
> URL: https://issues.apache.org/jira/browse/RAT-476
> Project: Apache Rat
> Issue Type: Improvement
> Components: core engine
> Reporter: Arnout Engelen
> Priority: Major
>
> currently, RAT processes all 'unignore' patterns separately from all 'ignore' patterns, and only takes into account precedence withing those groups. This does not match the gitignore semantics, where ignore/unignore patterns are evaluated on each precedence level. I think it would make sense to align to the gitignore semantics, but possibly we should evaluate if that'd conflict with ignore logic for other VCS'es.
> See discussion in [https://github.com/apache/creadur-rat/pull/433] for background
--
This message was sent by Atlassian Jira
(v8.20.10#820010)