[
https://issues.apache.org/jira/browse/RAT-576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18116455#comment-18116455
]
Philipp Ottlinger commented on RAT-576:
---------------------------------------
Thanks for your interest in RAT and your report - I assume (as the gradle
plugin is not official part of Creadur yet) that Gradle does not report all of
the stuff that were improved in RAT0.18.
A Maven run allows setting a verbose flag:
./mvnw apache-rat:check -Drat.verbose=true
which increases the output:
[INFO] Excluding patterns: **/log*.xml, **/*.log, .github/**,
src/main/resources, *.md, **/.checkstyle/**/*, **/out*/**, **/*.md,
**/dependency-reduced-pom.xml, **/.gitignore, **/docs/**/*, src/test/resources,
.travis.yml, **/site*/**, .codacy.yml, .editorconfig
[INFO] Including patterns:
[INFO] Excluding IDEA collection.
[INFO] Excluding MISC collection.
[INFO] Excluding HIDDEN_DIR collection.
[INFO] Excluding GIT collection.
[INFO] Excluding ECLIPSE collection.
[INFO] Excluding ALL collection.
[INFO] Excluding MAVEN collection.
[INFO] Excluding STANDARD_SCMS collection.
[INFO] Processing exclude file from GIT.
[INFO] Processing exclude file from STANDARD_SCMS.
[INFO] RAT summary:
[INFO] Approved: 11
[INFO] Archives: 0
[INFO] Binaries: 2
[INFO] Document types: 4
[INFO] Ignored: 59
[INFO] License categories: 1
[INFO] License names: 1
[INFO] Notices: 1
[INFO] Standards: 11
[INFO] Unapproved: 0
[INFO] Unknown: 0
[INFO] No issues found.
Apart from that the report is written and contains a much more detailed view of
the scan, e.g.:
-----------------------------------------------------
Document Types detected
-----------------------------------------------------
BINARY: 2
IGNORED: 59
NOTICE: 1
STANDARD: 11
*****************************************************
Detail
*****************************************************
Documents with unapproved licenses will start with a '!'
The first character on the next line identifies the document type.
char type
A Archive file
B Binary file
I Ignored file
N Notice file
S Standard file
U Unknown file.
/.codacy.yml
I text/x-yaml
This would allow comparing the rat.txt files of 2 consecutive runs with the
help of AI top see differences ..... would this be helpful for you as well?
As we provide language-agnostic functionality for Ant, Maven, CLI the current
effort is to allow the same configuration for all 3 UIs -
if that is done we want to change the module structure of RAT and could think
of adding the Gradle plugin as well (just to provde a little bit more context
to you).
> 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.17, 0.18
> Reporter: Dejan Stojadinović
> Priority: Minor
> Labels: file-pattern, improvement, include, output, scan, verbose
>
> *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)