Dejan Stojadinović created RAT-576:
--------------------------------------
Summary: Add overall statistics about scanned file types
Key: RAT-576
URL: https://issues.apache.org/jira/browse/RAT-576
Project: Apache RAT
Issue Type: Improvement
Components: scan
Affects Versions: 0.18, 0.17
Reporter: Dejan Stojadinović
*Prologue:* RAT-575
(on) *Rationale:* big projects are experiencing longer build times with RAT
0.17/ 0.18 (and this statistics can help to determine which paths/file types
should be added into excludes list).
(i) *More details:*
* show list like this:
** number of scanned .java files: XYZ
** number of scanned .xml files: ABC
** number of scanned .txt files: DEF
* only show this list in verbose mode
----
(+) {*}Real life example where this would be useful:{*}
[https://github.com/apache/kafka/pull/23424]
{code:java}
dejan@home:~/kafka$ git log -5 --oneline
ca4b9e6255 (HEAD -> KAFKA-21064, origin/KAFKA-21064) [WIP] trying to print
`includes` and `excludes` RAT scan lists (for project files and folders)
cbd89d164f KAFKA-21064 licenses matchers are added
2575547fcf KAFKA-21064 plugin version bumped to 0.11.0 (in order to use Apache
RAT bundled version 0.18)
6b28f8c39d KAFKA-21064 Apache RAT Gradle plugin version upgrade: 0.8.1 -->
0.10.0; redundant custom style file is removed
7a09196f93 KAFKA-20745: extend OffsetMapTest to verify different hash
algorithms (#23391)
dejan@home:~/kafka$
{code}
*Test scenario:* execute: *./gradlew clean rat --profile* and then open file
kafka/build/reports/profile/profile-2026-MM-DD-hh-mm-ss.html
*Test results:*
||commit||RAT version||total build time (RAT task + dependent gradle
tasks)||RAT task *only*||
|Kafka trunk, commit 7a09196f93|0.15|15s|4s|
|commit 6b28f8c39d|0.17|1m39s|1m26s|
|commit 2575547fcf|0.18|56s|45s|
--
This message was sent by Atlassian Jira
(v8.20.10#820010)