[ 
https://issues.apache.org/jira/browse/RAT-578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18145192#comment-18145192
 ] 

ASF subversion and git services commented on RAT-578:
-----------------------------------------------------

Commit 690381ec74395c439d99e4a01aa0b034fbe25d44 in creadur-rat's branch 
refs/heads/fix/RAT-592 from Romain Manni-Bucau
[ https://gitbox.apache.org/repos/asf?p=creadur-rat.git;h=690381ec7 ]

RAT-578: Make global gitignore processing reproducible

Add the RAT_GIT_GLOBAL_IGNORE environment variable so RAT's global
gitignore handling no longer depends on the machine an audit runs on.
It accepts 'off' to disable reading the machine global git ignore, 'on'
(resolved from the git configuration, the RAT-578 default), or an
explicit file path that is always used as the global ignore. The legacy
RAT_NO_GIT_GLOBAL_IGNORE keeps precedence. RAT's own CI build now pins
RAT_NO_GIT_GLOBAL_IGNORE so runner git config cannot perturb self-checks
or integration test reports.

Also drop a new spotbugs finding (IM_BAD_CHECK_FOR_ODD) introduced by
GitConfig.parseFile by testing the trailing-backslash count with a
bitwise check, and document the new option in EnvVar, StandardCollection
GIT and changes.xml. New GitIgnoreBuilderTest cases cover 'off', an
explicit path (including a missing file) and 'on'/unset resolution.

Verification: apache-rat-core verify passes with 1155 tests and clean
checkstyle; apache-rat-tools (38) and apache-rat-tasks (113) still pass.


> RAT doesn't consider excludesfile in ~/.gitconfig so it fails unexpectedly 
> when merging gitignores and explicit ignores
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: RAT-578
>                 URL: https://issues.apache.org/jira/browse/RAT-578
>             Project: Apache RAT
>          Issue Type: Improvement
>          Components: scan
>    Affects Versions: 0.18
>            Reporter: Romain Manni-Bucau
>            Priority: Major
>             Fix For: 0.19
>
>
> Pls see discussion in the PR!



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to