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

Dejan Stojadinović edited comment on RAT-576 at 9/18/26 12:14 PM:
------------------------------------------------------------------

Thank you for a swift and precise answer [~pottlinger] ! It seems that 
[~eskatos] already covered this via generated output files (see also attached 
snapshot).
{code:java}
*****************************************************
Summary
*****************************************************
Generated at: 2026-09-17T21:15:40+02:00
    by Apache Creadur RAT::Core 0.18 (Apache Software Foundation)

-----------------------------------------------------
Counters
-----------------------------------------------------
    (Entries starting with '!' exceed the minimum or maximum values)
  Approved:           7114    A count of approved licenses.
  Archives:           0    A count of archive files.
  Binaries:           363    A count of binary files.
  Document types:     3    A count of distinct document types.
  Ignored:            0    A count of ignored files.
  License categories: 7    A count of distinct license categories.
  License names:      7    A count of distinct license names.
  Notices:            2    A count of notice files.
  Standards:          7107    A count of standard files.
  Unapproved:         0    A count of unapproved licenses.
  Unknown:            0    A count of unknown file types.


-----------------------------------------------------
Licenses detected
-----------------------------------------------------

Apache License: 7107 
BSD 2 license: 1 
BSD 3 license: 1 
CDDL license 1.1: 1 
Eclipse Public License: 2
Go license: 1 
MIT license: 1 

-----------------------------------------------------
License Categories detected
-----------------------------------------------------

AL   : 7107 
BSD2 : 1 
BSD3 : 1 
CDDL : 1 
EPL  : 2 
GO   : 1 
MIT  : 1 

-----------------------------------------------------
Document Types detected
-----------------------------------------------------

BINARY: 363 
NOTICE: 2 
STANDARD: 7107 

*****************************************************
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.
  
  /.asf.yaml
  S         text/x-yaml    ISO-8859-1
    AL       AL-1          Apache License

  /.github/actions/gh-api-approve-run/action.yml
  S         text/x-yaml    ISO-8859-1
    AL       AL-1          Apache License

  /.github/actions/gh-api-update-status/action.yml
  S         text/x-yaml    ISO-8859-1
    AL       AL-1          Apache License

  /.github/actions/run-gradle/action.yml
  S         text/x-yaml    ISO-8859-1
    AL       AL-1          Apache License

  /.github/actions/setup-gradle/action.yml
  S         text/x-yaml    ISO-8859-1
    AL       AL-1          Apache License

  /.github/actions/setup-python/action.yml
  S         text/x-yaml    ISO-8859-1
    AL       AL-1          Apache License
{code}


was (Author: dejan2609):
Thank you for a swift and precise answer [~pottlinger] ! It seems that 
[~eskatos] already covered this via generated output files:
{code:java}
*****************************************************
Summary
*****************************************************
Generated at: 2026-09-17T21:15:40+02:00
    by Apache Creadur RAT::Core 0.18 (Apache Software Foundation)

-----------------------------------------------------
Counters
-----------------------------------------------------
    (Entries starting with '!' exceed the minimum or maximum values)
  Approved:           7114    A count of approved licenses.
  Archives:           0    A count of archive files.
  Binaries:           363    A count of binary files.
  Document types:     3    A count of distinct document types.
  Ignored:            0    A count of ignored files.
  License categories: 7    A count of distinct license categories.
  License names:      7    A count of distinct license names.
  Notices:            2    A count of notice files.
  Standards:          7107    A count of standard files.
  Unapproved:         0    A count of unapproved licenses.
  Unknown:            0    A count of unknown file types.


-----------------------------------------------------
Licenses detected
-----------------------------------------------------

Apache License: 7107 
BSD 2 license: 1 
BSD 3 license: 1 
CDDL license 1.1: 1 
Eclipse Public License: 2
Go license: 1 
MIT license: 1 

-----------------------------------------------------
License Categories detected
-----------------------------------------------------

AL   : 7107 
BSD2 : 1 
BSD3 : 1 
CDDL : 1 
EPL  : 2 
GO   : 1 
MIT  : 1 

-----------------------------------------------------
Document Types detected
-----------------------------------------------------

BINARY: 363 
NOTICE: 2 
STANDARD: 7107 

*****************************************************
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.
  
  /.asf.yaml
  S         text/x-yaml    ISO-8859-1
    AL       AL-1          Apache License

  /.github/actions/gh-api-approve-run/action.yml
  S         text/x-yaml    ISO-8859-1
    AL       AL-1          Apache License

  /.github/actions/gh-api-update-status/action.yml
  S         text/x-yaml    ISO-8859-1
    AL       AL-1          Apache License

  /.github/actions/run-gradle/action.yml
  S         text/x-yaml    ISO-8859-1
    AL       AL-1          Apache License

  /.github/actions/setup-gradle/action.yml
  S         text/x-yaml    ISO-8859-1
    AL       AL-1          Apache License

  /.github/actions/setup-python/action.yml
  S         text/x-yaml    ISO-8859-1
    AL       AL-1          Apache License
{code}

> 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: improvement, verbose
>         Attachments: image-2026-09-18-13-58-25-795.png
>
>
> *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)

Reply via email to